From 9c590f5b16b75a419989d8a697f8096ab01f4517 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 16 Nov 2022 21:16:12 +0000 Subject: [PATCH] feat: add support for additional HMAC algorithms PiperOrigin-RevId: 488651504 Source-Link: https://github.com/googleapis/googleapis/commit/dde2e5c02c45299621b5a2e625a3eef101ff3a7e Source-Link: https://github.com/googleapis/googleapis-gen/commit/07b28d916b490e926d49f413b0dece67bb43c17f Copy-Tag: eyJwIjoiamF2YS1rbXMvLk93bEJvdC55YW1sIiwiaCI6IjA3YjI4ZDkxNmI0OTBlOTI2ZDQ5ZjQxM2IwZGVjZTY3YmI0M2MxN2YifQ== --- .../google/cloud/kms/v1/EkmServiceGrpc.java | 725 ----- ...stroyCryptoKeyVersionRequestOrBuilder.java | 56 - .../google/cloud/kms/v1/EkmServiceProto.java | 253 -- .../kms/v1/GetCryptoKeyRequestOrBuilder.java | 56 - .../GetCryptoKeyVersionRequestOrBuilder.java | 56 - .../v1/GetEkmConnectionRequestOrBuilder.java | 56 - .../kms/v1/GetImportJobRequestOrBuilder.java | 56 - .../kms/v1/GetKeyRingRequestOrBuilder.java | 56 - .../kms/v1/GetPublicKeyRequestOrBuilder.java | 56 - .../com/google/cloud/kms/v1/KmsProto.java | 880 ------ .../cloud/kms/v1/KmsResourcesProto.java | 377 --- ...storeCryptoKeyVersionRequestOrBuilder.java | 56 - .../google/cloud/kms/v1/EkmServiceClient.java | 0 .../cloud/kms/v1/EkmServiceSettings.java | 1 + .../kms/v1/KeyManagementServiceClient.java | 221 -- .../kms/v1/KeyManagementServiceSettings.java | 1 + .../google/cloud/kms/v1/gapic_metadata.json | 0 .../com/google/cloud/kms/v1/package-info.java | 0 .../cloud/kms/v1/stub/EkmServiceStub.java | 0 .../kms/v1/stub/EkmServiceStubSettings.java | 0 .../stub/GrpcEkmServiceCallableFactory.java | 0 .../cloud/kms/v1/stub/GrpcEkmServiceStub.java | 1 + ...pcKeyManagementServiceCallableFactory.java | 0 .../v1/stub/GrpcKeyManagementServiceStub.java | 1 + .../HttpJsonEkmServiceCallableFactory.java | 0 .../kms/v1/stub/HttpJsonEkmServiceStub.java | 0 ...onKeyManagementServiceCallableFactory.java | 0 .../HttpJsonKeyManagementServiceStub.java | 0 .../kms/v1/stub/KeyManagementServiceStub.java | 0 .../KeyManagementServiceStubSettings.java | 0 .../kms/v1/EkmServiceClientHttpJsonTest.java | 0 .../cloud/kms/v1/EkmServiceClientTest.java | 0 ...eyManagementServiceClientHttpJsonTest.java | 0 .../v1/KeyManagementServiceClientTest.java | 0 .../google/cloud/kms/v1/MockEkmService.java | 0 .../cloud/kms/v1/MockEkmServiceImpl.java | 0 .../google/cloud/kms/v1/MockIAMPolicy.java | 0 .../cloud/kms/v1/MockIAMPolicyImpl.java | 0 .../kms/v1/MockKeyManagementService.java | 0 .../kms/v1/MockKeyManagementServiceImpl.java | 0 .../google/cloud/kms/v1/MockLocations.java | 0 .../cloud/kms/v1/MockLocationsImpl.java | 0 .../google/cloud/kms/v1/EkmServiceGrpc.java | 584 ++++ .../kms/v1/KeyManagementServiceGrpc.java | 2618 ++++++----------- .../kms/v1/AsymmetricDecryptRequest.java | 524 ++-- .../v1/AsymmetricDecryptRequestOrBuilder.java | 58 +- .../kms/v1/AsymmetricDecryptResponse.java | 466 ++- .../AsymmetricDecryptResponseOrBuilder.java | 38 +- .../cloud/kms/v1/AsymmetricSignRequest.java | 744 ++--- .../v1/AsymmetricSignRequestOrBuilder.java | 80 +- .../cloud/kms/v1/AsymmetricSignResponse.java | 586 ++-- .../v1/AsymmetricSignResponseOrBuilder.java | 50 +- .../com/google/cloud/kms/v1/Certificate.java | 1065 +++---- .../cloud/kms/v1/CertificateOrBuilder.java | 134 +- .../cloud/kms/v1/CreateCryptoKeyRequest.java | 587 ++-- .../v1/CreateCryptoKeyRequestOrBuilder.java | 64 +- .../kms/v1/CreateCryptoKeyVersionRequest.java | 493 ++-- ...reateCryptoKeyVersionRequestOrBuilder.java | 55 +- .../kms/v1/CreateEkmConnectionRequest.java | 565 ++-- .../CreateEkmConnectionRequestOrBuilder.java | 64 +- .../cloud/kms/v1/CreateImportJobRequest.java | 551 ++-- .../v1/CreateImportJobRequestOrBuilder.java | 61 +- .../cloud/kms/v1/CreateKeyRingRequest.java | 534 ++-- .../kms/v1/CreateKeyRingRequestOrBuilder.java | 61 +- .../com/google/cloud/kms/v1/CryptoKey.java | 1603 ++++------ .../google/cloud/kms/v1/CryptoKeyName.java | 3 +- .../cloud/kms/v1/CryptoKeyOrBuilder.java | 173 +- .../google/cloud/kms/v1/CryptoKeyVersion.java | 2163 +++++--------- .../cloud/kms/v1/CryptoKeyVersionName.java | 0 .../kms/v1/CryptoKeyVersionOrBuilder.java | 216 +- .../kms/v1/CryptoKeyVersionTemplate.java | 415 +-- .../v1/CryptoKeyVersionTemplateOrBuilder.java | 38 +- .../google/cloud/kms/v1/DecryptRequest.java | 711 ++--- .../cloud/kms/v1/DecryptRequestOrBuilder.java | 81 +- .../google/cloud/kms/v1/DecryptResponse.java | 456 ++- .../kms/v1/DecryptResponseOrBuilder.java | 38 +- .../v1/DestroyCryptoKeyVersionRequest.java | 361 +-- ...stroyCryptoKeyVersionRequestOrBuilder.java | 31 + .../java/com/google/cloud/kms/v1/Digest.java | 433 ++- .../google/cloud/kms/v1/DigestOrBuilder.java | 36 +- .../google/cloud/kms/v1/EkmConnection.java | 1552 ++++------ .../cloud/kms/v1/EkmConnectionName.java | 0 .../cloud/kms/v1/EkmConnectionOrBuilder.java | 68 +- .../google/cloud/kms/v1/EkmServiceProto.java | 223 ++ .../google/cloud/kms/v1/EncryptRequest.java | 710 ++--- .../cloud/kms/v1/EncryptRequestOrBuilder.java | 81 +- .../google/cloud/kms/v1/EncryptResponse.java | 590 ++-- .../kms/v1/EncryptResponseOrBuilder.java | 50 +- .../v1/ExternalProtectionLevelOptions.java | 412 ++- ...ternalProtectionLevelOptionsOrBuilder.java | 36 +- .../kms/v1/GenerateRandomBytesRequest.java | 424 ++- .../GenerateRandomBytesRequestOrBuilder.java | 36 +- .../kms/v1/GenerateRandomBytesResponse.java | 370 +-- .../GenerateRandomBytesResponseOrBuilder.java | 29 +- .../cloud/kms/v1/GetCryptoKeyRequest.java | 348 +-- .../kms/v1/GetCryptoKeyRequestOrBuilder.java | 31 + .../kms/v1/GetCryptoKeyVersionRequest.java | 355 +-- .../GetCryptoKeyVersionRequestOrBuilder.java | 31 + .../cloud/kms/v1/GetEkmConnectionRequest.java | 351 +-- .../v1/GetEkmConnectionRequestOrBuilder.java | 31 + .../cloud/kms/v1/GetImportJobRequest.java | 348 +-- .../kms/v1/GetImportJobRequestOrBuilder.java | 31 + .../cloud/kms/v1/GetKeyRingRequest.java | 348 +-- .../kms/v1/GetKeyRingRequestOrBuilder.java | 31 + .../cloud/kms/v1/GetPublicKeyRequest.java | 348 +-- .../kms/v1/GetPublicKeyRequestOrBuilder.java | 31 + .../kms/v1/ImportCryptoKeyVersionRequest.java | 734 ++--- ...mportCryptoKeyVersionRequestOrBuilder.java | 84 +- .../com/google/cloud/kms/v1/ImportJob.java | 1824 ++++-------- .../google/cloud/kms/v1/ImportJobName.java | 0 .../cloud/kms/v1/ImportJobOrBuilder.java | 183 +- .../cloud/kms/v1/KeyOperationAttestation.java | 1234 +++----- .../v1/KeyOperationAttestationOrBuilder.java | 58 +- .../java/com/google/cloud/kms/v1/KeyRing.java | 435 ++- .../com/google/cloud/kms/v1/KeyRingName.java | 3 +- .../google/cloud/kms/v1/KeyRingOrBuilder.java | 44 +- .../com/google/cloud/kms/v1/KmsProto.java | 799 +++++ .../cloud/kms/v1/KmsResourcesProto.java | 318 ++ .../kms/v1/ListCryptoKeyVersionsRequest.java | 701 ++--- ...ListCryptoKeyVersionsRequestOrBuilder.java | 71 +- .../kms/v1/ListCryptoKeyVersionsResponse.java | 511 ++-- ...istCryptoKeyVersionsResponseOrBuilder.java | 48 +- .../cloud/kms/v1/ListCryptoKeysRequest.java | 697 ++--- .../v1/ListCryptoKeysRequestOrBuilder.java | 71 +- .../cloud/kms/v1/ListCryptoKeysResponse.java | 510 ++-- .../v1/ListCryptoKeysResponseOrBuilder.java | 49 +- .../kms/v1/ListEkmConnectionsRequest.java | 619 ++-- .../ListEkmConnectionsRequestOrBuilder.java | 65 +- .../kms/v1/ListEkmConnectionsResponse.java | 513 ++-- .../ListEkmConnectionsResponseOrBuilder.java | 48 +- .../cloud/kms/v1/ListImportJobsRequest.java | 612 ++-- .../v1/ListImportJobsRequestOrBuilder.java | 65 +- .../cloud/kms/v1/ListImportJobsResponse.java | 510 ++-- .../v1/ListImportJobsResponseOrBuilder.java | 49 +- .../cloud/kms/v1/ListKeyRingsRequest.java | 612 ++-- .../kms/v1/ListKeyRingsRequestOrBuilder.java | 65 +- .../cloud/kms/v1/ListKeyRingsResponse.java | 515 ++-- .../kms/v1/ListKeyRingsResponseOrBuilder.java | 49 +- .../google/cloud/kms/v1/LocationMetadata.java | 317 +- .../kms/v1/LocationMetadataOrBuilder.java | 24 +- .../com/google/cloud/kms/v1/LocationName.java | 0 .../google/cloud/kms/v1/MacSignRequest.java | 493 ++-- .../cloud/kms/v1/MacSignRequestOrBuilder.java | 55 +- .../google/cloud/kms/v1/MacSignResponse.java | 527 ++-- .../kms/v1/MacSignResponseOrBuilder.java | 47 +- .../google/cloud/kms/v1/MacVerifyRequest.java | 659 ++--- .../kms/v1/MacVerifyRequestOrBuilder.java | 75 +- .../cloud/kms/v1/MacVerifyResponse.java | 536 ++-- .../kms/v1/MacVerifyResponseOrBuilder.java | 45 +- .../google/cloud/kms/v1/ProtectionLevel.java | 96 +- .../com/google/cloud/kms/v1/PublicKey.java | 604 ++-- .../cloud/kms/v1/PublicKeyOrBuilder.java | 56 +- .../v1/RestoreCryptoKeyVersionRequest.java | 361 +-- ...storeCryptoKeyVersionRequestOrBuilder.java | 31 + .../UpdateCryptoKeyPrimaryVersionRequest.java | 448 ++- ...yptoKeyPrimaryVersionRequestOrBuilder.java | 44 +- .../cloud/kms/v1/UpdateCryptoKeyRequest.java | 493 ++-- .../v1/UpdateCryptoKeyRequestOrBuilder.java | 52 +- .../kms/v1/UpdateCryptoKeyVersionRequest.java | 508 ++-- ...pdateCryptoKeyVersionRequestOrBuilder.java | 55 +- .../kms/v1/UpdateEkmConnectionRequest.java | 507 ++-- .../UpdateEkmConnectionRequestOrBuilder.java | 55 +- .../google/cloud/kms/v1/ekm_service.proto | 0 .../proto/google/cloud/kms/v1/resources.proto | 12 + .../proto/google/cloud/kms/v1/service.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateEkmConnection.java | 0 .../SyncCreateEkmConnection.java | 0 ...ectionLocationnameStringEkmconnection.java | 0 ...kmConnectionStringStringEkmconnection.java | 0 .../AsyncGetEkmConnection.java | 0 .../SyncGetEkmConnection.java | 0 ...SyncGetEkmConnectionEkmconnectionname.java | 0 .../SyncGetEkmConnectionString.java | 0 .../getiampolicy/AsyncGetIamPolicy.java | 0 .../getiampolicy/SyncGetIamPolicy.java | 0 .../getlocation/AsyncGetLocation.java | 0 .../getlocation/SyncGetLocation.java | 0 .../AsyncListEkmConnections.java | 0 .../AsyncListEkmConnectionsPaged.java | 0 .../SyncListEkmConnections.java | 0 .../SyncListEkmConnectionsLocationname.java | 0 .../SyncListEkmConnectionsString.java | 0 .../listlocations/AsyncListLocations.java | 0 .../AsyncListLocationsPaged.java | 0 .../listlocations/SyncListLocations.java | 0 .../setiampolicy/AsyncSetIamPolicy.java | 0 .../setiampolicy/SyncSetIamPolicy.java | 0 .../AsyncTestIamPermissions.java | 0 .../SyncTestIamPermissions.java | 0 .../AsyncUpdateEkmConnection.java | 0 .../SyncUpdateEkmConnection.java | 0 ...teEkmConnectionEkmconnectionFieldmask.java | 0 .../SyncGetEkmConnection.java | 0 .../AsyncAsymmetricDecrypt.java | 0 .../SyncAsymmetricDecrypt.java | 0 ...DecryptCryptokeyversionnameBytestring.java | 0 ...SyncAsymmetricDecryptStringBytestring.java | 0 .../asymmetricsign/AsyncAsymmetricSign.java | 0 .../asymmetricsign/SyncAsymmetricSign.java | 0 ...mmetricSignCryptokeyversionnameDigest.java | 0 .../SyncAsymmetricSignStringDigest.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createcryptokey/AsyncCreateCryptoKey.java | 0 .../createcryptokey/SyncCreateCryptoKey.java | 0 ...teCryptoKeyKeyringnameStringCryptokey.java | 0 ...cCreateCryptoKeyStringStringCryptokey.java | 0 .../AsyncCreateCryptoKeyVersion.java | 0 .../SyncCreateCryptoKeyVersion.java | 0 ...yVersionCryptokeynameCryptokeyversion.java | 0 ...ryptoKeyVersionStringCryptokeyversion.java | 0 .../createimportjob/AsyncCreateImportJob.java | 0 .../createimportjob/SyncCreateImportJob.java | 0 ...teImportJobKeyringnameStringImportjob.java | 0 ...cCreateImportJobStringStringImportjob.java | 0 .../createkeyring/AsyncCreateKeyRing.java | 0 .../createkeyring/SyncCreateKeyRing.java | 0 ...reateKeyRingLocationnameStringKeyring.java | 0 .../SyncCreateKeyRingStringStringKeyring.java | 0 .../decrypt/AsyncDecrypt.java | 0 .../decrypt/SyncDecrypt.java | 0 .../SyncDecryptCryptokeynameBytestring.java | 0 .../decrypt/SyncDecryptStringBytestring.java | 0 .../AsyncDestroyCryptoKeyVersion.java | 0 .../SyncDestroyCryptoKeyVersion.java | 0 ...yCryptoKeyVersionCryptokeyversionname.java | 0 .../SyncDestroyCryptoKeyVersionString.java | 0 .../encrypt/AsyncEncrypt.java | 0 .../encrypt/SyncEncrypt.java | 0 .../SyncEncryptResourcenameBytestring.java | 0 .../encrypt/SyncEncryptStringBytestring.java | 0 .../AsyncGenerateRandomBytes.java | 0 .../SyncGenerateRandomBytes.java | 0 ...teRandomBytesStringIntProtectionlevel.java | 0 .../getcryptokey/AsyncGetCryptoKey.java | 0 .../getcryptokey/SyncGetCryptoKey.java | 0 .../SyncGetCryptoKeyCryptokeyname.java | 0 .../getcryptokey/SyncGetCryptoKeyString.java | 0 .../AsyncGetCryptoKeyVersion.java | 0 .../SyncGetCryptoKeyVersion.java | 0 ...tCryptoKeyVersionCryptokeyversionname.java | 0 .../SyncGetCryptoKeyVersionString.java | 0 .../getiampolicy/AsyncGetIamPolicy.java | 0 .../getiampolicy/SyncGetIamPolicy.java | 0 .../getimportjob/AsyncGetImportJob.java | 0 .../getimportjob/SyncGetImportJob.java | 0 .../SyncGetImportJobImportjobname.java | 0 .../getimportjob/SyncGetImportJobString.java | 0 .../getkeyring/AsyncGetKeyRing.java | 0 .../getkeyring/SyncGetKeyRing.java | 0 .../getkeyring/SyncGetKeyRingKeyringname.java | 0 .../getkeyring/SyncGetKeyRingString.java | 0 .../getlocation/AsyncGetLocation.java | 0 .../getlocation/SyncGetLocation.java | 0 .../getpublickey/AsyncGetPublicKey.java | 0 .../getpublickey/SyncGetPublicKey.java | 0 .../SyncGetPublicKeyCryptokeyversionname.java | 0 .../getpublickey/SyncGetPublicKeyString.java | 0 .../AsyncImportCryptoKeyVersion.java | 0 .../SyncImportCryptoKeyVersion.java | 0 .../listcryptokeys/AsyncListCryptoKeys.java | 0 .../AsyncListCryptoKeysPaged.java | 0 .../listcryptokeys/SyncListCryptoKeys.java | 0 .../SyncListCryptoKeysKeyringname.java | 0 .../SyncListCryptoKeysString.java | 0 .../AsyncListCryptoKeyVersions.java | 0 .../AsyncListCryptoKeyVersionsPaged.java | 0 .../SyncListCryptoKeyVersions.java | 0 ...yncListCryptoKeyVersionsCryptokeyname.java | 0 .../SyncListCryptoKeyVersionsString.java | 0 .../listimportjobs/AsyncListImportJobs.java | 0 .../AsyncListImportJobsPaged.java | 0 .../listimportjobs/SyncListImportJobs.java | 0 .../SyncListImportJobsKeyringname.java | 0 .../SyncListImportJobsString.java | 0 .../listkeyrings/AsyncListKeyRings.java | 0 .../listkeyrings/AsyncListKeyRingsPaged.java | 0 .../listkeyrings/SyncListKeyRings.java | 0 .../SyncListKeyRingsLocationname.java | 0 .../listkeyrings/SyncListKeyRingsString.java | 0 .../listlocations/AsyncListLocations.java | 0 .../AsyncListLocationsPaged.java | 0 .../listlocations/SyncListLocations.java | 0 .../macsign/AsyncMacSign.java | 0 .../macsign/SyncMacSign.java | 0 ...MacSignCryptokeyversionnameBytestring.java | 0 .../macsign/SyncMacSignStringBytestring.java | 0 .../macverify/AsyncMacVerify.java | 0 .../macverify/SyncMacVerify.java | 0 ...ptokeyversionnameBytestringBytestring.java | 0 ...ncMacVerifyStringBytestringBytestring.java | 0 .../AsyncRestoreCryptoKeyVersion.java | 0 .../SyncRestoreCryptoKeyVersion.java | 0 ...eCryptoKeyVersionCryptokeyversionname.java | 0 .../SyncRestoreCryptoKeyVersionString.java | 0 .../setiampolicy/AsyncSetIamPolicy.java | 0 .../setiampolicy/SyncSetIamPolicy.java | 0 .../AsyncTestIamPermissions.java | 0 .../SyncTestIamPermissions.java | 0 .../updatecryptokey/AsyncUpdateCryptoKey.java | 0 .../updatecryptokey/SyncUpdateCryptoKey.java | 0 ...SyncUpdateCryptoKeyCryptokeyFieldmask.java | 0 .../AsyncUpdateCryptoKeyPrimaryVersion.java | 0 .../SyncUpdateCryptoKeyPrimaryVersion.java | 0 ...oKeyPrimaryVersionCryptokeynameString.java | 0 ...teCryptoKeyPrimaryVersionStringString.java | 0 .../AsyncUpdateCryptoKeyVersion.java | 0 .../SyncUpdateCryptoKeyVersion.java | 0 ...toKeyVersionCryptokeyversionFieldmask.java | 0 .../getkeyring/SyncGetKeyRing.java | 0 .../SyncGetEkmConnection.java | 0 .../getkeyring/SyncGetKeyRing.java | 0 316 files changed, 16476 insertions(+), 28233 deletions(-) delete mode 100644 java-kms/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmServiceGrpc.java delete mode 100644 java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DestroyCryptoKeyVersionRequestOrBuilder.java delete mode 100644 java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmServiceProto.java delete mode 100644 java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyRequestOrBuilder.java delete mode 100644 java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyVersionRequestOrBuilder.java delete mode 100644 java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetEkmConnectionRequestOrBuilder.java delete mode 100644 java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetImportJobRequestOrBuilder.java delete mode 100644 java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetKeyRingRequestOrBuilder.java delete mode 100644 java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetPublicKeyRequestOrBuilder.java delete mode 100644 java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsProto.java delete mode 100644 java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsResourcesProto.java delete mode 100644 java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RestoreCryptoKeyVersionRequestOrBuilder.java rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/EkmServiceClient.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/EkmServiceSettings.java (99%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java (95%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceSettings.java (99%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/gapic_metadata.json (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/package-info.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/EkmServiceStub.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/EkmServiceStubSettings.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcEkmServiceCallableFactory.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcEkmServiceStub.java (99%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceCallableFactory.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java (99%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HttpJsonEkmServiceCallableFactory.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HttpJsonEkmServiceStub.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HttpJsonKeyManagementServiceCallableFactory.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HttpJsonKeyManagementServiceStub.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/EkmServiceClientHttpJsonTest.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/EkmServiceClientTest.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientHttpJsonTest.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientTest.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockEkmService.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockEkmServiceImpl.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockIAMPolicy.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockIAMPolicyImpl.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockKeyManagementService.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockKeyManagementServiceImpl.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockLocations.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockLocationsImpl.java (100%) create mode 100644 owl-bot-staging/java-kms/v1/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmServiceGrpc.java rename {java-kms => owl-bot-staging/java-kms/v1}/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceGrpc.java (50%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptRequest.java (75%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptRequestOrBuilder.java (78%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptResponse.java (80%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptResponseOrBuilder.java (88%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignRequest.java (80%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignRequestOrBuilder.java (88%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignResponse.java (80%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignResponseOrBuilder.java (89%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/Certificate.java (70%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CertificateOrBuilder.java (70%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateCryptoKeyRequest.java (68%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateCryptoKeyRequestOrBuilder.java (68%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateCryptoKeyVersionRequest.java (63%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateCryptoKeyVersionRequestOrBuilder.java (52%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateEkmConnectionRequest.java (65%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateEkmConnectionRequestOrBuilder.java (58%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateImportJobRequest.java (66%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateImportJobRequestOrBuilder.java (63%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateKeyRingRequest.java (68%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateKeyRingRequestOrBuilder.java (63%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKey.java (76%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyName.java (98%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyOrBuilder.java (85%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersion.java (72%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionName.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionOrBuilder.java (77%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionTemplate.java (68%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionTemplateOrBuilder.java (70%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DecryptRequest.java (78%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DecryptRequestOrBuilder.java (84%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DecryptResponse.java (79%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DecryptResponseOrBuilder.java (88%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DestroyCryptoKeyVersionRequest.java (61%) create mode 100644 owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DestroyCryptoKeyVersionRequestOrBuilder.java rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/Digest.java (69%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DigestOrBuilder.java (68%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmConnection.java (73%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmConnectionName.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmConnectionOrBuilder.java (82%) create mode 100644 owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmServiceProto.java rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptRequest.java (80%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptRequestOrBuilder.java (85%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptResponse.java (80%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptResponseOrBuilder.java (89%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ExternalProtectionLevelOptions.java (69%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ExternalProtectionLevelOptionsOrBuilder.java (66%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GenerateRandomBytesRequest.java (70%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GenerateRandomBytesRequestOrBuilder.java (70%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GenerateRandomBytesResponse.java (77%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GenerateRandomBytesResponseOrBuilder.java (84%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyRequest.java (62%) create mode 100644 owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyRequestOrBuilder.java rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyVersionRequest.java (62%) create mode 100644 owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyVersionRequestOrBuilder.java rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetEkmConnectionRequest.java (62%) create mode 100644 owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetEkmConnectionRequestOrBuilder.java rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetImportJobRequest.java (62%) create mode 100644 owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetImportJobRequestOrBuilder.java rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetKeyRingRequest.java (62%) create mode 100644 owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetKeyRingRequestOrBuilder.java rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetPublicKeyRequest.java (63%) create mode 100644 owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetPublicKeyRequestOrBuilder.java rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportCryptoKeyVersionRequest.java (75%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportCryptoKeyVersionRequestOrBuilder.java (80%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportJob.java (70%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportJobName.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportJobOrBuilder.java (70%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyOperationAttestation.java (69%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyOperationAttestationOrBuilder.java (50%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyRing.java (67%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyRingName.java (98%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyRingOrBuilder.java (65%) create mode 100644 owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsProto.java create mode 100644 owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsResourcesProto.java rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsRequest.java (72%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsRequestOrBuilder.java (76%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsResponse.java (74%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsResponseOrBuilder.java (73%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysRequest.java (72%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysRequestOrBuilder.java (76%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysResponse.java (73%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysResponseOrBuilder.java (71%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListEkmConnectionsRequest.java (72%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListEkmConnectionsRequestOrBuilder.java (74%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListEkmConnectionsResponse.java (73%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListEkmConnectionsResponseOrBuilder.java (72%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListImportJobsRequest.java (73%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListImportJobsRequestOrBuilder.java (74%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListImportJobsResponse.java (73%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListImportJobsResponseOrBuilder.java (71%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListKeyRingsRequest.java (72%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListKeyRingsRequestOrBuilder.java (74%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListKeyRingsResponse.java (73%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListKeyRingsResponseOrBuilder.java (70%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationMetadata.java (69%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationMetadataOrBuilder.java (61%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationName.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacSignRequest.java (76%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacSignRequestOrBuilder.java (80%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacSignResponse.java (79%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacSignResponseOrBuilder.java (87%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacVerifyRequest.java (80%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacVerifyRequestOrBuilder.java (86%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacVerifyResponse.java (77%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacVerifyResponseOrBuilder.java (84%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ProtectionLevel.java (71%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/PublicKey.java (77%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/PublicKeyOrBuilder.java (87%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RestoreCryptoKeyVersionRequest.java (61%) create mode 100644 owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RestoreCryptoKeyVersionRequestOrBuilder.java rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyPrimaryVersionRequest.java (64%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyPrimaryVersionRequestOrBuilder.java (53%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyRequest.java (65%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyRequestOrBuilder.java (63%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyVersionRequest.java (64%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyVersionRequestOrBuilder.java (56%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateEkmConnectionRequest.java (64%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateEkmConnectionRequestOrBuilder.java (56%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/ekm_service.proto (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/resources.proto (99%) rename {java-kms => owl-bot-staging/java-kms/v1}/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/service.proto (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/create/SyncCreateSetEndpoint.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/createekmconnection/AsyncCreateEkmConnection.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/createekmconnection/SyncCreateEkmConnection.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/createekmconnection/SyncCreateEkmConnectionLocationnameStringEkmconnection.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/createekmconnection/SyncCreateEkmConnectionStringStringEkmconnection.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getekmconnection/AsyncGetEkmConnection.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getekmconnection/SyncGetEkmConnection.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getekmconnection/SyncGetEkmConnectionEkmconnectionname.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getekmconnection/SyncGetEkmConnectionString.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getiampolicy/AsyncGetIamPolicy.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getiampolicy/SyncGetIamPolicy.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getlocation/AsyncGetLocation.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getlocation/SyncGetLocation.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listekmconnections/AsyncListEkmConnections.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listekmconnections/AsyncListEkmConnectionsPaged.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listekmconnections/SyncListEkmConnections.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listekmconnections/SyncListEkmConnectionsLocationname.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listekmconnections/SyncListEkmConnectionsString.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listlocations/AsyncListLocations.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listlocations/AsyncListLocationsPaged.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listlocations/SyncListLocations.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/setiampolicy/AsyncSetIamPolicy.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/setiampolicy/SyncSetIamPolicy.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/testiampermissions/AsyncTestIamPermissions.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/testiampermissions/SyncTestIamPermissions.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/updateekmconnection/AsyncUpdateEkmConnection.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/updateekmconnection/SyncUpdateEkmConnection.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/updateekmconnection/SyncUpdateEkmConnectionEkmconnectionFieldmask.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/ekmservicesettings/getekmconnection/SyncGetEkmConnection.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/AsyncAsymmetricDecrypt.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/SyncAsymmetricDecrypt.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/SyncAsymmetricDecryptCryptokeyversionnameBytestring.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/SyncAsymmetricDecryptStringBytestring.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/AsyncAsymmetricSign.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/SyncAsymmetricSign.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/SyncAsymmetricSignCryptokeyversionnameDigest.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/SyncAsymmetricSignStringDigest.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateSetEndpoint.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/AsyncCreateCryptoKey.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/SyncCreateCryptoKey.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/SyncCreateCryptoKeyKeyringnameStringCryptokey.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/SyncCreateCryptoKeyStringStringCryptokey.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/AsyncCreateCryptoKeyVersion.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/SyncCreateCryptoKeyVersion.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/SyncCreateCryptoKeyVersionCryptokeynameCryptokeyversion.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/SyncCreateCryptoKeyVersionStringCryptokeyversion.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createimportjob/AsyncCreateImportJob.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createimportjob/SyncCreateImportJob.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createimportjob/SyncCreateImportJobKeyringnameStringImportjob.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createimportjob/SyncCreateImportJobStringStringImportjob.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createkeyring/AsyncCreateKeyRing.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createkeyring/SyncCreateKeyRing.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createkeyring/SyncCreateKeyRingLocationnameStringKeyring.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createkeyring/SyncCreateKeyRingStringStringKeyring.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/decrypt/AsyncDecrypt.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/decrypt/SyncDecrypt.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/decrypt/SyncDecryptCryptokeynameBytestring.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/decrypt/SyncDecryptStringBytestring.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/AsyncDestroyCryptoKeyVersion.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/SyncDestroyCryptoKeyVersion.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/SyncDestroyCryptoKeyVersionCryptokeyversionname.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/SyncDestroyCryptoKeyVersionString.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/encrypt/AsyncEncrypt.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/encrypt/SyncEncrypt.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/encrypt/SyncEncryptResourcenameBytestring.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/encrypt/SyncEncryptStringBytestring.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/generaterandombytes/AsyncGenerateRandomBytes.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/generaterandombytes/SyncGenerateRandomBytes.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/generaterandombytes/SyncGenerateRandomBytesStringIntProtectionlevel.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/AsyncGetCryptoKey.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/SyncGetCryptoKey.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/SyncGetCryptoKeyCryptokeyname.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/SyncGetCryptoKeyString.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/AsyncGetCryptoKeyVersion.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/SyncGetCryptoKeyVersion.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/SyncGetCryptoKeyVersionCryptokeyversionname.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/SyncGetCryptoKeyVersionString.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getiampolicy/AsyncGetIamPolicy.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getiampolicy/SyncGetIamPolicy.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getimportjob/AsyncGetImportJob.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getimportjob/SyncGetImportJob.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getimportjob/SyncGetImportJobImportjobname.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getimportjob/SyncGetImportJobString.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getkeyring/AsyncGetKeyRing.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getkeyring/SyncGetKeyRing.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getkeyring/SyncGetKeyRingKeyringname.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getkeyring/SyncGetKeyRingString.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getlocation/AsyncGetLocation.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getlocation/SyncGetLocation.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getpublickey/AsyncGetPublicKey.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getpublickey/SyncGetPublicKey.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getpublickey/SyncGetPublicKeyCryptokeyversionname.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getpublickey/SyncGetPublicKeyString.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/importcryptokeyversion/AsyncImportCryptoKeyVersion.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/importcryptokeyversion/SyncImportCryptoKeyVersion.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/AsyncListCryptoKeys.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/AsyncListCryptoKeysPaged.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/SyncListCryptoKeys.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/SyncListCryptoKeysKeyringname.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/SyncListCryptoKeysString.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/AsyncListCryptoKeyVersions.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/AsyncListCryptoKeyVersionsPaged.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/SyncListCryptoKeyVersions.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/SyncListCryptoKeyVersionsCryptokeyname.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/SyncListCryptoKeyVersionsString.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/AsyncListImportJobs.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/AsyncListImportJobsPaged.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/SyncListImportJobs.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/SyncListImportJobsKeyringname.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/SyncListImportJobsString.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/AsyncListKeyRings.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/AsyncListKeyRingsPaged.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/SyncListKeyRings.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/SyncListKeyRingsLocationname.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/SyncListKeyRingsString.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listlocations/AsyncListLocations.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listlocations/AsyncListLocationsPaged.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listlocations/SyncListLocations.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macsign/AsyncMacSign.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macsign/SyncMacSign.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macsign/SyncMacSignCryptokeyversionnameBytestring.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macsign/SyncMacSignStringBytestring.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macverify/AsyncMacVerify.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macverify/SyncMacVerify.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macverify/SyncMacVerifyCryptokeyversionnameBytestringBytestring.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macverify/SyncMacVerifyStringBytestringBytestring.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/AsyncRestoreCryptoKeyVersion.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/SyncRestoreCryptoKeyVersion.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/SyncRestoreCryptoKeyVersionCryptokeyversionname.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/SyncRestoreCryptoKeyVersionString.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/setiampolicy/AsyncSetIamPolicy.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/setiampolicy/SyncSetIamPolicy.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/testiampermissions/AsyncTestIamPermissions.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/testiampermissions/SyncTestIamPermissions.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokey/AsyncUpdateCryptoKey.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokey/SyncUpdateCryptoKey.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokey/SyncUpdateCryptoKeyCryptokeyFieldmask.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/AsyncUpdateCryptoKeyPrimaryVersion.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersion.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersionCryptokeynameString.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersionStringString.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyversion/AsyncUpdateCryptoKeyVersion.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyversion/SyncUpdateCryptoKeyVersion.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyversion/SyncUpdateCryptoKeyVersionCryptokeyversionFieldmask.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservicesettings/getkeyring/SyncGetKeyRing.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/stub/ekmservicestubsettings/getekmconnection/SyncGetEkmConnection.java (100%) rename {java-kms => owl-bot-staging/java-kms/v1}/samples/snippets/generated/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/getkeyring/SyncGetKeyRing.java (100%) diff --git a/java-kms/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmServiceGrpc.java b/java-kms/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmServiceGrpc.java deleted file mode 100644 index 10c55e920f57..000000000000 --- a/java-kms/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmServiceGrpc.java +++ /dev/null @@ -1,725 +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.kms.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Google Cloud Key Management EKM Service
- * Manages external cryptographic keys and operations using those keys.
- * Implements a REST model with the following objects:
- * * [EkmConnection][google.cloud.kms.v1.EkmConnection]
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/kms/v1/ekm_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class EkmServiceGrpc { - - private EkmServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.kms.v1.EkmService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.kms.v1.ListEkmConnectionsRequest, - com.google.cloud.kms.v1.ListEkmConnectionsResponse> - getListEkmConnectionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListEkmConnections", - requestType = com.google.cloud.kms.v1.ListEkmConnectionsRequest.class, - responseType = com.google.cloud.kms.v1.ListEkmConnectionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.kms.v1.ListEkmConnectionsRequest, - com.google.cloud.kms.v1.ListEkmConnectionsResponse> - getListEkmConnectionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.kms.v1.ListEkmConnectionsRequest, - com.google.cloud.kms.v1.ListEkmConnectionsResponse> - getListEkmConnectionsMethod; - if ((getListEkmConnectionsMethod = EkmServiceGrpc.getListEkmConnectionsMethod) == null) { - synchronized (EkmServiceGrpc.class) { - if ((getListEkmConnectionsMethod = EkmServiceGrpc.getListEkmConnectionsMethod) == null) { - EkmServiceGrpc.getListEkmConnectionsMethod = - getListEkmConnectionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEkmConnections")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.kms.v1.ListEkmConnectionsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.kms.v1.ListEkmConnectionsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new EkmServiceMethodDescriptorSupplier("ListEkmConnections")) - .build(); - } - } - } - return getListEkmConnectionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.kms.v1.GetEkmConnectionRequest, com.google.cloud.kms.v1.EkmConnection> - getGetEkmConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetEkmConnection", - requestType = com.google.cloud.kms.v1.GetEkmConnectionRequest.class, - responseType = com.google.cloud.kms.v1.EkmConnection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.kms.v1.GetEkmConnectionRequest, com.google.cloud.kms.v1.EkmConnection> - getGetEkmConnectionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.kms.v1.GetEkmConnectionRequest, com.google.cloud.kms.v1.EkmConnection> - getGetEkmConnectionMethod; - if ((getGetEkmConnectionMethod = EkmServiceGrpc.getGetEkmConnectionMethod) == null) { - synchronized (EkmServiceGrpc.class) { - if ((getGetEkmConnectionMethod = EkmServiceGrpc.getGetEkmConnectionMethod) == null) { - EkmServiceGrpc.getGetEkmConnectionMethod = - getGetEkmConnectionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEkmConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.kms.v1.GetEkmConnectionRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.kms.v1.EkmConnection.getDefaultInstance())) - .setSchemaDescriptor( - new EkmServiceMethodDescriptorSupplier("GetEkmConnection")) - .build(); - } - } - } - return getGetEkmConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.kms.v1.CreateEkmConnectionRequest, com.google.cloud.kms.v1.EkmConnection> - getCreateEkmConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateEkmConnection", - requestType = com.google.cloud.kms.v1.CreateEkmConnectionRequest.class, - responseType = com.google.cloud.kms.v1.EkmConnection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.kms.v1.CreateEkmConnectionRequest, com.google.cloud.kms.v1.EkmConnection> - getCreateEkmConnectionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.kms.v1.CreateEkmConnectionRequest, - com.google.cloud.kms.v1.EkmConnection> - getCreateEkmConnectionMethod; - if ((getCreateEkmConnectionMethod = EkmServiceGrpc.getCreateEkmConnectionMethod) == null) { - synchronized (EkmServiceGrpc.class) { - if ((getCreateEkmConnectionMethod = EkmServiceGrpc.getCreateEkmConnectionMethod) == null) { - EkmServiceGrpc.getCreateEkmConnectionMethod = - getCreateEkmConnectionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateEkmConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.kms.v1.CreateEkmConnectionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.kms.v1.EkmConnection.getDefaultInstance())) - .setSchemaDescriptor( - new EkmServiceMethodDescriptorSupplier("CreateEkmConnection")) - .build(); - } - } - } - return getCreateEkmConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.kms.v1.UpdateEkmConnectionRequest, com.google.cloud.kms.v1.EkmConnection> - getUpdateEkmConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateEkmConnection", - requestType = com.google.cloud.kms.v1.UpdateEkmConnectionRequest.class, - responseType = com.google.cloud.kms.v1.EkmConnection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.kms.v1.UpdateEkmConnectionRequest, com.google.cloud.kms.v1.EkmConnection> - getUpdateEkmConnectionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.kms.v1.UpdateEkmConnectionRequest, - com.google.cloud.kms.v1.EkmConnection> - getUpdateEkmConnectionMethod; - if ((getUpdateEkmConnectionMethod = EkmServiceGrpc.getUpdateEkmConnectionMethod) == null) { - synchronized (EkmServiceGrpc.class) { - if ((getUpdateEkmConnectionMethod = EkmServiceGrpc.getUpdateEkmConnectionMethod) == null) { - EkmServiceGrpc.getUpdateEkmConnectionMethod = - getUpdateEkmConnectionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateEkmConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.kms.v1.UpdateEkmConnectionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.kms.v1.EkmConnection.getDefaultInstance())) - .setSchemaDescriptor( - new EkmServiceMethodDescriptorSupplier("UpdateEkmConnection")) - .build(); - } - } - } - return getUpdateEkmConnectionMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static EkmServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public EkmServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EkmServiceStub(channel, callOptions); - } - }; - return EkmServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static EkmServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public EkmServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EkmServiceBlockingStub(channel, callOptions); - } - }; - return EkmServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static EkmServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public EkmServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EkmServiceFutureStub(channel, callOptions); - } - }; - return EkmServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Google Cloud Key Management EKM Service
-   * Manages external cryptographic keys and operations using those keys.
-   * Implements a REST model with the following objects:
-   * * [EkmConnection][google.cloud.kms.v1.EkmConnection]
-   * 
- */ - public abstract static class EkmServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists [EkmConnections][google.cloud.kms.v1.EkmConnection].
-     * 
- */ - public void listEkmConnections( - com.google.cloud.kms.v1.ListEkmConnectionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListEkmConnectionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns metadata for a given
-     * [EkmConnection][google.cloud.kms.v1.EkmConnection].
-     * 
- */ - public void getEkmConnection( - com.google.cloud.kms.v1.GetEkmConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetEkmConnectionMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new [EkmConnection][google.cloud.kms.v1.EkmConnection] in a given
-     * Project and Location.
-     * 
- */ - public void createEkmConnection( - com.google.cloud.kms.v1.CreateEkmConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateEkmConnectionMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an [EkmConnection][google.cloud.kms.v1.EkmConnection]'s metadata.
-     * 
- */ - public void updateEkmConnection( - com.google.cloud.kms.v1.UpdateEkmConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateEkmConnectionMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListEkmConnectionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.ListEkmConnectionsRequest, - com.google.cloud.kms.v1.ListEkmConnectionsResponse>( - this, METHODID_LIST_EKM_CONNECTIONS))) - .addMethod( - getGetEkmConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.GetEkmConnectionRequest, - com.google.cloud.kms.v1.EkmConnection>(this, METHODID_GET_EKM_CONNECTION))) - .addMethod( - getCreateEkmConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.CreateEkmConnectionRequest, - com.google.cloud.kms.v1.EkmConnection>(this, METHODID_CREATE_EKM_CONNECTION))) - .addMethod( - getUpdateEkmConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.UpdateEkmConnectionRequest, - com.google.cloud.kms.v1.EkmConnection>(this, METHODID_UPDATE_EKM_CONNECTION))) - .build(); - } - } - - /** - * - * - *
-   * Google Cloud Key Management EKM Service
-   * Manages external cryptographic keys and operations using those keys.
-   * Implements a REST model with the following objects:
-   * * [EkmConnection][google.cloud.kms.v1.EkmConnection]
-   * 
- */ - public static final class EkmServiceStub extends io.grpc.stub.AbstractAsyncStub { - private EkmServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected EkmServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EkmServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists [EkmConnections][google.cloud.kms.v1.EkmConnection].
-     * 
- */ - public void listEkmConnections( - com.google.cloud.kms.v1.ListEkmConnectionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListEkmConnectionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns metadata for a given
-     * [EkmConnection][google.cloud.kms.v1.EkmConnection].
-     * 
- */ - public void getEkmConnection( - com.google.cloud.kms.v1.GetEkmConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEkmConnectionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new [EkmConnection][google.cloud.kms.v1.EkmConnection] in a given
-     * Project and Location.
-     * 
- */ - public void createEkmConnection( - com.google.cloud.kms.v1.CreateEkmConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateEkmConnectionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an [EkmConnection][google.cloud.kms.v1.EkmConnection]'s metadata.
-     * 
- */ - public void updateEkmConnection( - com.google.cloud.kms.v1.UpdateEkmConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateEkmConnectionMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Google Cloud Key Management EKM Service
-   * Manages external cryptographic keys and operations using those keys.
-   * Implements a REST model with the following objects:
-   * * [EkmConnection][google.cloud.kms.v1.EkmConnection]
-   * 
- */ - public static final class EkmServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private EkmServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected EkmServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EkmServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists [EkmConnections][google.cloud.kms.v1.EkmConnection].
-     * 
- */ - public com.google.cloud.kms.v1.ListEkmConnectionsResponse listEkmConnections( - com.google.cloud.kms.v1.ListEkmConnectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListEkmConnectionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns metadata for a given
-     * [EkmConnection][google.cloud.kms.v1.EkmConnection].
-     * 
- */ - public com.google.cloud.kms.v1.EkmConnection getEkmConnection( - com.google.cloud.kms.v1.GetEkmConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEkmConnectionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new [EkmConnection][google.cloud.kms.v1.EkmConnection] in a given
-     * Project and Location.
-     * 
- */ - public com.google.cloud.kms.v1.EkmConnection createEkmConnection( - com.google.cloud.kms.v1.CreateEkmConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateEkmConnectionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an [EkmConnection][google.cloud.kms.v1.EkmConnection]'s metadata.
-     * 
- */ - public com.google.cloud.kms.v1.EkmConnection updateEkmConnection( - com.google.cloud.kms.v1.UpdateEkmConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateEkmConnectionMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Google Cloud Key Management EKM Service
-   * Manages external cryptographic keys and operations using those keys.
-   * Implements a REST model with the following objects:
-   * * [EkmConnection][google.cloud.kms.v1.EkmConnection]
-   * 
- */ - public static final class EkmServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private EkmServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected EkmServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EkmServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists [EkmConnections][google.cloud.kms.v1.EkmConnection].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.kms.v1.ListEkmConnectionsResponse> - listEkmConnections(com.google.cloud.kms.v1.ListEkmConnectionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListEkmConnectionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns metadata for a given
-     * [EkmConnection][google.cloud.kms.v1.EkmConnection].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getEkmConnection(com.google.cloud.kms.v1.GetEkmConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEkmConnectionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new [EkmConnection][google.cloud.kms.v1.EkmConnection] in a given
-     * Project and Location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createEkmConnection(com.google.cloud.kms.v1.CreateEkmConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateEkmConnectionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an [EkmConnection][google.cloud.kms.v1.EkmConnection]'s metadata.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateEkmConnection(com.google.cloud.kms.v1.UpdateEkmConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateEkmConnectionMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_EKM_CONNECTIONS = 0; - private static final int METHODID_GET_EKM_CONNECTION = 1; - private static final int METHODID_CREATE_EKM_CONNECTION = 2; - private static final int METHODID_UPDATE_EKM_CONNECTION = 3; - - 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 EkmServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(EkmServiceImplBase 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_EKM_CONNECTIONS: - serviceImpl.listEkmConnections( - (com.google.cloud.kms.v1.ListEkmConnectionsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_EKM_CONNECTION: - serviceImpl.getEkmConnection( - (com.google.cloud.kms.v1.GetEkmConnectionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_EKM_CONNECTION: - serviceImpl.createEkmConnection( - (com.google.cloud.kms.v1.CreateEkmConnectionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_EKM_CONNECTION: - serviceImpl.updateEkmConnection( - (com.google.cloud.kms.v1.UpdateEkmConnectionRequest) 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 EkmServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - EkmServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.kms.v1.EkmServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("EkmService"); - } - } - - private static final class EkmServiceFileDescriptorSupplier - extends EkmServiceBaseDescriptorSupplier { - EkmServiceFileDescriptorSupplier() {} - } - - private static final class EkmServiceMethodDescriptorSupplier - extends EkmServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - EkmServiceMethodDescriptorSupplier(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 (EkmServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new EkmServiceFileDescriptorSupplier()) - .addMethod(getListEkmConnectionsMethod()) - .addMethod(getGetEkmConnectionMethod()) - .addMethod(getCreateEkmConnectionMethod()) - .addMethod(getUpdateEkmConnectionMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DestroyCryptoKeyVersionRequestOrBuilder.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DestroyCryptoKeyVersionRequestOrBuilder.java deleted file mode 100644 index 64ca104eb726..000000000000 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DestroyCryptoKeyVersionRequestOrBuilder.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/kms/v1/service.proto - -package com.google.cloud.kms.v1; - -public interface DestroyCryptoKeyVersionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.DestroyCryptoKeyVersionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the
-   * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to destroy.
-   * 
- * - * - * 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
-   * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to destroy.
-   * 
- * - * - * 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-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmServiceProto.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmServiceProto.java deleted file mode 100644 index 37216f110d7e..000000000000 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmServiceProto.java +++ /dev/null @@ -1,253 +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/kms/v1/ekm_service.proto - -package com.google.cloud.kms.v1; - -public final class EkmServiceProto { - private EkmServiceProto() {} - - 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_kms_v1_ListEkmConnectionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_ListEkmConnectionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_ListEkmConnectionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_ListEkmConnectionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_GetEkmConnectionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_GetEkmConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_CreateEkmConnectionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_CreateEkmConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_UpdateEkmConnectionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_UpdateEkmConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_Certificate_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_Certificate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_EkmConnection_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_EkmConnection_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_EkmConnection_ServiceResolver_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_EkmConnection_ServiceResolver_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/kms/v1/ekm_service.proto\022" - + "\023google.cloud.kms.v1\032\034google/api/annotat" - + "ions.proto\032\027google/api/client.proto\032\037goo" - + "gle/api/field_behavior.proto\032\031google/api" - + "/resource.proto\032 google/protobuf/field_m" - + "ask.proto\032\037google/protobuf/timestamp.pro" - + "to\"\263\001\n\031ListEkmConnectionsRequest\0229\n\006pare" - + "nt\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.c" - + "om/Location\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\np" - + "age_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A" - + "\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\206\001\n\032ListEkmConn" - + "ectionsResponse\022;\n\017ekm_connections\030\001 \003(\013" - + "2\".google.cloud.kms.v1.EkmConnection\022\027\n\017" - + "next_page_token\030\002 \001(\t\022\022\n\ntotal_size\030\003 \001(" - + "\005\"V\n\027GetEkmConnectionRequest\022;\n\004name\030\001 \001" - + "(\tB-\340A\002\372A\'\n%cloudkms.googleapis.com/EkmC" - + "onnection\"\270\001\n\032CreateEkmConnectionRequest" - + "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goog" - + "leapis.com/Location\022\036\n\021ekm_connection_id" - + "\030\002 \001(\tB\003\340A\002\022?\n\016ekm_connection\030\003 \001(\0132\".go" - + "ogle.cloud.kms.v1.EkmConnectionB\003\340A\002\"\223\001\n" - + "\032UpdateEkmConnectionRequest\022?\n\016ekm_conne" - + "ction\030\001 \001(\0132\".google.cloud.kms.v1.EkmCon" - + "nectionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.goog" - + "le.protobuf.FieldMaskB\003\340A\002\"\277\002\n\013Certifica" - + "te\022\024\n\007raw_der\030\001 \001(\014B\003\340A\002\022\023\n\006parsed\030\002 \001(\010" - + "B\003\340A\003\022\023\n\006issuer\030\003 \001(\tB\003\340A\003\022\024\n\007subject\030\004 " - + "\001(\tB\003\340A\003\022*\n\035subject_alternative_dns_name" - + "s\030\005 \003(\tB\003\340A\003\0228\n\017not_before_time\030\006 \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\003\0227\n\016not_af" - + "ter_time\030\007 \001(\0132\032.google.protobuf.Timesta" - + "mpB\003\340A\003\022\032\n\rserial_number\030\010 \001(\tB\003\340A\003\022\037\n\022s" - + "ha256_fingerprint\030\t \001(\tB\003\340A\003\"\213\004\n\rEkmConn" - + "ection\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time" - + "\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "M\n\021service_resolvers\030\003 \003(\01322.google.clou" - + "d.kms.v1.EkmConnection.ServiceResolver\022\014" - + "\n\004etag\030\005 \001(\t\032\336\001\n\017ServiceResolver\022R\n\031serv" - + "ice_directory_service\030\001 \001(\tB/\340A\002\372A)\n\'ser" - + "vicedirectory.googleapis.com/Service\022\034\n\017" - + "endpoint_filter\030\002 \001(\tB\003\340A\001\022\025\n\010hostname\030\003" - + " \001(\tB\003\340A\002\022B\n\023server_certificates\030\004 \003(\0132 " - + ".google.cloud.kms.v1.CertificateB\003\340A\002:s\352" - + "Ap\n%cloudkms.googleapis.com/EkmConnectio" - + "n\022Gprojects/{project}/locations/{locatio" - + "n}/ekmConnections/{ekm_connection}2\261\007\n\nE" - + "kmService\022\272\001\n\022ListEkmConnections\022..googl" - + "e.cloud.kms.v1.ListEkmConnectionsRequest" - + "\032/.google.cloud.kms.v1.ListEkmConnection" - + "sResponse\"C\202\323\344\223\0024\0222/v1/{parent=projects/" - + "*/locations/*}/ekmConnections\332A\006parent\022\247" - + "\001\n\020GetEkmConnection\022,.google.cloud.kms.v" - + "1.GetEkmConnectionRequest\032\".google.cloud" - + ".kms.v1.EkmConnection\"A\202\323\344\223\0024\0222/v1/{name" - + "=projects/*/locations/*/ekmConnections/*" - + "}\332A\004name\022\340\001\n\023CreateEkmConnection\022/.googl" - + "e.cloud.kms.v1.CreateEkmConnectionReques" - + "t\032\".google.cloud.kms.v1.EkmConnection\"t\202" - + "\323\344\223\002D\"2/v1/{parent=projects/*/locations/" - + "*}/ekmConnections:\016ekm_connection\332A\'pare" - + "nt,ekm_connection_id,ekm_connection\022\342\001\n\023" - + "UpdateEkmConnection\022/.google.cloud.kms.v" - + "1.UpdateEkmConnectionRequest\032\".google.cl" - + "oud.kms.v1.EkmConnection\"v\202\323\344\223\002S2A/v1/{e" - + "km_connection.name=projects/*/locations/" - + "*/ekmConnections/*}:\016ekm_connection\332A\032ek" - + "m_connection,update_mask\032t\312A\027cloudkms.go" - + "ogleapis.com\322AWhttps://www.googleapis.co" - + "m/auth/cloud-platform,https://www.google" - + "apis.com/auth/cloudkmsB\222\002\n\027com.google.cl" - + "oud.kms.v1B\017EkmServiceProtoP\001Z6google.go" - + "lang.org/genproto/googleapis/cloud/kms/v" - + "1;kms\370\001\001\252\002\023Google.Cloud.Kms.V1\312\002\023Google\\" - + "Cloud\\Kms\\V1\352A|\n\'servicedirectory.google" - + "apis.com/Service\022Qprojects/{project}/loc" - + "ations/{location}/namespaces/{namespace}" - + "/services/{service}b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_kms_v1_ListEkmConnectionsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_kms_v1_ListEkmConnectionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_ListEkmConnectionsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_kms_v1_ListEkmConnectionsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_kms_v1_ListEkmConnectionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_ListEkmConnectionsResponse_descriptor, - new java.lang.String[] { - "EkmConnections", "NextPageToken", "TotalSize", - }); - internal_static_google_cloud_kms_v1_GetEkmConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_kms_v1_GetEkmConnectionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_GetEkmConnectionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_kms_v1_CreateEkmConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_kms_v1_CreateEkmConnectionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_CreateEkmConnectionRequest_descriptor, - new java.lang.String[] { - "Parent", "EkmConnectionId", "EkmConnection", - }); - internal_static_google_cloud_kms_v1_UpdateEkmConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_kms_v1_UpdateEkmConnectionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_UpdateEkmConnectionRequest_descriptor, - new java.lang.String[] { - "EkmConnection", "UpdateMask", - }); - internal_static_google_cloud_kms_v1_Certificate_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_kms_v1_Certificate_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_Certificate_descriptor, - new java.lang.String[] { - "RawDer", - "Parsed", - "Issuer", - "Subject", - "SubjectAlternativeDnsNames", - "NotBeforeTime", - "NotAfterTime", - "SerialNumber", - "Sha256Fingerprint", - }); - internal_static_google_cloud_kms_v1_EkmConnection_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_kms_v1_EkmConnection_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_EkmConnection_descriptor, - new java.lang.String[] { - "Name", "CreateTime", "ServiceResolvers", "Etag", - }); - internal_static_google_cloud_kms_v1_EkmConnection_ServiceResolver_descriptor = - internal_static_google_cloud_kms_v1_EkmConnection_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_kms_v1_EkmConnection_ServiceResolver_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_EkmConnection_ServiceResolver_descriptor, - new java.lang.String[] { - "ServiceDirectoryService", "EndpointFilter", "Hostname", "ServerCertificates", - }); - 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.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - 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.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyRequestOrBuilder.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyRequestOrBuilder.java deleted file mode 100644 index b987c6946499..000000000000 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyRequestOrBuilder.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/kms/v1/service.proto - -package com.google.cloud.kms.v1; - -public interface GetCryptoKeyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.GetCryptoKeyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
-   * [CryptoKey][google.cloud.kms.v1.CryptoKey] to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
-   * [CryptoKey][google.cloud.kms.v1.CryptoKey] to get.
-   * 
- * - * - * 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-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyVersionRequestOrBuilder.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyVersionRequestOrBuilder.java deleted file mode 100644 index cd342906ba7e..000000000000 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyVersionRequestOrBuilder.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/kms/v1/service.proto - -package com.google.cloud.kms.v1; - -public interface GetCryptoKeyVersionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.GetCryptoKeyVersionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
-   * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
-   * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to get.
-   * 
- * - * - * 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-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetEkmConnectionRequestOrBuilder.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetEkmConnectionRequestOrBuilder.java deleted file mode 100644 index 906528732eb1..000000000000 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetEkmConnectionRequestOrBuilder.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/kms/v1/ekm_service.proto - -package com.google.cloud.kms.v1; - -public interface GetEkmConnectionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.GetEkmConnectionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The [name][google.cloud.kms.v1.EkmConnection.name] of the
-   * [EkmConnection][google.cloud.kms.v1.EkmConnection] to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The [name][google.cloud.kms.v1.EkmConnection.name] of the
-   * [EkmConnection][google.cloud.kms.v1.EkmConnection] to get.
-   * 
- * - * - * 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-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetImportJobRequestOrBuilder.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetImportJobRequestOrBuilder.java deleted file mode 100644 index 4011560fcbf2..000000000000 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetImportJobRequestOrBuilder.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/kms/v1/service.proto - -package com.google.cloud.kms.v1; - -public interface GetImportJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.GetImportJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The [name][google.cloud.kms.v1.ImportJob.name] of the
-   * [ImportJob][google.cloud.kms.v1.ImportJob] to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The [name][google.cloud.kms.v1.ImportJob.name] of the
-   * [ImportJob][google.cloud.kms.v1.ImportJob] to get.
-   * 
- * - * - * 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-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetKeyRingRequestOrBuilder.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetKeyRingRequestOrBuilder.java deleted file mode 100644 index a67a83792f94..000000000000 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetKeyRingRequestOrBuilder.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/kms/v1/service.proto - -package com.google.cloud.kms.v1; - -public interface GetKeyRingRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.GetKeyRingRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The [name][google.cloud.kms.v1.KeyRing.name] of the
-   * [KeyRing][google.cloud.kms.v1.KeyRing] to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The [name][google.cloud.kms.v1.KeyRing.name] of the
-   * [KeyRing][google.cloud.kms.v1.KeyRing] to get.
-   * 
- * - * - * 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-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetPublicKeyRequestOrBuilder.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetPublicKeyRequestOrBuilder.java deleted file mode 100644 index 10b73a21ff2b..000000000000 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetPublicKeyRequestOrBuilder.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/kms/v1/service.proto - -package com.google.cloud.kms.v1; - -public interface GetPublicKeyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.GetPublicKeyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
-   * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
-   * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to get.
-   * 
- * - * - * 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-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsProto.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsProto.java deleted file mode 100644 index fed7e01c9b81..000000000000 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsProto.java +++ /dev/null @@ -1,880 +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/kms/v1/service.proto - -package com.google.cloud.kms.v1; - -public final class KmsProto { - private KmsProto() {} - - 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_kms_v1_ListKeyRingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_ListKeyRingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_ListCryptoKeysRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_ListCryptoKeysRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_ListImportJobsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_ListImportJobsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_ListKeyRingsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_ListKeyRingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_ListCryptoKeysResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_ListCryptoKeysResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_ListImportJobsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_ListImportJobsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_GetKeyRingRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_GetKeyRingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_GetCryptoKeyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_GetCryptoKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_GetCryptoKeyVersionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_GetCryptoKeyVersionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_GetPublicKeyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_GetPublicKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_GetImportJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_GetImportJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_CreateKeyRingRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_CreateKeyRingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_CreateCryptoKeyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_CreateCryptoKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_CreateCryptoKeyVersionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_CreateCryptoKeyVersionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_ImportCryptoKeyVersionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_ImportCryptoKeyVersionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_CreateImportJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_CreateImportJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_UpdateCryptoKeyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_UpdateCryptoKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_UpdateCryptoKeyVersionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_UpdateCryptoKeyVersionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_UpdateCryptoKeyPrimaryVersionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_UpdateCryptoKeyPrimaryVersionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_DestroyCryptoKeyVersionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_DestroyCryptoKeyVersionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_RestoreCryptoKeyVersionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_RestoreCryptoKeyVersionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_EncryptRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_EncryptRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_DecryptRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_DecryptRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_AsymmetricSignRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_AsymmetricSignRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_MacSignRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_MacSignRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_MacVerifyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_MacVerifyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_GenerateRandomBytesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_GenerateRandomBytesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_EncryptResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_EncryptResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_DecryptResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_DecryptResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_AsymmetricSignResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_AsymmetricSignResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_MacSignResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_MacSignResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_MacVerifyResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_MacVerifyResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_GenerateRandomBytesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_GenerateRandomBytesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_Digest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_Digest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_LocationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_LocationMetadata_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/kms/v1/service.proto\022\023goo" - + "gle.cloud.kms.v1\032\034google/api/annotations" - + ".proto\032\027google/api/client.proto\032\037google/" - + "api/field_behavior.proto\032\031google/api/res" - + "ource.proto\032#google/cloud/kms/v1/resourc" - + "es.proto\032 google/protobuf/field_mask.pro" - + "to\032\036google/protobuf/wrappers.proto\"\255\001\n\023L" - + "istKeyRingsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372" - + "A#\n!locations.googleapis.com/Location\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(" - + "\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030" - + "\005 \001(\tB\003\340A\001\"\377\001\n\025ListCryptoKeysRequest\0227\n\006" - + "parent\030\001 \001(\tB\'\340A\002\372A!\n\037cloudkms.googleapi" - + "s.com/KeyRing\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" - + "\npage_token\030\003 \001(\tB\003\340A\001\022P\n\014version_view\030\004" - + " \001(\0162:.google.cloud.kms.v1.CryptoKeyVers" - + "ion.CryptoKeyVersionView\022\023\n\006filter\030\005 \001(\t" - + "B\003\340A\001\022\025\n\010order_by\030\006 \001(\tB\003\340A\001\"\200\002\n\034ListCry" - + "ptoKeyVersionsRequest\0229\n\006parent\030\001 \001(\tB)\340" - + "A\002\372A#\n!cloudkms.googleapis.com/CryptoKey" - + "\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003" - + " \001(\tB\003\340A\001\022H\n\004view\030\004 \001(\0162:.google.cloud.k" - + "ms.v1.CryptoKeyVersion.CryptoKeyVersionV" - + "iew\022\023\n\006filter\030\005 \001(\tB\003\340A\001\022\025\n\010order_by\030\006 \001" - + "(\tB\003\340A\001\"\255\001\n\025ListImportJobsRequest\0227\n\006par" - + "ent\030\001 \001(\tB\'\340A\002\372A!\n\037cloudkms.googleapis.c" - + "om/KeyRing\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npa" - + "ge_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001" - + "\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"t\n\024ListKeyRingsR" - + "esponse\022/\n\tkey_rings\030\001 \003(\0132\034.google.clou" - + "d.kms.v1.KeyRing\022\027\n\017next_page_token\030\002 \001(" - + "\t\022\022\n\ntotal_size\030\003 \001(\005\"z\n\026ListCryptoKeysR" - + "esponse\0223\n\013crypto_keys\030\001 \003(\0132\036.google.cl" - + "oud.kms.v1.CryptoKey\022\027\n\017next_page_token\030" - + "\002 \001(\t\022\022\n\ntotal_size\030\003 \001(\005\"\220\001\n\035ListCrypto" - + "KeyVersionsResponse\022B\n\023crypto_key_versio" - + "ns\030\001 \003(\0132%.google.cloud.kms.v1.CryptoKey" - + "Version\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\ntota" - + "l_size\030\003 \001(\005\"z\n\026ListImportJobsResponse\0223" - + "\n\013import_jobs\030\001 \003(\0132\036.google.cloud.kms.v" - + "1.ImportJob\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\n" - + "total_size\030\003 \001(\005\"J\n\021GetKeyRingRequest\0225\n" - + "\004name\030\001 \001(\tB\'\340A\002\372A!\n\037cloudkms.googleapis" - + ".com/KeyRing\"N\n\023GetCryptoKeyRequest\0227\n\004n" - + "ame\030\001 \001(\tB)\340A\002\372A#\n!cloudkms.googleapis.c" - + "om/CryptoKey\"\\\n\032GetCryptoKeyVersionReque" - + "st\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(cloudkms.googl" - + "eapis.com/CryptoKeyVersion\"U\n\023GetPublicK" - + "eyRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(cloudkm" - + "s.googleapis.com/CryptoKeyVersion\"N\n\023Get" - + "ImportJobRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!" - + "cloudkms.googleapis.com/ImportJob\"\240\001\n\024Cr" - + "eateKeyRingRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372" - + "A#\n!locations.googleapis.com/Location\022\030\n" - + "\013key_ring_id\030\002 \001(\tB\003\340A\002\0223\n\010key_ring\030\003 \001(" - + "\0132\034.google.cloud.kms.v1.KeyRingB\003\340A\002\"\315\001\n" - + "\026CreateCryptoKeyRequest\0227\n\006parent\030\001 \001(\tB" - + "\'\340A\002\372A!\n\037cloudkms.googleapis.com/KeyRing" - + "\022\032\n\rcrypto_key_id\030\002 \001(\tB\003\340A\002\0227\n\ncrypto_k" - + "ey\030\003 \001(\0132\036.google.cloud.kms.v1.CryptoKey" - + "B\003\340A\002\022%\n\035skip_initial_version_creation\030\005" - + " \001(\010\"\242\001\n\035CreateCryptoKeyVersionRequest\0229" - + "\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!cloudkms.googlea" - + "pis.com/CryptoKey\022F\n\022crypto_key_version\030" - + "\002 \001(\0132%.google.cloud.kms.v1.CryptoKeyVer" - + "sionB\003\340A\002\"\321\002\n\035ImportCryptoKeyVersionRequ" - + "est\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!cloudkms.go" - + "ogleapis.com/CryptoKey\022L\n\022crypto_key_ver" - + "sion\030\006 \001(\tB0\340A\001\372A*\n(cloudkms.googleapis." - + "com/CryptoKeyVersion\022W\n\talgorithm\030\002 \001(\0162" - + "?.google.cloud.kms.v1.CryptoKeyVersion.C" - + "ryptoKeyVersionAlgorithmB\003\340A\002\022\027\n\nimport_" - + "job\030\004 \001(\tB\003\340A\002\022\035\n\023rsa_aes_wrapped_key\030\005 " - + "\001(\014H\000B\026\n\024wrapped_key_material\"\246\001\n\026Create" - + "ImportJobRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!" - + "\n\037cloudkms.googleapis.com/KeyRing\022\032\n\rimp" - + "ort_job_id\030\002 \001(\tB\003\340A\002\0227\n\nimport_job\030\003 \001(" - + "\0132\036.google.cloud.kms.v1.ImportJobB\003\340A\002\"\207" - + "\001\n\026UpdateCryptoKeyRequest\0227\n\ncrypto_key\030" - + "\001 \001(\0132\036.google.cloud.kms.v1.CryptoKeyB\003\340" - + "A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobu" - + "f.FieldMaskB\003\340A\002\"\235\001\n\035UpdateCryptoKeyVers" - + "ionRequest\022F\n\022crypto_key_version\030\001 \001(\0132%" - + ".google.cloud.kms.v1.CryptoKeyVersionB\003\340" - + "A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobu" - + "f.FieldMaskB\003\340A\002\"\203\001\n$UpdateCryptoKeyPrim" - + "aryVersionRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n" - + "!cloudkms.googleapis.com/CryptoKey\022\"\n\025cr" - + "ypto_key_version_id\030\002 \001(\tB\003\340A\002\"`\n\036Destro" - + "yCryptoKeyVersionRequest\022>\n\004name\030\001 \001(\tB0" - + "\340A\002\372A*\n(cloudkms.googleapis.com/CryptoKe" - + "yVersion\"`\n\036RestoreCryptoKeyVersionReque" - + "st\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(cloudkms.googl" - + "eapis.com/CryptoKeyVersion\"\371\001\n\016EncryptRe" - + "quest\022\027\n\004name\030\001 \001(\tB\t\340A\002\372A\003\n\001*\022\026\n\tplaint" - + "ext\030\002 \001(\014B\003\340A\002\022*\n\035additional_authenticat" - + "ed_data\030\003 \001(\014B\003\340A\001\022:\n\020plaintext_crc32c\030\007" - + " \001(\0132\033.google.protobuf.Int64ValueB\003\340A\001\022N" - + "\n$additional_authenticated_data_crc32c\030\010" - + " \001(\0132\033.google.protobuf.Int64ValueB\003\340A\001\"\233" - + "\002\n\016DecryptRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n" - + "!cloudkms.googleapis.com/CryptoKey\022\027\n\nci" - + "phertext\030\002 \001(\014B\003\340A\002\022*\n\035additional_authen" - + "ticated_data\030\003 \001(\014B\003\340A\001\022;\n\021ciphertext_cr" - + "c32c\030\005 \001(\0132\033.google.protobuf.Int64ValueB" - + "\003\340A\001\022N\n$additional_authenticated_data_cr" - + "c32c\030\006 \001(\0132\033.google.protobuf.Int64ValueB" - + "\003\340A\001\"\214\002\n\025AsymmetricSignRequest\022>\n\004name\030\001" - + " \001(\tB0\340A\002\372A*\n(cloudkms.googleapis.com/Cr" - + "yptoKeyVersion\0220\n\006digest\030\003 \001(\0132\033.google." - + "cloud.kms.v1.DigestB\003\340A\001\0227\n\rdigest_crc32" - + "c\030\004 \001(\0132\033.google.protobuf.Int64ValueB\003\340A" - + "\001\022\021\n\004data\030\006 \001(\014B\003\340A\001\0225\n\013data_crc32c\030\007 \001(" - + "\0132\033.google.protobuf.Int64ValueB\003\340A\001\"\260\001\n\030" - + "AsymmetricDecryptRequest\022>\n\004name\030\001 \001(\tB0" - + "\340A\002\372A*\n(cloudkms.googleapis.com/CryptoKe" - + "yVersion\022\027\n\nciphertext\030\003 \001(\014B\003\340A\002\022;\n\021cip" - + "hertext_crc32c\030\004 \001(\0132\033.google.protobuf.I" - + "nt64ValueB\003\340A\001\"\232\001\n\016MacSignRequest\022>\n\004nam" - + "e\030\001 \001(\tB0\340A\002\372A*\n(cloudkms.googleapis.com" - + "/CryptoKeyVersion\022\021\n\004data\030\002 \001(\014B\003\340A\002\0225\n\013" - + "data_crc32c\030\003 \001(\0132\033.google.protobuf.Int6" - + "4ValueB\003\340A\001\"\344\001\n\020MacVerifyRequest\022>\n\004name" - + "\030\001 \001(\tB0\340A\002\372A*\n(cloudkms.googleapis.com/" - + "CryptoKeyVersion\022\021\n\004data\030\002 \001(\014B\003\340A\002\0225\n\013d" - + "ata_crc32c\030\003 \001(\0132\033.google.protobuf.Int64" - + "ValueB\003\340A\001\022\020\n\003mac\030\004 \001(\014B\003\340A\002\0224\n\nmac_crc3" - + "2c\030\005 \001(\0132\033.google.protobuf.Int64ValueB\003\340" - + "A\001\"\204\001\n\032GenerateRandomBytesRequest\022\020\n\010loc" - + "ation\030\001 \001(\t\022\024\n\014length_bytes\030\002 \001(\005\022>\n\020pro" - + "tection_level\030\003 \001(\0162$.google.cloud.kms.v" - + "1.ProtectionLevel\"\205\002\n\017EncryptResponse\022\014\n" - + "\004name\030\001 \001(\t\022\022\n\nciphertext\030\002 \001(\014\0226\n\021ciphe" - + "rtext_crc32c\030\004 \001(\0132\033.google.protobuf.Int" - + "64Value\022!\n\031verified_plaintext_crc32c\030\005 \001" - + "(\010\0225\n-verified_additional_authenticated_" - + "data_crc32c\030\006 \001(\010\022>\n\020protection_level\030\007 " - + "\001(\0162$.google.cloud.kms.v1.ProtectionLeve" - + "l\"\261\001\n\017DecryptResponse\022\021\n\tplaintext\030\001 \001(\014" - + "\0225\n\020plaintext_crc32c\030\002 \001(\0132\033.google.prot" - + "obuf.Int64Value\022\024\n\014used_primary\030\003 \001(\010\022>\n" - + "\020protection_level\030\004 \001(\0162$.google.cloud.k" - + "ms.v1.ProtectionLevel\"\356\001\n\026AsymmetricSign" - + "Response\022\021\n\tsignature\030\001 \001(\014\0225\n\020signature" - + "_crc32c\030\002 \001(\0132\033.google.protobuf.Int64Val" - + "ue\022\036\n\026verified_digest_crc32c\030\003 \001(\010\022\014\n\004na" - + "me\030\004 \001(\t\022\034\n\024verified_data_crc32c\030\005 \001(\010\022>" - + "\n\020protection_level\030\006 \001(\0162$.google.cloud." - + "kms.v1.ProtectionLevel\"\311\001\n\031AsymmetricDec" - + "ryptResponse\022\021\n\tplaintext\030\001 \001(\014\0225\n\020plain" - + "text_crc32c\030\002 \001(\0132\033.google.protobuf.Int6" - + "4Value\022\"\n\032verified_ciphertext_crc32c\030\003 \001" - + "(\010\022>\n\020protection_level\030\004 \001(\0162$.google.cl" - + "oud.kms.v1.ProtectionLevel\"\273\001\n\017MacSignRe" - + "sponse\022\014\n\004name\030\001 \001(\t\022\013\n\003mac\030\002 \001(\014\022/\n\nmac" - + "_crc32c\030\003 \001(\0132\033.google.protobuf.Int64Val" - + "ue\022\034\n\024verified_data_crc32c\030\004 \001(\010\022>\n\020prot" - + "ection_level\030\005 \001(\0162$.google.cloud.kms.v1" - + ".ProtectionLevel\"\321\001\n\021MacVerifyResponse\022\014" - + "\n\004name\030\001 \001(\t\022\017\n\007success\030\002 \001(\010\022\034\n\024verifie" - + "d_data_crc32c\030\003 \001(\010\022\033\n\023verified_mac_crc3" - + "2c\030\004 \001(\010\022\"\n\032verified_success_integrity\030\005" - + " \001(\010\022>\n\020protection_level\030\006 \001(\0162$.google." - + "cloud.kms.v1.ProtectionLevel\"]\n\033Generate" - + "RandomBytesResponse\022\014\n\004data\030\001 \001(\014\0220\n\013dat" - + "a_crc32c\030\003 \001(\0132\033.google.protobuf.Int64Va" - + "lue\"H\n\006Digest\022\020\n\006sha256\030\001 \001(\014H\000\022\020\n\006sha38" - + "4\030\002 \001(\014H\000\022\020\n\006sha512\030\003 \001(\014H\000B\010\n\006digest\"@\n" - + "\020LocationMetadata\022\025\n\rhsm_available\030\001 \001(\010" - + "\022\025\n\rekm_available\030\002 \001(\0102\206+\n\024KeyManagemen" - + "tService\022\242\001\n\014ListKeyRings\022(.google.cloud" - + ".kms.v1.ListKeyRingsRequest\032).google.clo" - + "ud.kms.v1.ListKeyRingsResponse\"=\202\323\344\223\002.\022," - + "/v1/{parent=projects/*/locations/*}/keyR" - + "ings\332A\006parent\022\265\001\n\016ListCryptoKeys\022*.googl" - + "e.cloud.kms.v1.ListCryptoKeysRequest\032+.g" - + "oogle.cloud.kms.v1.ListCryptoKeysRespons" - + "e\"J\202\323\344\223\002;\0229/v1/{parent=projects/*/locati" - + "ons/*/keyRings/*}/cryptoKeys\332A\006parent\022\336\001" - + "\n\025ListCryptoKeyVersions\0221.google.cloud.k" - + "ms.v1.ListCryptoKeyVersionsRequest\0322.goo" - + "gle.cloud.kms.v1.ListCryptoKeyVersionsRe" - + "sponse\"^\202\323\344\223\002O\022M/v1/{parent=projects/*/l" - + "ocations/*/keyRings/*/cryptoKeys/*}/cryp" - + "toKeyVersions\332A\006parent\022\265\001\n\016ListImportJob" - + "s\022*.google.cloud.kms.v1.ListImportJobsRe" - + "quest\032+.google.cloud.kms.v1.ListImportJo" - + "bsResponse\"J\202\323\344\223\002;\0229/v1/{parent=projects" - + "/*/locations/*/keyRings/*}/importJobs\332A\006" - + "parent\022\217\001\n\nGetKeyRing\022&.google.cloud.kms" - + ".v1.GetKeyRingRequest\032\034.google.cloud.kms" - + ".v1.KeyRing\";\202\323\344\223\002.\022,/v1/{name=projects/" - + "*/locations/*/keyRings/*}\332A\004name\022\242\001\n\014Get" - + "CryptoKey\022(.google.cloud.kms.v1.GetCrypt" - + "oKeyRequest\032\036.google.cloud.kms.v1.Crypto" - + "Key\"H\202\323\344\223\002;\0229/v1/{name=projects/*/locati" - + "ons/*/keyRings/*/cryptoKeys/*}\332A\004name\022\313\001" - + "\n\023GetCryptoKeyVersion\022/.google.cloud.kms" - + ".v1.GetCryptoKeyVersionRequest\032%.google." - + "cloud.kms.v1.CryptoKeyVersion\"\\\202\323\344\223\002O\022M/" - + "v1/{name=projects/*/locations/*/keyRings" - + "/*/cryptoKeys/*/cryptoKeyVersions/*}\332A\004n" - + "ame\022\300\001\n\014GetPublicKey\022(.google.cloud.kms." - + "v1.GetPublicKeyRequest\032\036.google.cloud.km" - + "s.v1.PublicKey\"f\202\323\344\223\002Y\022W/v1/{name=projec" - + "ts/*/locations/*/keyRings/*/cryptoKeys/*" - + "/cryptoKeyVersions/*}/publicKey\332A\004name\022\242" - + "\001\n\014GetImportJob\022(.google.cloud.kms.v1.Ge" - + "tImportJobRequest\032\036.google.cloud.kms.v1." - + "ImportJob\"H\202\323\344\223\002;\0229/v1/{name=projects/*/" - + "locations/*/keyRings/*/importJobs/*}\332A\004n" - + "ame\022\266\001\n\rCreateKeyRing\022).google.cloud.kms" - + ".v1.CreateKeyRingRequest\032\034.google.cloud." - + "kms.v1.KeyRing\"\\\202\323\344\223\0028\",/v1/{parent=proj" - + "ects/*/locations/*}/keyRings:\010key_ring\332A" - + "\033parent,key_ring_id,key_ring\022\317\001\n\017CreateC" - + "ryptoKey\022+.google.cloud.kms.v1.CreateCry" - + "ptoKeyRequest\032\036.google.cloud.kms.v1.Cryp" - + "toKey\"o\202\323\344\223\002G\"9/v1/{parent=projects/*/lo" - + "cations/*/keyRings/*}/cryptoKeys:\ncrypto" - + "_key\332A\037parent,crypto_key_id,crypto_key\022\373" - + "\001\n\026CreateCryptoKeyVersion\0222.google.cloud" - + ".kms.v1.CreateCryptoKeyVersionRequest\032%." - + "google.cloud.kms.v1.CryptoKeyVersion\"\205\001\202" - + "\323\344\223\002c\"M/v1/{parent=projects/*/locations/" - + "*/keyRings/*/cryptoKeys/*}/cryptoKeyVers" - + "ions:\022crypto_key_version\332A\031parent,crypto" - + "_key_version\022\324\001\n\026ImportCryptoKeyVersion\022" - + "2.google.cloud.kms.v1.ImportCryptoKeyVer" - + "sionRequest\032%.google.cloud.kms.v1.Crypto" - + "KeyVersion\"_\202\323\344\223\002Y\"T/v1/{parent=projects" - + "/*/locations/*/keyRings/*/cryptoKeys/*}/" - + "cryptoKeyVersions:import:\001*\022\317\001\n\017CreateIm" - + "portJob\022+.google.cloud.kms.v1.CreateImpo" - + "rtJobRequest\032\036.google.cloud.kms.v1.Impor" - + "tJob\"o\202\323\344\223\002G\"9/v1/{parent=projects/*/loc" - + "ations/*/keyRings/*}/importJobs:\nimport_" - + "job\332A\037parent,import_job_id,import_job\022\321\001" - + "\n\017UpdateCryptoKey\022+.google.cloud.kms.v1." - + "UpdateCryptoKeyRequest\032\036.google.cloud.km" - + "s.v1.CryptoKey\"q\202\323\344\223\002R2D/v1/{crypto_key." - + "name=projects/*/locations/*/keyRings/*/c" - + "ryptoKeys/*}:\ncrypto_key\332A\026crypto_key,up" - + "date_mask\022\223\002\n\026UpdateCryptoKeyVersion\0222.g" - + "oogle.cloud.kms.v1.UpdateCryptoKeyVersio" - + "nRequest\032%.google.cloud.kms.v1.CryptoKey" - + "Version\"\235\001\202\323\344\223\002v2`/v1/{crypto_key_versio" - + "n.name=projects/*/locations/*/keyRings/*" - + "/cryptoKeys/*/cryptoKeyVersions/*}:\022cryp" - + "to_key_version\332A\036crypto_key_version,upda" - + "te_mask\022\362\001\n\035UpdateCryptoKeyPrimaryVersio" - + "n\0229.google.cloud.kms.v1.UpdateCryptoKeyP" - + "rimaryVersionRequest\032\036.google.cloud.kms." - + "v1.CryptoKey\"v\202\323\344\223\002S\"N/v1/{name=projects" - + "/*/locations/*/keyRings/*/cryptoKeys/*}:" - + "updatePrimaryVersion:\001*\332A\032name,crypto_ke" - + "y_version_id\022\336\001\n\027DestroyCryptoKeyVersion" - + "\0223.google.cloud.kms.v1.DestroyCryptoKeyV" - + "ersionRequest\032%.google.cloud.kms.v1.Cryp" - + "toKeyVersion\"g\202\323\344\223\002Z\"U/v1/{name=projects" - + "/*/locations/*/keyRings/*/cryptoKeys/*/c" - + "ryptoKeyVersions/*}:destroy:\001*\332A\004name\022\336\001" - + "\n\027RestoreCryptoKeyVersion\0223.google.cloud" - + ".kms.v1.RestoreCryptoKeyVersionRequest\032%" - + ".google.cloud.kms.v1.CryptoKeyVersion\"g\202" - + "\323\344\223\002Z\"U/v1/{name=projects/*/locations/*/" - + "keyRings/*/cryptoKeys/*/cryptoKeyVersion" - + "s/*}:restore:\001*\332A\004name\022\264\001\n\007Encrypt\022#.goo" - + "gle.cloud.kms.v1.EncryptRequest\032$.google" - + ".cloud.kms.v1.EncryptResponse\"^\202\323\344\223\002G\"B/" - + "v1/{name=projects/*/locations/*/keyRings" - + "/*/cryptoKeys/**}:encrypt:\001*\332A\016name,plai" - + "ntext\022\264\001\n\007Decrypt\022#.google.cloud.kms.v1." - + "DecryptRequest\032$.google.cloud.kms.v1.Dec" - + "ryptResponse\"^\202\323\344\223\002F\"A/v1/{name=projects" - + "/*/locations/*/keyRings/*/cryptoKeys/*}:" - + "decrypt:\001*\332A\017name,ciphertext\022\340\001\n\016Asymmet" - + "ricSign\022*.google.cloud.kms.v1.Asymmetric" - + "SignRequest\032+.google.cloud.kms.v1.Asymme" - + "tricSignResponse\"u\202\323\344\223\002a\"\\/v1/{name=proj" - + "ects/*/locations/*/keyRings/*/cryptoKeys" - + "/*/cryptoKeyVersions/*}:asymmetricSign:\001" - + "*\332A\013name,digest\022\360\001\n\021AsymmetricDecrypt\022-." - + "google.cloud.kms.v1.AsymmetricDecryptReq" - + "uest\032..google.cloud.kms.v1.AsymmetricDec" - + "ryptResponse\"|\202\323\344\223\002d\"_/v1/{name=projects" - + "/*/locations/*/keyRings/*/cryptoKeys/*/c" - + "ryptoKeyVersions/*}:asymmetricDecrypt:\001*" - + "\332A\017name,ciphertext\022\302\001\n\007MacSign\022#.google." - + "cloud.kms.v1.MacSignRequest\032$.google.clo" - + "ud.kms.v1.MacSignResponse\"l\202\323\344\223\002Z\"U/v1/{" - + "name=projects/*/locations/*/keyRings/*/c" - + "ryptoKeys/*/cryptoKeyVersions/*}:macSign" - + ":\001*\332A\tname,data\022\316\001\n\tMacVerify\022%.google.c" - + "loud.kms.v1.MacVerifyRequest\032&.google.cl" - + "oud.kms.v1.MacVerifyResponse\"r\202\323\344\223\002\\\"W/v" - + "1/{name=projects/*/locations/*/keyRings/" - + "*/cryptoKeys/*/cryptoKeyVersions/*}:macV" - + "erify:\001*\332A\rname,data,mac\022\347\001\n\023GenerateRan" - + "domBytes\022/.google.cloud.kms.v1.GenerateR" - + "andomBytesRequest\0320.google.cloud.kms.v1." - + "GenerateRandomBytesResponse\"m\202\323\344\223\002>\"9/v1" - + "/{location=projects/*/locations/*}:gener" - + "ateRandomBytes:\001*\332A&location,length_byte" - + "s,protection_level\032t\312A\027cloudkms.googleap" - + "is.com\322AWhttps://www.googleapis.com/auth" - + "/cloud-platform,https://www.googleapis.c" - + "om/auth/cloudkmsB\214\001\n\027com.google.cloud.km" - + "s.v1B\010KmsProtoP\001Z6google.golang.org/genp" - + "roto/googleapis/cloud/kms/v1;kms\370\001\001\252\002\023Go" - + "ogle.Cloud.Kms.V1\312\002\023Google\\Cloud\\Kms\\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.kms.v1.KmsResourcesProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - }); - internal_static_google_cloud_kms_v1_ListKeyRingsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_kms_v1_ListKeyRingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_ListKeyRingsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_kms_v1_ListCryptoKeysRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_kms_v1_ListCryptoKeysRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_ListCryptoKeysRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "VersionView", "Filter", "OrderBy", - }); - internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "View", "Filter", "OrderBy", - }); - internal_static_google_cloud_kms_v1_ListImportJobsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_kms_v1_ListImportJobsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_ListImportJobsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_kms_v1_ListKeyRingsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_kms_v1_ListKeyRingsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_ListKeyRingsResponse_descriptor, - new java.lang.String[] { - "KeyRings", "NextPageToken", "TotalSize", - }); - internal_static_google_cloud_kms_v1_ListCryptoKeysResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_kms_v1_ListCryptoKeysResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_ListCryptoKeysResponse_descriptor, - new java.lang.String[] { - "CryptoKeys", "NextPageToken", "TotalSize", - }); - internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsResponse_descriptor, - new java.lang.String[] { - "CryptoKeyVersions", "NextPageToken", "TotalSize", - }); - internal_static_google_cloud_kms_v1_ListImportJobsResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_kms_v1_ListImportJobsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_ListImportJobsResponse_descriptor, - new java.lang.String[] { - "ImportJobs", "NextPageToken", "TotalSize", - }); - internal_static_google_cloud_kms_v1_GetKeyRingRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_kms_v1_GetKeyRingRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_GetKeyRingRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_kms_v1_GetCryptoKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_kms_v1_GetCryptoKeyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_GetCryptoKeyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_kms_v1_GetCryptoKeyVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_kms_v1_GetCryptoKeyVersionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_GetCryptoKeyVersionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_kms_v1_GetPublicKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_kms_v1_GetPublicKeyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_GetPublicKeyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_kms_v1_GetImportJobRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_kms_v1_GetImportJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_GetImportJobRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_kms_v1_CreateKeyRingRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_kms_v1_CreateKeyRingRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_CreateKeyRingRequest_descriptor, - new java.lang.String[] { - "Parent", "KeyRingId", "KeyRing", - }); - internal_static_google_cloud_kms_v1_CreateCryptoKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_kms_v1_CreateCryptoKeyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_CreateCryptoKeyRequest_descriptor, - new java.lang.String[] { - "Parent", "CryptoKeyId", "CryptoKey", "SkipInitialVersionCreation", - }); - internal_static_google_cloud_kms_v1_CreateCryptoKeyVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_kms_v1_CreateCryptoKeyVersionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_CreateCryptoKeyVersionRequest_descriptor, - new java.lang.String[] { - "Parent", "CryptoKeyVersion", - }); - internal_static_google_cloud_kms_v1_ImportCryptoKeyVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_kms_v1_ImportCryptoKeyVersionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_ImportCryptoKeyVersionRequest_descriptor, - new java.lang.String[] { - "Parent", - "CryptoKeyVersion", - "Algorithm", - "ImportJob", - "RsaAesWrappedKey", - "WrappedKeyMaterial", - }); - internal_static_google_cloud_kms_v1_CreateImportJobRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_kms_v1_CreateImportJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_CreateImportJobRequest_descriptor, - new java.lang.String[] { - "Parent", "ImportJobId", "ImportJob", - }); - internal_static_google_cloud_kms_v1_UpdateCryptoKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_kms_v1_UpdateCryptoKeyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_UpdateCryptoKeyRequest_descriptor, - new java.lang.String[] { - "CryptoKey", "UpdateMask", - }); - internal_static_google_cloud_kms_v1_UpdateCryptoKeyVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_kms_v1_UpdateCryptoKeyVersionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_UpdateCryptoKeyVersionRequest_descriptor, - new java.lang.String[] { - "CryptoKeyVersion", "UpdateMask", - }); - internal_static_google_cloud_kms_v1_UpdateCryptoKeyPrimaryVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_kms_v1_UpdateCryptoKeyPrimaryVersionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_UpdateCryptoKeyPrimaryVersionRequest_descriptor, - new java.lang.String[] { - "Name", "CryptoKeyVersionId", - }); - internal_static_google_cloud_kms_v1_DestroyCryptoKeyVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_kms_v1_DestroyCryptoKeyVersionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_DestroyCryptoKeyVersionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_kms_v1_RestoreCryptoKeyVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_kms_v1_RestoreCryptoKeyVersionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_RestoreCryptoKeyVersionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_kms_v1_EncryptRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_kms_v1_EncryptRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_EncryptRequest_descriptor, - new java.lang.String[] { - "Name", - "Plaintext", - "AdditionalAuthenticatedData", - "PlaintextCrc32C", - "AdditionalAuthenticatedDataCrc32C", - }); - internal_static_google_cloud_kms_v1_DecryptRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_kms_v1_DecryptRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_DecryptRequest_descriptor, - new java.lang.String[] { - "Name", - "Ciphertext", - "AdditionalAuthenticatedData", - "CiphertextCrc32C", - "AdditionalAuthenticatedDataCrc32C", - }); - internal_static_google_cloud_kms_v1_AsymmetricSignRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_kms_v1_AsymmetricSignRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_AsymmetricSignRequest_descriptor, - new java.lang.String[] { - "Name", "Digest", "DigestCrc32C", "Data", "DataCrc32C", - }); - internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_descriptor, - new java.lang.String[] { - "Name", "Ciphertext", "CiphertextCrc32C", - }); - internal_static_google_cloud_kms_v1_MacSignRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_kms_v1_MacSignRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_MacSignRequest_descriptor, - new java.lang.String[] { - "Name", "Data", "DataCrc32C", - }); - internal_static_google_cloud_kms_v1_MacVerifyRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_kms_v1_MacVerifyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_MacVerifyRequest_descriptor, - new java.lang.String[] { - "Name", "Data", "DataCrc32C", "Mac", "MacCrc32C", - }); - internal_static_google_cloud_kms_v1_GenerateRandomBytesRequest_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_kms_v1_GenerateRandomBytesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_GenerateRandomBytesRequest_descriptor, - new java.lang.String[] { - "Location", "LengthBytes", "ProtectionLevel", - }); - internal_static_google_cloud_kms_v1_EncryptResponse_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_kms_v1_EncryptResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_EncryptResponse_descriptor, - new java.lang.String[] { - "Name", - "Ciphertext", - "CiphertextCrc32C", - "VerifiedPlaintextCrc32C", - "VerifiedAdditionalAuthenticatedDataCrc32C", - "ProtectionLevel", - }); - internal_static_google_cloud_kms_v1_DecryptResponse_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_kms_v1_DecryptResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_DecryptResponse_descriptor, - new java.lang.String[] { - "Plaintext", "PlaintextCrc32C", "UsedPrimary", "ProtectionLevel", - }); - internal_static_google_cloud_kms_v1_AsymmetricSignResponse_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_kms_v1_AsymmetricSignResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_AsymmetricSignResponse_descriptor, - new java.lang.String[] { - "Signature", - "SignatureCrc32C", - "VerifiedDigestCrc32C", - "Name", - "VerifiedDataCrc32C", - "ProtectionLevel", - }); - internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_descriptor, - new java.lang.String[] { - "Plaintext", "PlaintextCrc32C", "VerifiedCiphertextCrc32C", "ProtectionLevel", - }); - internal_static_google_cloud_kms_v1_MacSignResponse_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_kms_v1_MacSignResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_MacSignResponse_descriptor, - new java.lang.String[] { - "Name", "Mac", "MacCrc32C", "VerifiedDataCrc32C", "ProtectionLevel", - }); - internal_static_google_cloud_kms_v1_MacVerifyResponse_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_kms_v1_MacVerifyResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_MacVerifyResponse_descriptor, - new java.lang.String[] { - "Name", - "Success", - "VerifiedDataCrc32C", - "VerifiedMacCrc32C", - "VerifiedSuccessIntegrity", - "ProtectionLevel", - }); - internal_static_google_cloud_kms_v1_GenerateRandomBytesResponse_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_kms_v1_GenerateRandomBytesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_GenerateRandomBytesResponse_descriptor, - new java.lang.String[] { - "Data", "DataCrc32C", - }); - internal_static_google_cloud_kms_v1_Digest_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_cloud_kms_v1_Digest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_Digest_descriptor, - new java.lang.String[] { - "Sha256", "Sha384", "Sha512", "Digest", - }); - internal_static_google_cloud_kms_v1_LocationMetadata_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_cloud_kms_v1_LocationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_LocationMetadata_descriptor, - new java.lang.String[] { - "HsmAvailable", "EkmAvailable", - }); - 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.resourceReference); - 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.kms.v1.KmsResourcesProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsResourcesProto.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsResourcesProto.java deleted file mode 100644 index fe7ba016f218..000000000000 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsResourcesProto.java +++ /dev/null @@ -1,377 +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/kms/v1/resources.proto - -package com.google.cloud.kms.v1; - -public final class KmsResourcesProto { - private KmsResourcesProto() {} - - 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_kms_v1_KeyRing_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_KeyRing_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_CryptoKey_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_CryptoKey_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_CryptoKey_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_CryptoKey_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_KeyOperationAttestation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_KeyOperationAttestation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_KeyOperationAttestation_CertificateChains_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_KeyOperationAttestation_CertificateChains_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_CryptoKeyVersion_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_CryptoKeyVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_PublicKey_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_PublicKey_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_ImportJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_ImportJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_ImportJob_WrappingPublicKey_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_ImportJob_WrappingPublicKey_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_kms_v1_ExternalProtectionLevelOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_kms_v1_ExternalProtectionLevelOptions_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/kms/v1/resources.proto\022\023g" - + "oogle.cloud.kms.v1\032\037google/api/field_beh" - + "avior.proto\032\031google/api/resource.proto\032\036" - + "google/protobuf/duration.proto\032\037google/p" - + "rotobuf/timestamp.proto\032\036google/protobuf" - + "/wrappers.proto\"\265\001\n\007KeyRing\022\021\n\004name\030\001 \001(" - + "\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003:a\352A^\n\037cloudkms.goog" - + "leapis.com/KeyRing\022;projects/{project}/l" - + "ocations/{location}/keyRings/{key_ring}\"" - + "\225\007\n\tCryptoKey\022\021\n\004name\030\001 \001(\tB\003\340A\003\022;\n\007prim" - + "ary\030\002 \001(\0132%.google.cloud.kms.v1.CryptoKe" - + "yVersionB\003\340A\003\022E\n\007purpose\030\003 \001(\0162/.google." - + "cloud.kms.v1.CryptoKey.CryptoKeyPurposeB" - + "\003\340A\005\0224\n\013create_time\030\005 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\0226\n\022next_rotation_time" - + "\030\007 \001(\0132\032.google.protobuf.Timestamp\0224\n\017ro" - + "tation_period\030\010 \001(\0132\031.google.protobuf.Du" - + "rationH\000\022G\n\020version_template\030\013 \001(\0132-.goo" - + "gle.cloud.kms.v1.CryptoKeyVersionTemplat" - + "e\022:\n\006labels\030\n \003(\0132*.google.cloud.kms.v1." - + "CryptoKey.LabelsEntry\022\030\n\013import_only\030\r \001" - + "(\010B\003\340A\005\022B\n\032destroy_scheduled_duration\030\016 " - + "\001(\0132\031.google.protobuf.DurationB\003\340A\005\022%\n\022c" - + "rypto_key_backend\030\017 \001(\tB\t\340A\005\372A\003\n\001*\032-\n\013La" - + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\"\201\001\n\020CryptoKeyPurpose\022\"\n\036CRYPTO_KEY_PUR" - + "POSE_UNSPECIFIED\020\000\022\023\n\017ENCRYPT_DECRYPT\020\001\022" - + "\023\n\017ASYMMETRIC_SIGN\020\005\022\026\n\022ASYMMETRIC_DECRY" - + "PT\020\006\022\007\n\003MAC\020\t:{\352Ax\n!cloudkms.googleapis." - + "com/CryptoKey\022Sprojects/{project}/locati" - + "ons/{location}/keyRings/{key_ring}/crypt" - + "oKeys/{crypto_key}B\023\n\021rotation_schedule\"" - + "\263\001\n\030CryptoKeyVersionTemplate\022>\n\020protecti" - + "on_level\030\001 \001(\0162$.google.cloud.kms.v1.Pro" - + "tectionLevel\022W\n\talgorithm\030\003 \001(\0162?.google" - + ".cloud.kms.v1.CryptoKeyVersion.CryptoKey" - + "VersionAlgorithmB\003\340A\002\"\261\003\n\027KeyOperationAt" - + "testation\022S\n\006format\030\004 \001(\0162>.google.cloud" - + ".kms.v1.KeyOperationAttestation.Attestat" - + "ionFormatB\003\340A\003\022\024\n\007content\030\005 \001(\014B\003\340A\003\022X\n\013" - + "cert_chains\030\006 \001(\0132>.google.cloud.kms.v1." - + "KeyOperationAttestation.CertificateChain" - + "sB\003\340A\003\032d\n\021CertificateChains\022\024\n\014cavium_ce" - + "rts\030\001 \003(\t\022\031\n\021google_card_certs\030\002 \003(\t\022\036\n\026" - + "google_partition_certs\030\003 \003(\t\"k\n\021Attestat" - + "ionFormat\022\"\n\036ATTESTATION_FORMAT_UNSPECIF" - + "IED\020\000\022\030\n\024CAVIUM_V1_COMPRESSED\020\003\022\030\n\024CAVIU" - + "M_V2_COMPRESSED\020\004\"\220\020\n\020CryptoKeyVersion\022\021" - + "\n\004name\030\001 \001(\tB\003\340A\003\022J\n\005state\030\003 \001(\0162;.googl" - + "e.cloud.kms.v1.CryptoKeyVersion.CryptoKe" - + "yVersionState\022C\n\020protection_level\030\007 \001(\0162" - + "$.google.cloud.kms.v1.ProtectionLevelB\003\340" - + "A\003\022W\n\talgorithm\030\n \001(\0162?.google.cloud.kms" - + ".v1.CryptoKeyVersion.CryptoKeyVersionAlg" - + "orithmB\003\340A\003\022F\n\013attestation\030\010 \001(\0132,.googl" - + "e.cloud.kms.v1.KeyOperationAttestationB\003" - + "\340A\003\0224\n\013create_time\030\004 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003\0226\n\rgenerate_time\030\013 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\0225\n\014des" - + "troy_time\030\005 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\022;\n\022destroy_event_time\030\006 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\022\027\n\nimport_" - + "job\030\016 \001(\tB\003\340A\003\0224\n\013import_time\030\017 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\022\"\n\025import_f" - + "ailure_reason\030\020 \001(\tB\003\340A\003\022^\n!external_pro" - + "tection_level_options\030\021 \001(\01323.google.clo" - + "ud.kms.v1.ExternalProtectionLevelOptions" - + "\022\036\n\021reimport_eligible\030\022 \001(\010B\003\340A\003\"\245\006\n\031Cry" - + "ptoKeyVersionAlgorithm\022,\n(CRYPTO_KEY_VER" - + "SION_ALGORITHM_UNSPECIFIED\020\000\022\037\n\033GOOGLE_S" - + "YMMETRIC_ENCRYPTION\020\001\022\034\n\030RSA_SIGN_PSS_20" - + "48_SHA256\020\002\022\034\n\030RSA_SIGN_PSS_3072_SHA256\020" - + "\003\022\034\n\030RSA_SIGN_PSS_4096_SHA256\020\004\022\034\n\030RSA_S" - + "IGN_PSS_4096_SHA512\020\017\022\036\n\032RSA_SIGN_PKCS1_" - + "2048_SHA256\020\005\022\036\n\032RSA_SIGN_PKCS1_3072_SHA" - + "256\020\006\022\036\n\032RSA_SIGN_PKCS1_4096_SHA256\020\007\022\036\n" - + "\032RSA_SIGN_PKCS1_4096_SHA512\020\020\022\033\n\027RSA_SIG" - + "N_RAW_PKCS1_2048\020\034\022\033\n\027RSA_SIGN_RAW_PKCS1" - + "_3072\020\035\022\033\n\027RSA_SIGN_RAW_PKCS1_4096\020\036\022 \n\034" - + "RSA_DECRYPT_OAEP_2048_SHA256\020\010\022 \n\034RSA_DE" - + "CRYPT_OAEP_3072_SHA256\020\t\022 \n\034RSA_DECRYPT_" - + "OAEP_4096_SHA256\020\n\022 \n\034RSA_DECRYPT_OAEP_4" - + "096_SHA512\020\021\022\036\n\032RSA_DECRYPT_OAEP_2048_SH" - + "A1\020%\022\036\n\032RSA_DECRYPT_OAEP_3072_SHA1\020&\022\036\n\032" - + "RSA_DECRYPT_OAEP_4096_SHA1\020\'\022\027\n\023EC_SIGN_" - + "P256_SHA256\020\014\022\027\n\023EC_SIGN_P384_SHA384\020\r\022\034" - + "\n\030EC_SIGN_SECP256K1_SHA256\020\037\022\017\n\013HMAC_SHA" - + "256\020 \022!\n\035EXTERNAL_SYMMETRIC_ENCRYPTION\020\022" - + "\"\301\001\n\025CryptoKeyVersionState\022(\n$CRYPTO_KEY" - + "_VERSION_STATE_UNSPECIFIED\020\000\022\026\n\022PENDING_" - + "GENERATION\020\005\022\013\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002\022" - + "\r\n\tDESTROYED\020\003\022\025\n\021DESTROY_SCHEDULED\020\004\022\022\n" - + "\016PENDING_IMPORT\020\006\022\021\n\rIMPORT_FAILED\020\007\"I\n\024" - + "CryptoKeyVersionView\022\'\n#CRYPTO_KEY_VERSI" - + "ON_VIEW_UNSPECIFIED\020\000\022\010\n\004FULL\020\001:\252\001\352A\246\001\n(" - + "cloudkms.googleapis.com/CryptoKeyVersion" - + "\022zprojects/{project}/locations/{location" - + "}/keyRings/{key_ring}/cryptoKeys/{crypto" - + "_key}/cryptoKeyVersions/{crypto_key_vers" - + "ion}\"\234\003\n\tPublicKey\022\013\n\003pem\030\001 \001(\t\022R\n\talgor" - + "ithm\030\002 \001(\0162?.google.cloud.kms.v1.CryptoK" - + "eyVersion.CryptoKeyVersionAlgorithm\022/\n\np" - + "em_crc32c\030\003 \001(\0132\033.google.protobuf.Int64V" - + "alue\022\014\n\004name\030\004 \001(\t\022>\n\020protection_level\030\005" - + " \001(\0162$.google.cloud.kms.v1.ProtectionLev" - + "el:\256\001\352A\252\001\n!cloudkms.googleapis.com/Publi" - + "cKey\022\204\001projects/{project}/locations/{loc" - + "ation}/keyRings/{key_ring}/cryptoKeys/{c" - + "rypto_key}/cryptoKeyVersions/{crypto_key" - + "_version}/publicKey\"\333\007\n\tImportJob\022\021\n\004nam" - + "e\030\001 \001(\tB\003\340A\003\022J\n\rimport_method\030\002 \001(\0162+.go" - + "ogle.cloud.kms.v1.ImportJob.ImportMethod" - + "B\006\340A\002\340A\005\022F\n\020protection_level\030\t \001(\0162$.goo" - + "gle.cloud.kms.v1.ProtectionLevelB\006\340A\002\340A\005" - + "\0224\n\013create_time\030\003 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\0226\n\rgenerate_time\030\004 \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\003\0224\n\013expire" - + "_time\030\005 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\022:\n\021expire_event_time\030\n \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\022A\n\005state\030\006 \001(\0162" - + "-.google.cloud.kms.v1.ImportJob.ImportJo" - + "bStateB\003\340A\003\022I\n\npublic_key\030\007 \001(\01320.google" - + ".cloud.kms.v1.ImportJob.WrappingPublicKe" - + "yB\003\340A\003\022F\n\013attestation\030\010 \001(\0132,.google.clo" - + "ud.kms.v1.KeyOperationAttestationB\003\340A\003\032 " - + "\n\021WrappingPublicKey\022\013\n\003pem\030\001 \001(\t\"m\n\014Impo" - + "rtMethod\022\035\n\031IMPORT_METHOD_UNSPECIFIED\020\000\022" - + "\036\n\032RSA_OAEP_3072_SHA1_AES_256\020\001\022\036\n\032RSA_O" - + "AEP_4096_SHA1_AES_256\020\002\"c\n\016ImportJobStat" - + "e\022 \n\034IMPORT_JOB_STATE_UNSPECIFIED\020\000\022\026\n\022P" - + "ENDING_GENERATION\020\001\022\n\n\006ACTIVE\020\002\022\013\n\007EXPIR" - + "ED\020\003:{\352Ax\n!cloudkms.googleapis.com/Impor" - + "tJob\022Sprojects/{project}/locations/{loca" - + "tion}/keyRings/{key_ring}/importJobs/{im" - + "port_job}\"[\n\036ExternalProtectionLevelOpti" - + "ons\022\030\n\020external_key_uri\030\001 \001(\t\022\037\n\027ekm_con" - + "nection_key_path\030\002 \001(\t*j\n\017ProtectionLeve" - + "l\022 \n\034PROTECTION_LEVEL_UNSPECIFIED\020\000\022\014\n\010S" - + "OFTWARE\020\001\022\007\n\003HSM\020\002\022\014\n\010EXTERNAL\020\003\022\020\n\014EXTE" - + "RNAL_VPC\020\004B\225\001\n\027com.google.cloud.kms.v1B\021" - + "KmsResourcesProtoP\001Z6google.golang.org/g" - + "enproto/googleapis/cloud/kms/v1;kms\370\001\001\252\002" - + "\023Google.Cloud.Kms.V1\312\002\023Google\\Cloud\\Kms\\" - + "V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - }); - internal_static_google_cloud_kms_v1_KeyRing_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_kms_v1_KeyRing_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_KeyRing_descriptor, - new java.lang.String[] { - "Name", "CreateTime", - }); - internal_static_google_cloud_kms_v1_CryptoKey_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_kms_v1_CryptoKey_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_CryptoKey_descriptor, - new java.lang.String[] { - "Name", - "Primary", - "Purpose", - "CreateTime", - "NextRotationTime", - "RotationPeriod", - "VersionTemplate", - "Labels", - "ImportOnly", - "DestroyScheduledDuration", - "CryptoKeyBackend", - "RotationSchedule", - }); - internal_static_google_cloud_kms_v1_CryptoKey_LabelsEntry_descriptor = - internal_static_google_cloud_kms_v1_CryptoKey_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_kms_v1_CryptoKey_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_CryptoKey_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_descriptor, - new java.lang.String[] { - "ProtectionLevel", "Algorithm", - }); - internal_static_google_cloud_kms_v1_KeyOperationAttestation_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_kms_v1_KeyOperationAttestation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_KeyOperationAttestation_descriptor, - new java.lang.String[] { - "Format", "Content", "CertChains", - }); - internal_static_google_cloud_kms_v1_KeyOperationAttestation_CertificateChains_descriptor = - internal_static_google_cloud_kms_v1_KeyOperationAttestation_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_kms_v1_KeyOperationAttestation_CertificateChains_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_KeyOperationAttestation_CertificateChains_descriptor, - new java.lang.String[] { - "CaviumCerts", "GoogleCardCerts", "GooglePartitionCerts", - }); - internal_static_google_cloud_kms_v1_CryptoKeyVersion_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_kms_v1_CryptoKeyVersion_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_CryptoKeyVersion_descriptor, - new java.lang.String[] { - "Name", - "State", - "ProtectionLevel", - "Algorithm", - "Attestation", - "CreateTime", - "GenerateTime", - "DestroyTime", - "DestroyEventTime", - "ImportJob", - "ImportTime", - "ImportFailureReason", - "ExternalProtectionLevelOptions", - "ReimportEligible", - }); - internal_static_google_cloud_kms_v1_PublicKey_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_kms_v1_PublicKey_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_PublicKey_descriptor, - new java.lang.String[] { - "Pem", "Algorithm", "PemCrc32C", "Name", "ProtectionLevel", - }); - internal_static_google_cloud_kms_v1_ImportJob_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_kms_v1_ImportJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_ImportJob_descriptor, - new java.lang.String[] { - "Name", - "ImportMethod", - "ProtectionLevel", - "CreateTime", - "GenerateTime", - "ExpireTime", - "ExpireEventTime", - "State", - "PublicKey", - "Attestation", - }); - internal_static_google_cloud_kms_v1_ImportJob_WrappingPublicKey_descriptor = - internal_static_google_cloud_kms_v1_ImportJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_kms_v1_ImportJob_WrappingPublicKey_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_ImportJob_WrappingPublicKey_descriptor, - new java.lang.String[] { - "Pem", - }); - internal_static_google_cloud_kms_v1_ExternalProtectionLevelOptions_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_kms_v1_ExternalProtectionLevelOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_kms_v1_ExternalProtectionLevelOptions_descriptor, - new java.lang.String[] { - "ExternalKeyUri", "EkmConnectionKeyPath", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RestoreCryptoKeyVersionRequestOrBuilder.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RestoreCryptoKeyVersionRequestOrBuilder.java deleted file mode 100644 index 5be6da27afa6..000000000000 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RestoreCryptoKeyVersionRequestOrBuilder.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/kms/v1/service.proto - -package com.google.cloud.kms.v1; - -public interface RestoreCryptoKeyVersionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.RestoreCryptoKeyVersionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the
-   * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to restore.
-   * 
- * - * - * 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
-   * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to restore.
-   * 
- * - * - * 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-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/EkmServiceClient.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/EkmServiceClient.java similarity index 100% rename from java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/EkmServiceClient.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/EkmServiceClient.java diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/EkmServiceSettings.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/EkmServiceSettings.java similarity index 99% rename from java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/EkmServiceSettings.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/EkmServiceSettings.java index 80a6823161fe..299b83c784eb 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/EkmServiceSettings.java +++ b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/EkmServiceSettings.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; 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.kms.v1.stub.EkmServiceStubSettings; diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java similarity index 95% rename from java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java index b7a782e2f1d8..8c0298d11de9 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java +++ b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java @@ -3062,45 +3062,6 @@ public final EncryptResponse encrypt(ResourceName name, ByteString plaintext) { return encrypt(request); } - // ADDED BY SYNTH - /** - * Encrypts data, so that it can only be recovered by a call to - * [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt]. The - * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be - * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. - * - *

Sample code: - * - *


-   * try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
-   *   CryptoKeyPathName name = CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]");
-   *   ByteString plaintext = ByteString.copyFromUtf8("");
-   *   EncryptResponse response = keyManagementServiceClient.encrypt(name, plaintext);
-   * }
-   * 
- * - * @param name Required. The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey] or - * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for encryption. - *

If a [CryptoKey][google.cloud.kms.v1.CryptoKey] is specified, the server will use its - * [primary version][google.cloud.kms.v1.CryptoKey.primary]. - * @param plaintext Required. The data to encrypt. Must be no larger than 64KiB. - *

The maximum size depends on the key version's - * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]. For - * [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE] keys, the plaintext must be no - * larger than 64KiB. For [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] keys, the combined - * length of the plaintext and additional_authenticated_data fields must be no larger than - * 8KiB. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final EncryptResponse encrypt(CryptoKeyPathName name, ByteString plaintext) { - EncryptRequest request = - EncryptRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setPlaintext(plaintext) - .build(); - return encrypt(request); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Encrypts data, so that it can only be recovered by a call to @@ -4330,67 +4291,6 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { return setIamPolicyCallable().call(request); } - // ADDED BY SYNTH - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - *

Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED - * - *

Sample code: - * - *


-   * try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
-   *   KeyName resource = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]");
-   *   Policy policy = Policy.newBuilder().build();
-   *   Policy response = keyManagementServiceClient.setIamPolicy(resource, policy);
-   * }
-   * 
- * - * @param resource REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the - * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud - * Platform services (such as Projects) might reject them. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy setIamPolicy(KeyName resource, Policy policy) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource(resource == null ? null : resource.toString()) - .setPolicy(policy) - .build(); - return setIamPolicy(request); - } - - // ADDED BY SYNTH - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - *

Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED - * - *

Sample code: - * - *


-   * try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
-   *   KeyName resource = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]");
-   *   Policy policy = Policy.newBuilder().build();
-   *   Policy response = keyManagementServiceClient.setIamPolicy(resource.toString(), policy);
-   * }
-   * 
- * - * @param resource REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the - * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud - * Platform services (such as Projects) might reject them. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy setIamPolicy(String resource, Policy policy) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); - return setIamPolicy(request); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Sets the access control policy on the specified resource. Replacesany existing policy. @@ -4459,55 +4359,6 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { return getIamPolicyCallable().call(request); } - // ADDED BY SYNTH - /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists - * and does not have a policy set. - * - *

Sample code: - * - *


-   * try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
-   *   KeyName resource = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]");
-   *   Policy response = keyManagementServiceClient.getIamPolicy(resource);
-   * }
-   * 
- * - * @param resource REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy getIamPolicy(KeyName resource) { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(resource == null ? null : resource.toString()) - .build(); - return getIamPolicy(request); - } - - // ADDED BY SYNTH - /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists - * and does not have a policy set. - * - *

Sample code: - * - *


-   * try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
-   *   KeyName resource = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]");
-   *   Policy response = keyManagementServiceClient.getIamPolicy(resource.toString());
-   * }
-   * 
- * - * @param resource REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy getIamPolicy(String resource) { - GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); - return getIamPolicy(request); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the access control policy for a resource. Returns an empty policyif the resource exists @@ -4578,78 +4429,6 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq return testIamPermissionsCallable().call(request); } - // ADDED BY SYNTH - /** - * Returns permissions that a caller has on the specified resource. If the resource does not - * exist, this will return an empty set of permissions, not a NOT_FOUND error. - * - *

Note: This operation is designed to be used for building permission-aware UIs and - * command-line tools, not for authorization checking. This operation may "fail open" without - * warning. - * - *

Sample code: - * - *


-   * try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
-   *   KeyName resource = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]");
-   *   List<String> permissions = new ArrayList<>();
-   *   TestIamPermissionsResponse response = keyManagementServiceClient.testIamPermissions(resource, permissions);
-   * }
-   * 
- * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See the - * operation documentation for the appropriate value for this field. - * @param permissions The set of permissions to check for the `resource`. Permissions with - * wildcards (such as '*' or 'storage.*') are not allowed. For more information see - * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final TestIamPermissionsResponse testIamPermissions( - KeyName resource, List permissions) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(resource == null ? null : resource.toString()) - .addAllPermissions(permissions) - .build(); - return testIamPermissions(request); - } - - // ADDED BY SYNTH - /** - * Returns permissions that a caller has on the specified resource. If the resource does not - * exist, this will return an empty set of permissions, not a NOT_FOUND error. - * - *

Note: This operation is designed to be used for building permission-aware UIs and - * command-line tools, not for authorization checking. This operation may "fail open" without - * warning. - * - *

Sample code: - * - *


-   * try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
-   *   KeyName resource = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]");
-   *   List<String> permissions = new ArrayList<>();
-   *   TestIamPermissionsResponse response = keyManagementServiceClient.testIamPermissions(resource.toString(), permissions);
-   * }
-   * 
- * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See the - * operation documentation for the appropriate value for this field. - * @param permissions The set of permissions to check for the `resource`. Permissions with - * wildcards (such as '*' or 'storage.*') are not allowed. For more information see - * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final TestIamPermissionsResponse testIamPermissions( - String resource, List permissions) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(resource) - .addAllPermissions(permissions) - .build(); - return testIamPermissions(request); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns permissions that a caller has on the specified resource. If theresource does not exist, diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceSettings.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceSettings.java similarity index 99% rename from java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceSettings.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceSettings.java index 4edac0c52e7d..954d9a3d9561 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceSettings.java +++ b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceSettings.java @@ -32,6 +32,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; 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.kms.v1.stub.KeyManagementServiceStubSettings; diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/gapic_metadata.json b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/gapic_metadata.json similarity index 100% rename from java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/gapic_metadata.json rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/gapic_metadata.json diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/package-info.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/package-info.java similarity index 100% rename from java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/package-info.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/package-info.java diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/EkmServiceStub.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/EkmServiceStub.java similarity index 100% rename from java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/EkmServiceStub.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/EkmServiceStub.java diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/EkmServiceStubSettings.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/EkmServiceStubSettings.java similarity index 100% rename from java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/EkmServiceStubSettings.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/EkmServiceStubSettings.java diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcEkmServiceCallableFactory.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcEkmServiceCallableFactory.java similarity index 100% rename from java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcEkmServiceCallableFactory.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcEkmServiceCallableFactory.java diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcEkmServiceStub.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcEkmServiceStub.java similarity index 99% rename from java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcEkmServiceStub.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcEkmServiceStub.java index b30b9b1002f1..2bbebb50c6c3 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcEkmServiceStub.java +++ b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcEkmServiceStub.java @@ -45,6 +45,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-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceCallableFactory.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceCallableFactory.java similarity index 100% rename from java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceCallableFactory.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceCallableFactory.java diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java similarity index 99% rename from java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java index 66c00806e453..0c858b41373f 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java +++ b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java @@ -84,6 +84,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HttpJsonEkmServiceCallableFactory.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HttpJsonEkmServiceCallableFactory.java similarity index 100% rename from java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HttpJsonEkmServiceCallableFactory.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HttpJsonEkmServiceCallableFactory.java diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HttpJsonEkmServiceStub.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HttpJsonEkmServiceStub.java similarity index 100% rename from java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HttpJsonEkmServiceStub.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HttpJsonEkmServiceStub.java diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HttpJsonKeyManagementServiceCallableFactory.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HttpJsonKeyManagementServiceCallableFactory.java similarity index 100% rename from java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HttpJsonKeyManagementServiceCallableFactory.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HttpJsonKeyManagementServiceCallableFactory.java diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HttpJsonKeyManagementServiceStub.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HttpJsonKeyManagementServiceStub.java similarity index 100% rename from java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HttpJsonKeyManagementServiceStub.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HttpJsonKeyManagementServiceStub.java diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java similarity index 100% rename from java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java similarity index 100% rename from java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java diff --git a/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/EkmServiceClientHttpJsonTest.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/EkmServiceClientHttpJsonTest.java similarity index 100% rename from java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/EkmServiceClientHttpJsonTest.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/EkmServiceClientHttpJsonTest.java diff --git a/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/EkmServiceClientTest.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/EkmServiceClientTest.java similarity index 100% rename from java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/EkmServiceClientTest.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/EkmServiceClientTest.java diff --git a/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientHttpJsonTest.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientHttpJsonTest.java similarity index 100% rename from java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientHttpJsonTest.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientHttpJsonTest.java diff --git a/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientTest.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientTest.java similarity index 100% rename from java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientTest.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientTest.java diff --git a/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockEkmService.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockEkmService.java similarity index 100% rename from java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockEkmService.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockEkmService.java diff --git a/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockEkmServiceImpl.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockEkmServiceImpl.java similarity index 100% rename from java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockEkmServiceImpl.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockEkmServiceImpl.java diff --git a/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockIAMPolicy.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockIAMPolicy.java similarity index 100% rename from java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockIAMPolicy.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockIAMPolicy.java diff --git a/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockIAMPolicyImpl.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockIAMPolicyImpl.java similarity index 100% rename from java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockIAMPolicyImpl.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockIAMPolicyImpl.java diff --git a/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockKeyManagementService.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockKeyManagementService.java similarity index 100% rename from java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockKeyManagementService.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockKeyManagementService.java diff --git a/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockKeyManagementServiceImpl.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockKeyManagementServiceImpl.java similarity index 100% rename from java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockKeyManagementServiceImpl.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockKeyManagementServiceImpl.java diff --git a/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockLocations.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockLocations.java similarity index 100% rename from java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockLocations.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockLocations.java diff --git a/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockLocationsImpl.java b/owl-bot-staging/java-kms/v1/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockLocationsImpl.java similarity index 100% rename from java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockLocationsImpl.java rename to owl-bot-staging/java-kms/v1/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockLocationsImpl.java diff --git a/owl-bot-staging/java-kms/v1/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmServiceGrpc.java b/owl-bot-staging/java-kms/v1/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmServiceGrpc.java new file mode 100644 index 000000000000..b776c6c51b66 --- /dev/null +++ b/owl-bot-staging/java-kms/v1/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmServiceGrpc.java @@ -0,0 +1,584 @@ +package com.google.cloud.kms.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Google Cloud Key Management EKM Service
+ * Manages external cryptographic keys and operations using those keys.
+ * Implements a REST model with the following objects:
+ * * [EkmConnection][google.cloud.kms.v1.EkmConnection]
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/kms/v1/ekm_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class EkmServiceGrpc { + + private EkmServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.kms.v1.EkmService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListEkmConnectionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListEkmConnections", + requestType = com.google.cloud.kms.v1.ListEkmConnectionsRequest.class, + responseType = com.google.cloud.kms.v1.ListEkmConnectionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListEkmConnectionsMethod() { + io.grpc.MethodDescriptor getListEkmConnectionsMethod; + if ((getListEkmConnectionsMethod = EkmServiceGrpc.getListEkmConnectionsMethod) == null) { + synchronized (EkmServiceGrpc.class) { + if ((getListEkmConnectionsMethod = EkmServiceGrpc.getListEkmConnectionsMethod) == null) { + EkmServiceGrpc.getListEkmConnectionsMethod = getListEkmConnectionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEkmConnections")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.v1.ListEkmConnectionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.v1.ListEkmConnectionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new EkmServiceMethodDescriptorSupplier("ListEkmConnections")) + .build(); + } + } + } + return getListEkmConnectionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetEkmConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEkmConnection", + requestType = com.google.cloud.kms.v1.GetEkmConnectionRequest.class, + responseType = com.google.cloud.kms.v1.EkmConnection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetEkmConnectionMethod() { + io.grpc.MethodDescriptor getGetEkmConnectionMethod; + if ((getGetEkmConnectionMethod = EkmServiceGrpc.getGetEkmConnectionMethod) == null) { + synchronized (EkmServiceGrpc.class) { + if ((getGetEkmConnectionMethod = EkmServiceGrpc.getGetEkmConnectionMethod) == null) { + EkmServiceGrpc.getGetEkmConnectionMethod = getGetEkmConnectionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEkmConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.v1.GetEkmConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.v1.EkmConnection.getDefaultInstance())) + .setSchemaDescriptor(new EkmServiceMethodDescriptorSupplier("GetEkmConnection")) + .build(); + } + } + } + return getGetEkmConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateEkmConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateEkmConnection", + requestType = com.google.cloud.kms.v1.CreateEkmConnectionRequest.class, + responseType = com.google.cloud.kms.v1.EkmConnection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateEkmConnectionMethod() { + io.grpc.MethodDescriptor getCreateEkmConnectionMethod; + if ((getCreateEkmConnectionMethod = EkmServiceGrpc.getCreateEkmConnectionMethod) == null) { + synchronized (EkmServiceGrpc.class) { + if ((getCreateEkmConnectionMethod = EkmServiceGrpc.getCreateEkmConnectionMethod) == null) { + EkmServiceGrpc.getCreateEkmConnectionMethod = getCreateEkmConnectionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEkmConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.v1.CreateEkmConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.v1.EkmConnection.getDefaultInstance())) + .setSchemaDescriptor(new EkmServiceMethodDescriptorSupplier("CreateEkmConnection")) + .build(); + } + } + } + return getCreateEkmConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateEkmConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateEkmConnection", + requestType = com.google.cloud.kms.v1.UpdateEkmConnectionRequest.class, + responseType = com.google.cloud.kms.v1.EkmConnection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateEkmConnectionMethod() { + io.grpc.MethodDescriptor getUpdateEkmConnectionMethod; + if ((getUpdateEkmConnectionMethod = EkmServiceGrpc.getUpdateEkmConnectionMethod) == null) { + synchronized (EkmServiceGrpc.class) { + if ((getUpdateEkmConnectionMethod = EkmServiceGrpc.getUpdateEkmConnectionMethod) == null) { + EkmServiceGrpc.getUpdateEkmConnectionMethod = getUpdateEkmConnectionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateEkmConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.v1.UpdateEkmConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.v1.EkmConnection.getDefaultInstance())) + .setSchemaDescriptor(new EkmServiceMethodDescriptorSupplier("UpdateEkmConnection")) + .build(); + } + } + } + return getUpdateEkmConnectionMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static EkmServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EkmServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EkmServiceStub(channel, callOptions); + } + }; + return EkmServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static EkmServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EkmServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EkmServiceBlockingStub(channel, callOptions); + } + }; + return EkmServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static EkmServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EkmServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EkmServiceFutureStub(channel, callOptions); + } + }; + return EkmServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Google Cloud Key Management EKM Service
+   * Manages external cryptographic keys and operations using those keys.
+   * Implements a REST model with the following objects:
+   * * [EkmConnection][google.cloud.kms.v1.EkmConnection]
+   * 
+ */ + public static abstract class EkmServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists [EkmConnections][google.cloud.kms.v1.EkmConnection].
+     * 
+ */ + public void listEkmConnections(com.google.cloud.kms.v1.ListEkmConnectionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListEkmConnectionsMethod(), responseObserver); + } + + /** + *
+     * Returns metadata for a given
+     * [EkmConnection][google.cloud.kms.v1.EkmConnection].
+     * 
+ */ + public void getEkmConnection(com.google.cloud.kms.v1.GetEkmConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEkmConnectionMethod(), responseObserver); + } + + /** + *
+     * Creates a new [EkmConnection][google.cloud.kms.v1.EkmConnection] in a given
+     * Project and Location.
+     * 
+ */ + public void createEkmConnection(com.google.cloud.kms.v1.CreateEkmConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateEkmConnectionMethod(), responseObserver); + } + + /** + *
+     * Updates an [EkmConnection][google.cloud.kms.v1.EkmConnection]'s metadata.
+     * 
+ */ + public void updateEkmConnection(com.google.cloud.kms.v1.UpdateEkmConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateEkmConnectionMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListEkmConnectionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.ListEkmConnectionsRequest, + com.google.cloud.kms.v1.ListEkmConnectionsResponse>( + this, METHODID_LIST_EKM_CONNECTIONS))) + .addMethod( + getGetEkmConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.GetEkmConnectionRequest, + com.google.cloud.kms.v1.EkmConnection>( + this, METHODID_GET_EKM_CONNECTION))) + .addMethod( + getCreateEkmConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.CreateEkmConnectionRequest, + com.google.cloud.kms.v1.EkmConnection>( + this, METHODID_CREATE_EKM_CONNECTION))) + .addMethod( + getUpdateEkmConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.UpdateEkmConnectionRequest, + com.google.cloud.kms.v1.EkmConnection>( + this, METHODID_UPDATE_EKM_CONNECTION))) + .build(); + } + } + + /** + *
+   * Google Cloud Key Management EKM Service
+   * Manages external cryptographic keys and operations using those keys.
+   * Implements a REST model with the following objects:
+   * * [EkmConnection][google.cloud.kms.v1.EkmConnection]
+   * 
+ */ + public static final class EkmServiceStub extends io.grpc.stub.AbstractAsyncStub { + private EkmServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EkmServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EkmServiceStub(channel, callOptions); + } + + /** + *
+     * Lists [EkmConnections][google.cloud.kms.v1.EkmConnection].
+     * 
+ */ + public void listEkmConnections(com.google.cloud.kms.v1.ListEkmConnectionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListEkmConnectionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns metadata for a given
+     * [EkmConnection][google.cloud.kms.v1.EkmConnection].
+     * 
+ */ + public void getEkmConnection(com.google.cloud.kms.v1.GetEkmConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEkmConnectionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new [EkmConnection][google.cloud.kms.v1.EkmConnection] in a given
+     * Project and Location.
+     * 
+ */ + public void createEkmConnection(com.google.cloud.kms.v1.CreateEkmConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateEkmConnectionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an [EkmConnection][google.cloud.kms.v1.EkmConnection]'s metadata.
+     * 
+ */ + public void updateEkmConnection(com.google.cloud.kms.v1.UpdateEkmConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateEkmConnectionMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Google Cloud Key Management EKM Service
+   * Manages external cryptographic keys and operations using those keys.
+   * Implements a REST model with the following objects:
+   * * [EkmConnection][google.cloud.kms.v1.EkmConnection]
+   * 
+ */ + public static final class EkmServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private EkmServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EkmServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EkmServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists [EkmConnections][google.cloud.kms.v1.EkmConnection].
+     * 
+ */ + public com.google.cloud.kms.v1.ListEkmConnectionsResponse listEkmConnections(com.google.cloud.kms.v1.ListEkmConnectionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEkmConnectionsMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns metadata for a given
+     * [EkmConnection][google.cloud.kms.v1.EkmConnection].
+     * 
+ */ + public com.google.cloud.kms.v1.EkmConnection getEkmConnection(com.google.cloud.kms.v1.GetEkmConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEkmConnectionMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new [EkmConnection][google.cloud.kms.v1.EkmConnection] in a given
+     * Project and Location.
+     * 
+ */ + public com.google.cloud.kms.v1.EkmConnection createEkmConnection(com.google.cloud.kms.v1.CreateEkmConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateEkmConnectionMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an [EkmConnection][google.cloud.kms.v1.EkmConnection]'s metadata.
+     * 
+ */ + public com.google.cloud.kms.v1.EkmConnection updateEkmConnection(com.google.cloud.kms.v1.UpdateEkmConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateEkmConnectionMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Google Cloud Key Management EKM Service
+   * Manages external cryptographic keys and operations using those keys.
+   * Implements a REST model with the following objects:
+   * * [EkmConnection][google.cloud.kms.v1.EkmConnection]
+   * 
+ */ + public static final class EkmServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private EkmServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EkmServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EkmServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Lists [EkmConnections][google.cloud.kms.v1.EkmConnection].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listEkmConnections( + com.google.cloud.kms.v1.ListEkmConnectionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListEkmConnectionsMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns metadata for a given
+     * [EkmConnection][google.cloud.kms.v1.EkmConnection].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getEkmConnection( + com.google.cloud.kms.v1.GetEkmConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEkmConnectionMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new [EkmConnection][google.cloud.kms.v1.EkmConnection] in a given
+     * Project and Location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createEkmConnection( + com.google.cloud.kms.v1.CreateEkmConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateEkmConnectionMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an [EkmConnection][google.cloud.kms.v1.EkmConnection]'s metadata.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateEkmConnection( + com.google.cloud.kms.v1.UpdateEkmConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateEkmConnectionMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_EKM_CONNECTIONS = 0; + private static final int METHODID_GET_EKM_CONNECTION = 1; + private static final int METHODID_CREATE_EKM_CONNECTION = 2; + private static final int METHODID_UPDATE_EKM_CONNECTION = 3; + + 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 EkmServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(EkmServiceImplBase 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_EKM_CONNECTIONS: + serviceImpl.listEkmConnections((com.google.cloud.kms.v1.ListEkmConnectionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_EKM_CONNECTION: + serviceImpl.getEkmConnection((com.google.cloud.kms.v1.GetEkmConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_EKM_CONNECTION: + serviceImpl.createEkmConnection((com.google.cloud.kms.v1.CreateEkmConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_EKM_CONNECTION: + serviceImpl.updateEkmConnection((com.google.cloud.kms.v1.UpdateEkmConnectionRequest) 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 EkmServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + EkmServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.kms.v1.EkmServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("EkmService"); + } + } + + private static final class EkmServiceFileDescriptorSupplier + extends EkmServiceBaseDescriptorSupplier { + EkmServiceFileDescriptorSupplier() {} + } + + private static final class EkmServiceMethodDescriptorSupplier + extends EkmServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + EkmServiceMethodDescriptorSupplier(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 (EkmServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new EkmServiceFileDescriptorSupplier()) + .addMethod(getListEkmConnectionsMethod()) + .addMethod(getGetEkmConnectionMethod()) + .addMethod(getCreateEkmConnectionMethod()) + .addMethod(getUpdateEkmConnectionMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-kms/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceGrpc.java b/owl-bot-staging/java-kms/v1/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceGrpc.java similarity index 50% rename from java-kms/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceGrpc.java rename to owl-bot-staging/java-kms/v1/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceGrpc.java index 4326ebd12d14..c03c9b52a454 100644 --- a/java-kms/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceGrpc.java +++ b/owl-bot-staging/java-kms/v1/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.kms.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * Google Cloud Key Management Service
  * Manages cryptographic keys and operations using those keys. Implements a REST
@@ -43,1242 +26,857 @@ private KeyManagementServiceGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.kms.v1.KeyManagementService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.ListKeyRingsRequest, com.google.cloud.kms.v1.ListKeyRingsResponse>
-      getListKeyRingsMethod;
+  private static volatile io.grpc.MethodDescriptor getListKeyRingsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListKeyRings",
       requestType = com.google.cloud.kms.v1.ListKeyRingsRequest.class,
       responseType = com.google.cloud.kms.v1.ListKeyRingsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.ListKeyRingsRequest, com.google.cloud.kms.v1.ListKeyRingsResponse>
-      getListKeyRingsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.kms.v1.ListKeyRingsRequest,
-            com.google.cloud.kms.v1.ListKeyRingsResponse>
-        getListKeyRingsMethod;
+  public static io.grpc.MethodDescriptor getListKeyRingsMethod() {
+    io.grpc.MethodDescriptor getListKeyRingsMethod;
     if ((getListKeyRingsMethod = KeyManagementServiceGrpc.getListKeyRingsMethod) == null) {
       synchronized (KeyManagementServiceGrpc.class) {
         if ((getListKeyRingsMethod = KeyManagementServiceGrpc.getListKeyRingsMethod) == null) {
-          KeyManagementServiceGrpc.getListKeyRingsMethod =
-              getListKeyRingsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListKeyRings"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.ListKeyRingsRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.ListKeyRingsResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new KeyManagementServiceMethodDescriptorSupplier("ListKeyRings"))
-                      .build();
+          KeyManagementServiceGrpc.getListKeyRingsMethod = getListKeyRingsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListKeyRings"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.ListKeyRingsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.ListKeyRingsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("ListKeyRings"))
+              .build();
         }
       }
     }
     return getListKeyRingsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.ListCryptoKeysRequest,
-          com.google.cloud.kms.v1.ListCryptoKeysResponse>
-      getListCryptoKeysMethod;
+  private static volatile io.grpc.MethodDescriptor getListCryptoKeysMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListCryptoKeys",
       requestType = com.google.cloud.kms.v1.ListCryptoKeysRequest.class,
       responseType = com.google.cloud.kms.v1.ListCryptoKeysResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.ListCryptoKeysRequest,
-          com.google.cloud.kms.v1.ListCryptoKeysResponse>
-      getListCryptoKeysMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.kms.v1.ListCryptoKeysRequest,
-            com.google.cloud.kms.v1.ListCryptoKeysResponse>
-        getListCryptoKeysMethod;
+  public static io.grpc.MethodDescriptor getListCryptoKeysMethod() {
+    io.grpc.MethodDescriptor getListCryptoKeysMethod;
     if ((getListCryptoKeysMethod = KeyManagementServiceGrpc.getListCryptoKeysMethod) == null) {
       synchronized (KeyManagementServiceGrpc.class) {
         if ((getListCryptoKeysMethod = KeyManagementServiceGrpc.getListCryptoKeysMethod) == null) {
-          KeyManagementServiceGrpc.getListCryptoKeysMethod =
-              getListCryptoKeysMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCryptoKeys"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.ListCryptoKeysRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.ListCryptoKeysResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new KeyManagementServiceMethodDescriptorSupplier("ListCryptoKeys"))
-                      .build();
+          KeyManagementServiceGrpc.getListCryptoKeysMethod = getListCryptoKeysMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCryptoKeys"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.ListCryptoKeysRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.ListCryptoKeysResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("ListCryptoKeys"))
+              .build();
         }
       }
     }
     return getListCryptoKeysMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest,
-          com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse>
-      getListCryptoKeyVersionsMethod;
+  private static volatile io.grpc.MethodDescriptor getListCryptoKeyVersionsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListCryptoKeyVersions",
       requestType = com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest.class,
       responseType = com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest,
-          com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse>
-      getListCryptoKeyVersionsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest,
-            com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse>
-        getListCryptoKeyVersionsMethod;
-    if ((getListCryptoKeyVersionsMethod = KeyManagementServiceGrpc.getListCryptoKeyVersionsMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getListCryptoKeyVersionsMethod() {
+    io.grpc.MethodDescriptor getListCryptoKeyVersionsMethod;
+    if ((getListCryptoKeyVersionsMethod = KeyManagementServiceGrpc.getListCryptoKeyVersionsMethod) == null) {
       synchronized (KeyManagementServiceGrpc.class) {
-        if ((getListCryptoKeyVersionsMethod =
-                KeyManagementServiceGrpc.getListCryptoKeyVersionsMethod)
-            == null) {
-          KeyManagementServiceGrpc.getListCryptoKeyVersionsMethod =
-              getListCryptoKeyVersionsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "ListCryptoKeyVersions"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new KeyManagementServiceMethodDescriptorSupplier("ListCryptoKeyVersions"))
-                      .build();
+        if ((getListCryptoKeyVersionsMethod = KeyManagementServiceGrpc.getListCryptoKeyVersionsMethod) == null) {
+          KeyManagementServiceGrpc.getListCryptoKeyVersionsMethod = getListCryptoKeyVersionsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCryptoKeyVersions"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("ListCryptoKeyVersions"))
+              .build();
         }
       }
     }
     return getListCryptoKeyVersionsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.ListImportJobsRequest,
-          com.google.cloud.kms.v1.ListImportJobsResponse>
-      getListImportJobsMethod;
+  private static volatile io.grpc.MethodDescriptor getListImportJobsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListImportJobs",
       requestType = com.google.cloud.kms.v1.ListImportJobsRequest.class,
       responseType = com.google.cloud.kms.v1.ListImportJobsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.ListImportJobsRequest,
-          com.google.cloud.kms.v1.ListImportJobsResponse>
-      getListImportJobsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.kms.v1.ListImportJobsRequest,
-            com.google.cloud.kms.v1.ListImportJobsResponse>
-        getListImportJobsMethod;
+  public static io.grpc.MethodDescriptor getListImportJobsMethod() {
+    io.grpc.MethodDescriptor getListImportJobsMethod;
     if ((getListImportJobsMethod = KeyManagementServiceGrpc.getListImportJobsMethod) == null) {
       synchronized (KeyManagementServiceGrpc.class) {
         if ((getListImportJobsMethod = KeyManagementServiceGrpc.getListImportJobsMethod) == null) {
-          KeyManagementServiceGrpc.getListImportJobsMethod =
-              getListImportJobsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListImportJobs"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.ListImportJobsRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.ListImportJobsResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new KeyManagementServiceMethodDescriptorSupplier("ListImportJobs"))
-                      .build();
+          KeyManagementServiceGrpc.getListImportJobsMethod = getListImportJobsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListImportJobs"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.ListImportJobsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.ListImportJobsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("ListImportJobs"))
+              .build();
         }
       }
     }
     return getListImportJobsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.GetKeyRingRequest, com.google.cloud.kms.v1.KeyRing>
-      getGetKeyRingMethod;
+  private static volatile io.grpc.MethodDescriptor getGetKeyRingMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetKeyRing",
       requestType = com.google.cloud.kms.v1.GetKeyRingRequest.class,
       responseType = com.google.cloud.kms.v1.KeyRing.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.GetKeyRingRequest, com.google.cloud.kms.v1.KeyRing>
-      getGetKeyRingMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.kms.v1.GetKeyRingRequest, com.google.cloud.kms.v1.KeyRing>
-        getGetKeyRingMethod;
+  public static io.grpc.MethodDescriptor getGetKeyRingMethod() {
+    io.grpc.MethodDescriptor getGetKeyRingMethod;
     if ((getGetKeyRingMethod = KeyManagementServiceGrpc.getGetKeyRingMethod) == null) {
       synchronized (KeyManagementServiceGrpc.class) {
         if ((getGetKeyRingMethod = KeyManagementServiceGrpc.getGetKeyRingMethod) == null) {
-          KeyManagementServiceGrpc.getGetKeyRingMethod =
-              getGetKeyRingMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetKeyRing"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.GetKeyRingRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.KeyRing.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new KeyManagementServiceMethodDescriptorSupplier("GetKeyRing"))
-                      .build();
+          KeyManagementServiceGrpc.getGetKeyRingMethod = getGetKeyRingMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetKeyRing"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.GetKeyRingRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.KeyRing.getDefaultInstance()))
+              .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("GetKeyRing"))
+              .build();
         }
       }
     }
     return getGetKeyRingMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.GetCryptoKeyRequest, com.google.cloud.kms.v1.CryptoKey>
-      getGetCryptoKeyMethod;
+  private static volatile io.grpc.MethodDescriptor getGetCryptoKeyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetCryptoKey",
       requestType = com.google.cloud.kms.v1.GetCryptoKeyRequest.class,
       responseType = com.google.cloud.kms.v1.CryptoKey.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.GetCryptoKeyRequest, com.google.cloud.kms.v1.CryptoKey>
-      getGetCryptoKeyMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.kms.v1.GetCryptoKeyRequest, com.google.cloud.kms.v1.CryptoKey>
-        getGetCryptoKeyMethod;
+  public static io.grpc.MethodDescriptor getGetCryptoKeyMethod() {
+    io.grpc.MethodDescriptor getGetCryptoKeyMethod;
     if ((getGetCryptoKeyMethod = KeyManagementServiceGrpc.getGetCryptoKeyMethod) == null) {
       synchronized (KeyManagementServiceGrpc.class) {
         if ((getGetCryptoKeyMethod = KeyManagementServiceGrpc.getGetCryptoKeyMethod) == null) {
-          KeyManagementServiceGrpc.getGetCryptoKeyMethod =
-              getGetCryptoKeyMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCryptoKey"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.GetCryptoKeyRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.CryptoKey.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new KeyManagementServiceMethodDescriptorSupplier("GetCryptoKey"))
-                      .build();
+          KeyManagementServiceGrpc.getGetCryptoKeyMethod = getGetCryptoKeyMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCryptoKey"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.GetCryptoKeyRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.CryptoKey.getDefaultInstance()))
+              .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("GetCryptoKey"))
+              .build();
         }
       }
     }
     return getGetCryptoKeyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.GetCryptoKeyVersionRequest,
-          com.google.cloud.kms.v1.CryptoKeyVersion>
-      getGetCryptoKeyVersionMethod;
+  private static volatile io.grpc.MethodDescriptor getGetCryptoKeyVersionMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetCryptoKeyVersion",
       requestType = com.google.cloud.kms.v1.GetCryptoKeyVersionRequest.class,
       responseType = com.google.cloud.kms.v1.CryptoKeyVersion.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.GetCryptoKeyVersionRequest,
-          com.google.cloud.kms.v1.CryptoKeyVersion>
-      getGetCryptoKeyVersionMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.kms.v1.GetCryptoKeyVersionRequest,
-            com.google.cloud.kms.v1.CryptoKeyVersion>
-        getGetCryptoKeyVersionMethod;
-    if ((getGetCryptoKeyVersionMethod = KeyManagementServiceGrpc.getGetCryptoKeyVersionMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getGetCryptoKeyVersionMethod() {
+    io.grpc.MethodDescriptor getGetCryptoKeyVersionMethod;
+    if ((getGetCryptoKeyVersionMethod = KeyManagementServiceGrpc.getGetCryptoKeyVersionMethod) == null) {
       synchronized (KeyManagementServiceGrpc.class) {
-        if ((getGetCryptoKeyVersionMethod = KeyManagementServiceGrpc.getGetCryptoKeyVersionMethod)
-            == null) {
-          KeyManagementServiceGrpc.getGetCryptoKeyVersionMethod =
-              getGetCryptoKeyVersionMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "GetCryptoKeyVersion"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.GetCryptoKeyVersionRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new KeyManagementServiceMethodDescriptorSupplier("GetCryptoKeyVersion"))
-                      .build();
+        if ((getGetCryptoKeyVersionMethod = KeyManagementServiceGrpc.getGetCryptoKeyVersionMethod) == null) {
+          KeyManagementServiceGrpc.getGetCryptoKeyVersionMethod = getGetCryptoKeyVersionMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCryptoKeyVersion"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.GetCryptoKeyVersionRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance()))
+              .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("GetCryptoKeyVersion"))
+              .build();
         }
       }
     }
     return getGetCryptoKeyVersionMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.GetPublicKeyRequest, com.google.cloud.kms.v1.PublicKey>
-      getGetPublicKeyMethod;
+  private static volatile io.grpc.MethodDescriptor getGetPublicKeyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetPublicKey",
       requestType = com.google.cloud.kms.v1.GetPublicKeyRequest.class,
       responseType = com.google.cloud.kms.v1.PublicKey.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.GetPublicKeyRequest, com.google.cloud.kms.v1.PublicKey>
-      getGetPublicKeyMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.kms.v1.GetPublicKeyRequest, com.google.cloud.kms.v1.PublicKey>
-        getGetPublicKeyMethod;
+  public static io.grpc.MethodDescriptor getGetPublicKeyMethod() {
+    io.grpc.MethodDescriptor getGetPublicKeyMethod;
     if ((getGetPublicKeyMethod = KeyManagementServiceGrpc.getGetPublicKeyMethod) == null) {
       synchronized (KeyManagementServiceGrpc.class) {
         if ((getGetPublicKeyMethod = KeyManagementServiceGrpc.getGetPublicKeyMethod) == null) {
-          KeyManagementServiceGrpc.getGetPublicKeyMethod =
-              getGetPublicKeyMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPublicKey"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.GetPublicKeyRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.PublicKey.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new KeyManagementServiceMethodDescriptorSupplier("GetPublicKey"))
-                      .build();
+          KeyManagementServiceGrpc.getGetPublicKeyMethod = getGetPublicKeyMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPublicKey"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.GetPublicKeyRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.PublicKey.getDefaultInstance()))
+              .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("GetPublicKey"))
+              .build();
         }
       }
     }
     return getGetPublicKeyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.GetImportJobRequest, com.google.cloud.kms.v1.ImportJob>
-      getGetImportJobMethod;
+  private static volatile io.grpc.MethodDescriptor getGetImportJobMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetImportJob",
       requestType = com.google.cloud.kms.v1.GetImportJobRequest.class,
       responseType = com.google.cloud.kms.v1.ImportJob.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.GetImportJobRequest, com.google.cloud.kms.v1.ImportJob>
-      getGetImportJobMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.kms.v1.GetImportJobRequest, com.google.cloud.kms.v1.ImportJob>
-        getGetImportJobMethod;
+  public static io.grpc.MethodDescriptor getGetImportJobMethod() {
+    io.grpc.MethodDescriptor getGetImportJobMethod;
     if ((getGetImportJobMethod = KeyManagementServiceGrpc.getGetImportJobMethod) == null) {
       synchronized (KeyManagementServiceGrpc.class) {
         if ((getGetImportJobMethod = KeyManagementServiceGrpc.getGetImportJobMethod) == null) {
-          KeyManagementServiceGrpc.getGetImportJobMethod =
-              getGetImportJobMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetImportJob"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.GetImportJobRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.ImportJob.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new KeyManagementServiceMethodDescriptorSupplier("GetImportJob"))
-                      .build();
+          KeyManagementServiceGrpc.getGetImportJobMethod = getGetImportJobMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetImportJob"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.GetImportJobRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.ImportJob.getDefaultInstance()))
+              .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("GetImportJob"))
+              .build();
         }
       }
     }
     return getGetImportJobMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.CreateKeyRingRequest, com.google.cloud.kms.v1.KeyRing>
-      getCreateKeyRingMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateKeyRingMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateKeyRing",
       requestType = com.google.cloud.kms.v1.CreateKeyRingRequest.class,
       responseType = com.google.cloud.kms.v1.KeyRing.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.CreateKeyRingRequest, com.google.cloud.kms.v1.KeyRing>
-      getCreateKeyRingMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.kms.v1.CreateKeyRingRequest, com.google.cloud.kms.v1.KeyRing>
-        getCreateKeyRingMethod;
+  public static io.grpc.MethodDescriptor getCreateKeyRingMethod() {
+    io.grpc.MethodDescriptor getCreateKeyRingMethod;
     if ((getCreateKeyRingMethod = KeyManagementServiceGrpc.getCreateKeyRingMethod) == null) {
       synchronized (KeyManagementServiceGrpc.class) {
         if ((getCreateKeyRingMethod = KeyManagementServiceGrpc.getCreateKeyRingMethod) == null) {
-          KeyManagementServiceGrpc.getCreateKeyRingMethod =
-              getCreateKeyRingMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateKeyRing"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.CreateKeyRingRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.KeyRing.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new KeyManagementServiceMethodDescriptorSupplier("CreateKeyRing"))
-                      .build();
+          KeyManagementServiceGrpc.getCreateKeyRingMethod = getCreateKeyRingMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateKeyRing"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.CreateKeyRingRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.KeyRing.getDefaultInstance()))
+              .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("CreateKeyRing"))
+              .build();
         }
       }
     }
     return getCreateKeyRingMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.CreateCryptoKeyRequest, com.google.cloud.kms.v1.CryptoKey>
-      getCreateCryptoKeyMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateCryptoKeyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateCryptoKey",
       requestType = com.google.cloud.kms.v1.CreateCryptoKeyRequest.class,
       responseType = com.google.cloud.kms.v1.CryptoKey.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.CreateCryptoKeyRequest, com.google.cloud.kms.v1.CryptoKey>
-      getCreateCryptoKeyMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.kms.v1.CreateCryptoKeyRequest, com.google.cloud.kms.v1.CryptoKey>
-        getCreateCryptoKeyMethod;
+  public static io.grpc.MethodDescriptor getCreateCryptoKeyMethod() {
+    io.grpc.MethodDescriptor getCreateCryptoKeyMethod;
     if ((getCreateCryptoKeyMethod = KeyManagementServiceGrpc.getCreateCryptoKeyMethod) == null) {
       synchronized (KeyManagementServiceGrpc.class) {
-        if ((getCreateCryptoKeyMethod = KeyManagementServiceGrpc.getCreateCryptoKeyMethod)
-            == null) {
-          KeyManagementServiceGrpc.getCreateCryptoKeyMethod =
-              getCreateCryptoKeyMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCryptoKey"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.CreateCryptoKeyRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.CryptoKey.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new KeyManagementServiceMethodDescriptorSupplier("CreateCryptoKey"))
-                      .build();
+        if ((getCreateCryptoKeyMethod = KeyManagementServiceGrpc.getCreateCryptoKeyMethod) == null) {
+          KeyManagementServiceGrpc.getCreateCryptoKeyMethod = getCreateCryptoKeyMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCryptoKey"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.CreateCryptoKeyRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.CryptoKey.getDefaultInstance()))
+              .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("CreateCryptoKey"))
+              .build();
         }
       }
     }
     return getCreateCryptoKeyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest,
-          com.google.cloud.kms.v1.CryptoKeyVersion>
-      getCreateCryptoKeyVersionMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateCryptoKeyVersionMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateCryptoKeyVersion",
       requestType = com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest.class,
       responseType = com.google.cloud.kms.v1.CryptoKeyVersion.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest,
-          com.google.cloud.kms.v1.CryptoKeyVersion>
-      getCreateCryptoKeyVersionMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest,
-            com.google.cloud.kms.v1.CryptoKeyVersion>
-        getCreateCryptoKeyVersionMethod;
-    if ((getCreateCryptoKeyVersionMethod = KeyManagementServiceGrpc.getCreateCryptoKeyVersionMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getCreateCryptoKeyVersionMethod() {
+    io.grpc.MethodDescriptor getCreateCryptoKeyVersionMethod;
+    if ((getCreateCryptoKeyVersionMethod = KeyManagementServiceGrpc.getCreateCryptoKeyVersionMethod) == null) {
       synchronized (KeyManagementServiceGrpc.class) {
-        if ((getCreateCryptoKeyVersionMethod =
-                KeyManagementServiceGrpc.getCreateCryptoKeyVersionMethod)
-            == null) {
-          KeyManagementServiceGrpc.getCreateCryptoKeyVersionMethod =
-              getCreateCryptoKeyVersionMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "CreateCryptoKeyVersion"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new KeyManagementServiceMethodDescriptorSupplier(
-                              "CreateCryptoKeyVersion"))
-                      .build();
+        if ((getCreateCryptoKeyVersionMethod = KeyManagementServiceGrpc.getCreateCryptoKeyVersionMethod) == null) {
+          KeyManagementServiceGrpc.getCreateCryptoKeyVersionMethod = getCreateCryptoKeyVersionMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCryptoKeyVersion"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance()))
+              .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("CreateCryptoKeyVersion"))
+              .build();
         }
       }
     }
     return getCreateCryptoKeyVersionMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest,
-          com.google.cloud.kms.v1.CryptoKeyVersion>
-      getImportCryptoKeyVersionMethod;
+  private static volatile io.grpc.MethodDescriptor getImportCryptoKeyVersionMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ImportCryptoKeyVersion",
       requestType = com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest.class,
       responseType = com.google.cloud.kms.v1.CryptoKeyVersion.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest,
-          com.google.cloud.kms.v1.CryptoKeyVersion>
-      getImportCryptoKeyVersionMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest,
-            com.google.cloud.kms.v1.CryptoKeyVersion>
-        getImportCryptoKeyVersionMethod;
-    if ((getImportCryptoKeyVersionMethod = KeyManagementServiceGrpc.getImportCryptoKeyVersionMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getImportCryptoKeyVersionMethod() {
+    io.grpc.MethodDescriptor getImportCryptoKeyVersionMethod;
+    if ((getImportCryptoKeyVersionMethod = KeyManagementServiceGrpc.getImportCryptoKeyVersionMethod) == null) {
       synchronized (KeyManagementServiceGrpc.class) {
-        if ((getImportCryptoKeyVersionMethod =
-                KeyManagementServiceGrpc.getImportCryptoKeyVersionMethod)
-            == null) {
-          KeyManagementServiceGrpc.getImportCryptoKeyVersionMethod =
-              getImportCryptoKeyVersionMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "ImportCryptoKeyVersion"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new KeyManagementServiceMethodDescriptorSupplier(
-                              "ImportCryptoKeyVersion"))
-                      .build();
+        if ((getImportCryptoKeyVersionMethod = KeyManagementServiceGrpc.getImportCryptoKeyVersionMethod) == null) {
+          KeyManagementServiceGrpc.getImportCryptoKeyVersionMethod = getImportCryptoKeyVersionMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportCryptoKeyVersion"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance()))
+              .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("ImportCryptoKeyVersion"))
+              .build();
         }
       }
     }
     return getImportCryptoKeyVersionMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.CreateImportJobRequest, com.google.cloud.kms.v1.ImportJob>
-      getCreateImportJobMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateImportJobMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateImportJob",
       requestType = com.google.cloud.kms.v1.CreateImportJobRequest.class,
       responseType = com.google.cloud.kms.v1.ImportJob.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.CreateImportJobRequest, com.google.cloud.kms.v1.ImportJob>
-      getCreateImportJobMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.kms.v1.CreateImportJobRequest, com.google.cloud.kms.v1.ImportJob>
-        getCreateImportJobMethod;
+  public static io.grpc.MethodDescriptor getCreateImportJobMethod() {
+    io.grpc.MethodDescriptor getCreateImportJobMethod;
     if ((getCreateImportJobMethod = KeyManagementServiceGrpc.getCreateImportJobMethod) == null) {
       synchronized (KeyManagementServiceGrpc.class) {
-        if ((getCreateImportJobMethod = KeyManagementServiceGrpc.getCreateImportJobMethod)
-            == null) {
-          KeyManagementServiceGrpc.getCreateImportJobMethod =
-              getCreateImportJobMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateImportJob"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.CreateImportJobRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.ImportJob.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new KeyManagementServiceMethodDescriptorSupplier("CreateImportJob"))
-                      .build();
+        if ((getCreateImportJobMethod = KeyManagementServiceGrpc.getCreateImportJobMethod) == null) {
+          KeyManagementServiceGrpc.getCreateImportJobMethod = getCreateImportJobMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateImportJob"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.CreateImportJobRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.ImportJob.getDefaultInstance()))
+              .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("CreateImportJob"))
+              .build();
         }
       }
     }
     return getCreateImportJobMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.UpdateCryptoKeyRequest, com.google.cloud.kms.v1.CryptoKey>
-      getUpdateCryptoKeyMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateCryptoKeyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateCryptoKey",
       requestType = com.google.cloud.kms.v1.UpdateCryptoKeyRequest.class,
       responseType = com.google.cloud.kms.v1.CryptoKey.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.UpdateCryptoKeyRequest, com.google.cloud.kms.v1.CryptoKey>
-      getUpdateCryptoKeyMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.kms.v1.UpdateCryptoKeyRequest, com.google.cloud.kms.v1.CryptoKey>
-        getUpdateCryptoKeyMethod;
+  public static io.grpc.MethodDescriptor getUpdateCryptoKeyMethod() {
+    io.grpc.MethodDescriptor getUpdateCryptoKeyMethod;
     if ((getUpdateCryptoKeyMethod = KeyManagementServiceGrpc.getUpdateCryptoKeyMethod) == null) {
       synchronized (KeyManagementServiceGrpc.class) {
-        if ((getUpdateCryptoKeyMethod = KeyManagementServiceGrpc.getUpdateCryptoKeyMethod)
-            == null) {
-          KeyManagementServiceGrpc.getUpdateCryptoKeyMethod =
-              getUpdateCryptoKeyMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCryptoKey"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.UpdateCryptoKeyRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.CryptoKey.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new KeyManagementServiceMethodDescriptorSupplier("UpdateCryptoKey"))
-                      .build();
+        if ((getUpdateCryptoKeyMethod = KeyManagementServiceGrpc.getUpdateCryptoKeyMethod) == null) {
+          KeyManagementServiceGrpc.getUpdateCryptoKeyMethod = getUpdateCryptoKeyMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCryptoKey"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.UpdateCryptoKeyRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.CryptoKey.getDefaultInstance()))
+              .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("UpdateCryptoKey"))
+              .build();
         }
       }
     }
     return getUpdateCryptoKeyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest,
-          com.google.cloud.kms.v1.CryptoKeyVersion>
-      getUpdateCryptoKeyVersionMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateCryptoKeyVersionMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateCryptoKeyVersion",
       requestType = com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest.class,
       responseType = com.google.cloud.kms.v1.CryptoKeyVersion.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest,
-          com.google.cloud.kms.v1.CryptoKeyVersion>
-      getUpdateCryptoKeyVersionMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest,
-            com.google.cloud.kms.v1.CryptoKeyVersion>
-        getUpdateCryptoKeyVersionMethod;
-    if ((getUpdateCryptoKeyVersionMethod = KeyManagementServiceGrpc.getUpdateCryptoKeyVersionMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getUpdateCryptoKeyVersionMethod() {
+    io.grpc.MethodDescriptor getUpdateCryptoKeyVersionMethod;
+    if ((getUpdateCryptoKeyVersionMethod = KeyManagementServiceGrpc.getUpdateCryptoKeyVersionMethod) == null) {
       synchronized (KeyManagementServiceGrpc.class) {
-        if ((getUpdateCryptoKeyVersionMethod =
-                KeyManagementServiceGrpc.getUpdateCryptoKeyVersionMethod)
-            == null) {
-          KeyManagementServiceGrpc.getUpdateCryptoKeyVersionMethod =
-              getUpdateCryptoKeyVersionMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "UpdateCryptoKeyVersion"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new KeyManagementServiceMethodDescriptorSupplier(
-                              "UpdateCryptoKeyVersion"))
-                      .build();
+        if ((getUpdateCryptoKeyVersionMethod = KeyManagementServiceGrpc.getUpdateCryptoKeyVersionMethod) == null) {
+          KeyManagementServiceGrpc.getUpdateCryptoKeyVersionMethod = getUpdateCryptoKeyVersionMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCryptoKeyVersion"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance()))
+              .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("UpdateCryptoKeyVersion"))
+              .build();
         }
       }
     }
     return getUpdateCryptoKeyVersionMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest,
-          com.google.cloud.kms.v1.CryptoKey>
-      getUpdateCryptoKeyPrimaryVersionMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateCryptoKeyPrimaryVersionMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateCryptoKeyPrimaryVersion",
       requestType = com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest.class,
       responseType = com.google.cloud.kms.v1.CryptoKey.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest,
-          com.google.cloud.kms.v1.CryptoKey>
-      getUpdateCryptoKeyPrimaryVersionMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest,
-            com.google.cloud.kms.v1.CryptoKey>
-        getUpdateCryptoKeyPrimaryVersionMethod;
-    if ((getUpdateCryptoKeyPrimaryVersionMethod =
-            KeyManagementServiceGrpc.getUpdateCryptoKeyPrimaryVersionMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getUpdateCryptoKeyPrimaryVersionMethod() {
+    io.grpc.MethodDescriptor getUpdateCryptoKeyPrimaryVersionMethod;
+    if ((getUpdateCryptoKeyPrimaryVersionMethod = KeyManagementServiceGrpc.getUpdateCryptoKeyPrimaryVersionMethod) == null) {
       synchronized (KeyManagementServiceGrpc.class) {
-        if ((getUpdateCryptoKeyPrimaryVersionMethod =
-                KeyManagementServiceGrpc.getUpdateCryptoKeyPrimaryVersionMethod)
-            == null) {
-          KeyManagementServiceGrpc.getUpdateCryptoKeyPrimaryVersionMethod =
-              getUpdateCryptoKeyPrimaryVersionMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "UpdateCryptoKeyPrimaryVersion"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.CryptoKey.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new KeyManagementServiceMethodDescriptorSupplier(
-                              "UpdateCryptoKeyPrimaryVersion"))
-                      .build();
+        if ((getUpdateCryptoKeyPrimaryVersionMethod = KeyManagementServiceGrpc.getUpdateCryptoKeyPrimaryVersionMethod) == null) {
+          KeyManagementServiceGrpc.getUpdateCryptoKeyPrimaryVersionMethod = getUpdateCryptoKeyPrimaryVersionMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCryptoKeyPrimaryVersion"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.CryptoKey.getDefaultInstance()))
+              .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("UpdateCryptoKeyPrimaryVersion"))
+              .build();
         }
       }
     }
     return getUpdateCryptoKeyPrimaryVersionMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest,
-          com.google.cloud.kms.v1.CryptoKeyVersion>
-      getDestroyCryptoKeyVersionMethod;
+  private static volatile io.grpc.MethodDescriptor getDestroyCryptoKeyVersionMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DestroyCryptoKeyVersion",
       requestType = com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest.class,
       responseType = com.google.cloud.kms.v1.CryptoKeyVersion.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest,
-          com.google.cloud.kms.v1.CryptoKeyVersion>
-      getDestroyCryptoKeyVersionMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest,
-            com.google.cloud.kms.v1.CryptoKeyVersion>
-        getDestroyCryptoKeyVersionMethod;
-    if ((getDestroyCryptoKeyVersionMethod =
-            KeyManagementServiceGrpc.getDestroyCryptoKeyVersionMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getDestroyCryptoKeyVersionMethod() {
+    io.grpc.MethodDescriptor getDestroyCryptoKeyVersionMethod;
+    if ((getDestroyCryptoKeyVersionMethod = KeyManagementServiceGrpc.getDestroyCryptoKeyVersionMethod) == null) {
       synchronized (KeyManagementServiceGrpc.class) {
-        if ((getDestroyCryptoKeyVersionMethod =
-                KeyManagementServiceGrpc.getDestroyCryptoKeyVersionMethod)
-            == null) {
-          KeyManagementServiceGrpc.getDestroyCryptoKeyVersionMethod =
-              getDestroyCryptoKeyVersionMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "DestroyCryptoKeyVersion"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new KeyManagementServiceMethodDescriptorSupplier(
-                              "DestroyCryptoKeyVersion"))
-                      .build();
+        if ((getDestroyCryptoKeyVersionMethod = KeyManagementServiceGrpc.getDestroyCryptoKeyVersionMethod) == null) {
+          KeyManagementServiceGrpc.getDestroyCryptoKeyVersionMethod = getDestroyCryptoKeyVersionMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DestroyCryptoKeyVersion"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance()))
+              .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("DestroyCryptoKeyVersion"))
+              .build();
         }
       }
     }
     return getDestroyCryptoKeyVersionMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest,
-          com.google.cloud.kms.v1.CryptoKeyVersion>
-      getRestoreCryptoKeyVersionMethod;
+  private static volatile io.grpc.MethodDescriptor getRestoreCryptoKeyVersionMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "RestoreCryptoKeyVersion",
       requestType = com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest.class,
       responseType = com.google.cloud.kms.v1.CryptoKeyVersion.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest,
-          com.google.cloud.kms.v1.CryptoKeyVersion>
-      getRestoreCryptoKeyVersionMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest,
-            com.google.cloud.kms.v1.CryptoKeyVersion>
-        getRestoreCryptoKeyVersionMethod;
-    if ((getRestoreCryptoKeyVersionMethod =
-            KeyManagementServiceGrpc.getRestoreCryptoKeyVersionMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getRestoreCryptoKeyVersionMethod() {
+    io.grpc.MethodDescriptor getRestoreCryptoKeyVersionMethod;
+    if ((getRestoreCryptoKeyVersionMethod = KeyManagementServiceGrpc.getRestoreCryptoKeyVersionMethod) == null) {
       synchronized (KeyManagementServiceGrpc.class) {
-        if ((getRestoreCryptoKeyVersionMethod =
-                KeyManagementServiceGrpc.getRestoreCryptoKeyVersionMethod)
-            == null) {
-          KeyManagementServiceGrpc.getRestoreCryptoKeyVersionMethod =
-              getRestoreCryptoKeyVersionMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "RestoreCryptoKeyVersion"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new KeyManagementServiceMethodDescriptorSupplier(
-                              "RestoreCryptoKeyVersion"))
-                      .build();
+        if ((getRestoreCryptoKeyVersionMethod = KeyManagementServiceGrpc.getRestoreCryptoKeyVersionMethod) == null) {
+          KeyManagementServiceGrpc.getRestoreCryptoKeyVersionMethod = getRestoreCryptoKeyVersionMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreCryptoKeyVersion"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance()))
+              .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("RestoreCryptoKeyVersion"))
+              .build();
         }
       }
     }
     return getRestoreCryptoKeyVersionMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.EncryptRequest, com.google.cloud.kms.v1.EncryptResponse>
-      getEncryptMethod;
+  private static volatile io.grpc.MethodDescriptor getEncryptMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "Encrypt",
       requestType = com.google.cloud.kms.v1.EncryptRequest.class,
       responseType = com.google.cloud.kms.v1.EncryptResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.EncryptRequest, com.google.cloud.kms.v1.EncryptResponse>
-      getEncryptMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.kms.v1.EncryptRequest, com.google.cloud.kms.v1.EncryptResponse>
-        getEncryptMethod;
+  public static io.grpc.MethodDescriptor getEncryptMethod() {
+    io.grpc.MethodDescriptor getEncryptMethod;
     if ((getEncryptMethod = KeyManagementServiceGrpc.getEncryptMethod) == null) {
       synchronized (KeyManagementServiceGrpc.class) {
         if ((getEncryptMethod = KeyManagementServiceGrpc.getEncryptMethod) == null) {
-          KeyManagementServiceGrpc.getEncryptMethod =
-              getEncryptMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Encrypt"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.EncryptRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.EncryptResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new KeyManagementServiceMethodDescriptorSupplier("Encrypt"))
-                      .build();
+          KeyManagementServiceGrpc.getEncryptMethod = getEncryptMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Encrypt"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.EncryptRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.EncryptResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("Encrypt"))
+              .build();
         }
       }
     }
     return getEncryptMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.DecryptRequest, com.google.cloud.kms.v1.DecryptResponse>
-      getDecryptMethod;
+  private static volatile io.grpc.MethodDescriptor getDecryptMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "Decrypt",
       requestType = com.google.cloud.kms.v1.DecryptRequest.class,
       responseType = com.google.cloud.kms.v1.DecryptResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.DecryptRequest, com.google.cloud.kms.v1.DecryptResponse>
-      getDecryptMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.kms.v1.DecryptRequest, com.google.cloud.kms.v1.DecryptResponse>
-        getDecryptMethod;
+  public static io.grpc.MethodDescriptor getDecryptMethod() {
+    io.grpc.MethodDescriptor getDecryptMethod;
     if ((getDecryptMethod = KeyManagementServiceGrpc.getDecryptMethod) == null) {
       synchronized (KeyManagementServiceGrpc.class) {
         if ((getDecryptMethod = KeyManagementServiceGrpc.getDecryptMethod) == null) {
-          KeyManagementServiceGrpc.getDecryptMethod =
-              getDecryptMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Decrypt"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.DecryptRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.DecryptResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new KeyManagementServiceMethodDescriptorSupplier("Decrypt"))
-                      .build();
+          KeyManagementServiceGrpc.getDecryptMethod = getDecryptMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Decrypt"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.DecryptRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.DecryptResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("Decrypt"))
+              .build();
         }
       }
     }
     return getDecryptMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.AsymmetricSignRequest,
-          com.google.cloud.kms.v1.AsymmetricSignResponse>
-      getAsymmetricSignMethod;
+  private static volatile io.grpc.MethodDescriptor getAsymmetricSignMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "AsymmetricSign",
       requestType = com.google.cloud.kms.v1.AsymmetricSignRequest.class,
       responseType = com.google.cloud.kms.v1.AsymmetricSignResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.AsymmetricSignRequest,
-          com.google.cloud.kms.v1.AsymmetricSignResponse>
-      getAsymmetricSignMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.kms.v1.AsymmetricSignRequest,
-            com.google.cloud.kms.v1.AsymmetricSignResponse>
-        getAsymmetricSignMethod;
+  public static io.grpc.MethodDescriptor getAsymmetricSignMethod() {
+    io.grpc.MethodDescriptor getAsymmetricSignMethod;
     if ((getAsymmetricSignMethod = KeyManagementServiceGrpc.getAsymmetricSignMethod) == null) {
       synchronized (KeyManagementServiceGrpc.class) {
         if ((getAsymmetricSignMethod = KeyManagementServiceGrpc.getAsymmetricSignMethod) == null) {
-          KeyManagementServiceGrpc.getAsymmetricSignMethod =
-              getAsymmetricSignMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AsymmetricSign"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.AsymmetricSignRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.AsymmetricSignResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new KeyManagementServiceMethodDescriptorSupplier("AsymmetricSign"))
-                      .build();
+          KeyManagementServiceGrpc.getAsymmetricSignMethod = getAsymmetricSignMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AsymmetricSign"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.AsymmetricSignRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.AsymmetricSignResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("AsymmetricSign"))
+              .build();
         }
       }
     }
     return getAsymmetricSignMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.AsymmetricDecryptRequest,
-          com.google.cloud.kms.v1.AsymmetricDecryptResponse>
-      getAsymmetricDecryptMethod;
+  private static volatile io.grpc.MethodDescriptor getAsymmetricDecryptMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "AsymmetricDecrypt",
       requestType = com.google.cloud.kms.v1.AsymmetricDecryptRequest.class,
       responseType = com.google.cloud.kms.v1.AsymmetricDecryptResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.AsymmetricDecryptRequest,
-          com.google.cloud.kms.v1.AsymmetricDecryptResponse>
-      getAsymmetricDecryptMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.kms.v1.AsymmetricDecryptRequest,
-            com.google.cloud.kms.v1.AsymmetricDecryptResponse>
-        getAsymmetricDecryptMethod;
-    if ((getAsymmetricDecryptMethod = KeyManagementServiceGrpc.getAsymmetricDecryptMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getAsymmetricDecryptMethod() {
+    io.grpc.MethodDescriptor getAsymmetricDecryptMethod;
+    if ((getAsymmetricDecryptMethod = KeyManagementServiceGrpc.getAsymmetricDecryptMethod) == null) {
       synchronized (KeyManagementServiceGrpc.class) {
-        if ((getAsymmetricDecryptMethod = KeyManagementServiceGrpc.getAsymmetricDecryptMethod)
-            == null) {
-          KeyManagementServiceGrpc.getAsymmetricDecryptMethod =
-              getAsymmetricDecryptMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AsymmetricDecrypt"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.AsymmetricDecryptRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.AsymmetricDecryptResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new KeyManagementServiceMethodDescriptorSupplier("AsymmetricDecrypt"))
-                      .build();
+        if ((getAsymmetricDecryptMethod = KeyManagementServiceGrpc.getAsymmetricDecryptMethod) == null) {
+          KeyManagementServiceGrpc.getAsymmetricDecryptMethod = getAsymmetricDecryptMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AsymmetricDecrypt"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.AsymmetricDecryptRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.AsymmetricDecryptResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("AsymmetricDecrypt"))
+              .build();
         }
       }
     }
     return getAsymmetricDecryptMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.MacSignRequest, com.google.cloud.kms.v1.MacSignResponse>
-      getMacSignMethod;
+  private static volatile io.grpc.MethodDescriptor getMacSignMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "MacSign",
       requestType = com.google.cloud.kms.v1.MacSignRequest.class,
       responseType = com.google.cloud.kms.v1.MacSignResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.MacSignRequest, com.google.cloud.kms.v1.MacSignResponse>
-      getMacSignMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.kms.v1.MacSignRequest, com.google.cloud.kms.v1.MacSignResponse>
-        getMacSignMethod;
+  public static io.grpc.MethodDescriptor getMacSignMethod() {
+    io.grpc.MethodDescriptor getMacSignMethod;
     if ((getMacSignMethod = KeyManagementServiceGrpc.getMacSignMethod) == null) {
       synchronized (KeyManagementServiceGrpc.class) {
         if ((getMacSignMethod = KeyManagementServiceGrpc.getMacSignMethod) == null) {
-          KeyManagementServiceGrpc.getMacSignMethod =
-              getMacSignMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MacSign"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.MacSignRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.MacSignResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new KeyManagementServiceMethodDescriptorSupplier("MacSign"))
-                      .build();
+          KeyManagementServiceGrpc.getMacSignMethod = getMacSignMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MacSign"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.MacSignRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.MacSignResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("MacSign"))
+              .build();
         }
       }
     }
     return getMacSignMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.MacVerifyRequest, com.google.cloud.kms.v1.MacVerifyResponse>
-      getMacVerifyMethod;
+  private static volatile io.grpc.MethodDescriptor getMacVerifyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "MacVerify",
       requestType = com.google.cloud.kms.v1.MacVerifyRequest.class,
       responseType = com.google.cloud.kms.v1.MacVerifyResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.MacVerifyRequest, com.google.cloud.kms.v1.MacVerifyResponse>
-      getMacVerifyMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.kms.v1.MacVerifyRequest, com.google.cloud.kms.v1.MacVerifyResponse>
-        getMacVerifyMethod;
+  public static io.grpc.MethodDescriptor getMacVerifyMethod() {
+    io.grpc.MethodDescriptor getMacVerifyMethod;
     if ((getMacVerifyMethod = KeyManagementServiceGrpc.getMacVerifyMethod) == null) {
       synchronized (KeyManagementServiceGrpc.class) {
         if ((getMacVerifyMethod = KeyManagementServiceGrpc.getMacVerifyMethod) == null) {
-          KeyManagementServiceGrpc.getMacVerifyMethod =
-              getMacVerifyMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MacVerify"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.MacVerifyRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.MacVerifyResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new KeyManagementServiceMethodDescriptorSupplier("MacVerify"))
-                      .build();
+          KeyManagementServiceGrpc.getMacVerifyMethod = getMacVerifyMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MacVerify"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.MacVerifyRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.MacVerifyResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("MacVerify"))
+              .build();
         }
       }
     }
     return getMacVerifyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.GenerateRandomBytesRequest,
-          com.google.cloud.kms.v1.GenerateRandomBytesResponse>
-      getGenerateRandomBytesMethod;
+  private static volatile io.grpc.MethodDescriptor getGenerateRandomBytesMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GenerateRandomBytes",
       requestType = com.google.cloud.kms.v1.GenerateRandomBytesRequest.class,
       responseType = com.google.cloud.kms.v1.GenerateRandomBytesResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.kms.v1.GenerateRandomBytesRequest,
-          com.google.cloud.kms.v1.GenerateRandomBytesResponse>
-      getGenerateRandomBytesMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.kms.v1.GenerateRandomBytesRequest,
-            com.google.cloud.kms.v1.GenerateRandomBytesResponse>
-        getGenerateRandomBytesMethod;
-    if ((getGenerateRandomBytesMethod = KeyManagementServiceGrpc.getGenerateRandomBytesMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getGenerateRandomBytesMethod() {
+    io.grpc.MethodDescriptor getGenerateRandomBytesMethod;
+    if ((getGenerateRandomBytesMethod = KeyManagementServiceGrpc.getGenerateRandomBytesMethod) == null) {
       synchronized (KeyManagementServiceGrpc.class) {
-        if ((getGenerateRandomBytesMethod = KeyManagementServiceGrpc.getGenerateRandomBytesMethod)
-            == null) {
-          KeyManagementServiceGrpc.getGenerateRandomBytesMethod =
-              getGenerateRandomBytesMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "GenerateRandomBytes"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.GenerateRandomBytesRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.kms.v1.GenerateRandomBytesResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new KeyManagementServiceMethodDescriptorSupplier("GenerateRandomBytes"))
-                      .build();
+        if ((getGenerateRandomBytesMethod = KeyManagementServiceGrpc.getGenerateRandomBytesMethod) == null) {
+          KeyManagementServiceGrpc.getGenerateRandomBytesMethod = getGenerateRandomBytesMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateRandomBytes"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.GenerateRandomBytesRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.kms.v1.GenerateRandomBytesResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("GenerateRandomBytes"))
+              .build();
         }
       }
     }
     return getGenerateRandomBytesMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static KeyManagementServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public KeyManagementServiceStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new KeyManagementServiceStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public KeyManagementServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new KeyManagementServiceStub(channel, callOptions);
+        }
+      };
     return KeyManagementServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static KeyManagementServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static KeyManagementServiceBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public KeyManagementServiceBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new KeyManagementServiceBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public KeyManagementServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new KeyManagementServiceBlockingStub(channel, callOptions);
+        }
+      };
     return KeyManagementServiceBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static KeyManagementServiceFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static KeyManagementServiceFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public KeyManagementServiceFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new KeyManagementServiceFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public KeyManagementServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new KeyManagementServiceFutureStub(channel, callOptions);
+        }
+      };
     return KeyManagementServiceFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * Google Cloud Key Management Service
    * Manages cryptographic keys and operations using those keys. Implements a REST
@@ -1291,115 +889,82 @@ public KeyManagementServiceFutureStub newStub(
    * [Using gRPC with Cloud KMS](https://cloud.google.com/kms/docs/grpc).
    * 
*/ - public abstract static class KeyManagementServiceImplBase implements io.grpc.BindableService { + public static abstract class KeyManagementServiceImplBase implements io.grpc.BindableService { /** - * - * *
      * Lists [KeyRings][google.cloud.kms.v1.KeyRing].
      * 
*/ - public void listKeyRings( - com.google.cloud.kms.v1.ListKeyRingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListKeyRingsMethod(), responseObserver); + public void listKeyRings(com.google.cloud.kms.v1.ListKeyRingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListKeyRingsMethod(), responseObserver); } /** - * - * *
      * Lists [CryptoKeys][google.cloud.kms.v1.CryptoKey].
      * 
*/ - public void listCryptoKeys( - com.google.cloud.kms.v1.ListCryptoKeysRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCryptoKeysMethod(), responseObserver); + public void listCryptoKeys(com.google.cloud.kms.v1.ListCryptoKeysRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCryptoKeysMethod(), responseObserver); } /** - * - * *
      * Lists [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
      * 
*/ - public void listCryptoKeyVersions( - com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCryptoKeyVersionsMethod(), responseObserver); + public void listCryptoKeyVersions(com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCryptoKeyVersionsMethod(), responseObserver); } /** - * - * *
      * Lists [ImportJobs][google.cloud.kms.v1.ImportJob].
      * 
*/ - public void listImportJobs( - com.google.cloud.kms.v1.ListImportJobsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListImportJobsMethod(), responseObserver); + public void listImportJobs(com.google.cloud.kms.v1.ListImportJobsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListImportJobsMethod(), responseObserver); } /** - * - * *
      * Returns metadata for a given [KeyRing][google.cloud.kms.v1.KeyRing].
      * 
*/ - public void getKeyRing( - com.google.cloud.kms.v1.GetKeyRingRequest request, + public void getKeyRing(com.google.cloud.kms.v1.GetKeyRingRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetKeyRingMethod(), responseObserver); } /** - * - * *
      * Returns metadata for a given [CryptoKey][google.cloud.kms.v1.CryptoKey], as
      * well as its [primary][google.cloud.kms.v1.CryptoKey.primary]
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
      * 
*/ - public void getCryptoKey( - com.google.cloud.kms.v1.GetCryptoKeyRequest request, + public void getCryptoKey(com.google.cloud.kms.v1.GetCryptoKeyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetCryptoKeyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCryptoKeyMethod(), responseObserver); } /** - * - * *
      * Returns metadata for a given
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
      * 
*/ - public void getCryptoKeyVersion( - com.google.cloud.kms.v1.GetCryptoKeyVersionRequest request, + public void getCryptoKeyVersion(com.google.cloud.kms.v1.GetCryptoKeyVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetCryptoKeyVersionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCryptoKeyVersionMethod(), responseObserver); } /** - * - * *
      * Returns the public key for the given
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. The
@@ -1409,45 +974,33 @@ public void getCryptoKeyVersion(
      * [ASYMMETRIC_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_DECRYPT].
      * 
*/ - public void getPublicKey( - com.google.cloud.kms.v1.GetPublicKeyRequest request, + public void getPublicKey(com.google.cloud.kms.v1.GetPublicKeyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetPublicKeyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPublicKeyMethod(), responseObserver); } /** - * - * *
      * Returns metadata for a given [ImportJob][google.cloud.kms.v1.ImportJob].
      * 
*/ - public void getImportJob( - com.google.cloud.kms.v1.GetImportJobRequest request, + public void getImportJob(com.google.cloud.kms.v1.GetImportJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetImportJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetImportJobMethod(), responseObserver); } /** - * - * *
      * Create a new [KeyRing][google.cloud.kms.v1.KeyRing] in a given Project and
      * Location.
      * 
*/ - public void createKeyRing( - com.google.cloud.kms.v1.CreateKeyRingRequest request, + public void createKeyRing(com.google.cloud.kms.v1.CreateKeyRingRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateKeyRingMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateKeyRingMethod(), responseObserver); } /** - * - * *
      * Create a new [CryptoKey][google.cloud.kms.v1.CryptoKey] within a
      * [KeyRing][google.cloud.kms.v1.KeyRing].
@@ -1456,16 +1009,12 @@ public void createKeyRing(
      * are required.
      * 
*/ - public void createCryptoKey( - com.google.cloud.kms.v1.CreateCryptoKeyRequest request, + public void createCryptoKey(com.google.cloud.kms.v1.CreateCryptoKeyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateCryptoKeyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCryptoKeyMethod(), responseObserver); } /** - * - * *
      * Create a new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in a
      * [CryptoKey][google.cloud.kms.v1.CryptoKey].
@@ -1474,16 +1023,12 @@ public void createCryptoKey(
      * [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED].
      * 
*/ - public void createCryptoKeyVersion( - com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest request, + public void createCryptoKeyVersion(com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateCryptoKeyVersionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCryptoKeyVersionMethod(), responseObserver); } /** - * - * *
      * Import wrapped key material into a
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
@@ -1494,16 +1039,12 @@ public void createCryptoKeyVersion(
      * next sequential id within the [CryptoKey][google.cloud.kms.v1.CryptoKey].
      * 
*/ - public void importCryptoKeyVersion( - com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest request, + public void importCryptoKeyVersion(com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getImportCryptoKeyVersionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportCryptoKeyVersionMethod(), responseObserver); } /** - * - * *
      * Create a new [ImportJob][google.cloud.kms.v1.ImportJob] within a
      * [KeyRing][google.cloud.kms.v1.KeyRing].
@@ -1511,30 +1052,22 @@ public void importCryptoKeyVersion(
      * required.
      * 
*/ - public void createImportJob( - com.google.cloud.kms.v1.CreateImportJobRequest request, + public void createImportJob(com.google.cloud.kms.v1.CreateImportJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateImportJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateImportJobMethod(), responseObserver); } /** - * - * *
      * Update a [CryptoKey][google.cloud.kms.v1.CryptoKey].
      * 
*/ - public void updateCryptoKey( - com.google.cloud.kms.v1.UpdateCryptoKeyRequest request, + public void updateCryptoKey(com.google.cloud.kms.v1.UpdateCryptoKeyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateCryptoKeyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCryptoKeyMethod(), responseObserver); } /** - * - * *
      * Update a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s
      * metadata.
@@ -1549,16 +1082,12 @@ public void updateCryptoKey(
      * to move between other states.
      * 
*/ - public void updateCryptoKeyVersion( - com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest request, + public void updateCryptoKeyVersion(com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateCryptoKeyVersionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCryptoKeyVersionMethod(), responseObserver); } /** - * - * *
      * Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that
      * will be used in
@@ -1567,16 +1096,12 @@ public void updateCryptoKeyVersion(
      * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
      * 
*/ - public void updateCryptoKeyPrimaryVersion( - com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest request, + public void updateCryptoKeyPrimaryVersion(com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateCryptoKeyPrimaryVersionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCryptoKeyPrimaryVersionMethod(), responseObserver); } /** - * - * *
      * Schedule a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] for
      * destruction.
@@ -1599,16 +1124,12 @@ public void updateCryptoKeyPrimaryVersion(
      * may be called to reverse the process.
      * 
*/ - public void destroyCryptoKeyVersion( - com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest request, + public void destroyCryptoKeyVersion(com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDestroyCryptoKeyVersionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDestroyCryptoKeyVersionMethod(), responseObserver); } /** - * - * *
      * Restore a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the
      * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]
@@ -1620,16 +1141,12 @@ public void destroyCryptoKeyVersion(
      * be cleared.
      * 
*/ - public void restoreCryptoKeyVersion( - com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest request, + public void restoreCryptoKeyVersion(com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRestoreCryptoKeyVersionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRestoreCryptoKeyVersionMethod(), responseObserver); } /** - * - * *
      * Encrypts data, so that it can only be recovered by a call to
      * [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt]. The
@@ -1637,15 +1154,12 @@ public void restoreCryptoKeyVersion(
      * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
      * 
*/ - public void encrypt( - com.google.cloud.kms.v1.EncryptRequest request, + public void encrypt(com.google.cloud.kms.v1.EncryptRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEncryptMethod(), responseObserver); } /** - * - * *
      * Decrypts data that was protected by
      * [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. The
@@ -1653,15 +1167,12 @@ public void encrypt(
      * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
      * 
*/ - public void decrypt( - com.google.cloud.kms.v1.DecryptRequest request, + public void decrypt(com.google.cloud.kms.v1.DecryptRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDecryptMethod(), responseObserver); } /** - * - * *
      * Signs data using a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
      * with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose]
@@ -1670,17 +1181,12 @@ public void decrypt(
      * [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
      * 
*/ - public void asymmetricSign( - com.google.cloud.kms.v1.AsymmetricSignRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getAsymmetricSignMethod(), responseObserver); + public void asymmetricSign(com.google.cloud.kms.v1.AsymmetricSignRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAsymmetricSignMethod(), responseObserver); } /** - * - * *
      * Decrypts data that was encrypted with a public key retrieved from
      * [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey]
@@ -1689,32 +1195,24 @@ public void asymmetricSign(
      * ASYMMETRIC_DECRYPT.
      * 
*/ - public void asymmetricDecrypt( - com.google.cloud.kms.v1.AsymmetricDecryptRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getAsymmetricDecryptMethod(), responseObserver); + public void asymmetricDecrypt(com.google.cloud.kms.v1.AsymmetricDecryptRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAsymmetricDecryptMethod(), responseObserver); } /** - * - * *
      * Signs data using a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
      * with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] MAC,
      * producing a tag that can be verified by another source with the same key.
      * 
*/ - public void macSign( - com.google.cloud.kms.v1.MacSignRequest request, + public void macSign(com.google.cloud.kms.v1.MacSignRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMacSignMethod(), responseObserver); } /** - * - * *
      * Verifies MAC tag using a
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
@@ -1722,207 +1220,211 @@ public void macSign(
      * a response that indicates whether or not the verification was successful.
      * 
*/ - public void macVerify( - com.google.cloud.kms.v1.MacVerifyRequest request, + public void macVerify(com.google.cloud.kms.v1.MacVerifyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMacVerifyMethod(), responseObserver); } /** - * - * *
      * Generate random bytes using the Cloud KMS randomness source in the provided
      * location.
      * 
*/ - public void generateRandomBytes( - com.google.cloud.kms.v1.GenerateRandomBytesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGenerateRandomBytesMethod(), responseObserver); + public void generateRandomBytes(com.google.cloud.kms.v1.GenerateRandomBytesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateRandomBytesMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListKeyRingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.ListKeyRingsRequest, - com.google.cloud.kms.v1.ListKeyRingsResponse>(this, METHODID_LIST_KEY_RINGS))) + getListKeyRingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.ListKeyRingsRequest, + com.google.cloud.kms.v1.ListKeyRingsResponse>( + this, METHODID_LIST_KEY_RINGS))) .addMethod( - getListCryptoKeysMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.ListCryptoKeysRequest, - com.google.cloud.kms.v1.ListCryptoKeysResponse>( - this, METHODID_LIST_CRYPTO_KEYS))) + getListCryptoKeysMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.ListCryptoKeysRequest, + com.google.cloud.kms.v1.ListCryptoKeysResponse>( + this, METHODID_LIST_CRYPTO_KEYS))) .addMethod( - getListCryptoKeyVersionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest, - com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse>( - this, METHODID_LIST_CRYPTO_KEY_VERSIONS))) + getListCryptoKeyVersionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest, + com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse>( + this, METHODID_LIST_CRYPTO_KEY_VERSIONS))) .addMethod( - getListImportJobsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.ListImportJobsRequest, - com.google.cloud.kms.v1.ListImportJobsResponse>( - this, METHODID_LIST_IMPORT_JOBS))) + getListImportJobsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.ListImportJobsRequest, + com.google.cloud.kms.v1.ListImportJobsResponse>( + this, METHODID_LIST_IMPORT_JOBS))) .addMethod( - getGetKeyRingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.GetKeyRingRequest, com.google.cloud.kms.v1.KeyRing>( - this, METHODID_GET_KEY_RING))) + getGetKeyRingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.GetKeyRingRequest, + com.google.cloud.kms.v1.KeyRing>( + this, METHODID_GET_KEY_RING))) .addMethod( - getGetCryptoKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.GetCryptoKeyRequest, - com.google.cloud.kms.v1.CryptoKey>(this, METHODID_GET_CRYPTO_KEY))) + getGetCryptoKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.GetCryptoKeyRequest, + com.google.cloud.kms.v1.CryptoKey>( + this, METHODID_GET_CRYPTO_KEY))) .addMethod( - getGetCryptoKeyVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.GetCryptoKeyVersionRequest, - com.google.cloud.kms.v1.CryptoKeyVersion>( - this, METHODID_GET_CRYPTO_KEY_VERSION))) + getGetCryptoKeyVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.GetCryptoKeyVersionRequest, + com.google.cloud.kms.v1.CryptoKeyVersion>( + this, METHODID_GET_CRYPTO_KEY_VERSION))) .addMethod( - getGetPublicKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.GetPublicKeyRequest, - com.google.cloud.kms.v1.PublicKey>(this, METHODID_GET_PUBLIC_KEY))) + getGetPublicKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.GetPublicKeyRequest, + com.google.cloud.kms.v1.PublicKey>( + this, METHODID_GET_PUBLIC_KEY))) .addMethod( - getGetImportJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.GetImportJobRequest, - com.google.cloud.kms.v1.ImportJob>(this, METHODID_GET_IMPORT_JOB))) + getGetImportJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.GetImportJobRequest, + com.google.cloud.kms.v1.ImportJob>( + this, METHODID_GET_IMPORT_JOB))) .addMethod( - getCreateKeyRingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.CreateKeyRingRequest, - com.google.cloud.kms.v1.KeyRing>(this, METHODID_CREATE_KEY_RING))) + getCreateKeyRingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.CreateKeyRingRequest, + com.google.cloud.kms.v1.KeyRing>( + this, METHODID_CREATE_KEY_RING))) .addMethod( - getCreateCryptoKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.CreateCryptoKeyRequest, - com.google.cloud.kms.v1.CryptoKey>(this, METHODID_CREATE_CRYPTO_KEY))) + getCreateCryptoKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.CreateCryptoKeyRequest, + com.google.cloud.kms.v1.CryptoKey>( + this, METHODID_CREATE_CRYPTO_KEY))) .addMethod( - getCreateCryptoKeyVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest, - com.google.cloud.kms.v1.CryptoKeyVersion>( - this, METHODID_CREATE_CRYPTO_KEY_VERSION))) + getCreateCryptoKeyVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest, + com.google.cloud.kms.v1.CryptoKeyVersion>( + this, METHODID_CREATE_CRYPTO_KEY_VERSION))) .addMethod( - getImportCryptoKeyVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest, - com.google.cloud.kms.v1.CryptoKeyVersion>( - this, METHODID_IMPORT_CRYPTO_KEY_VERSION))) + getImportCryptoKeyVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest, + com.google.cloud.kms.v1.CryptoKeyVersion>( + this, METHODID_IMPORT_CRYPTO_KEY_VERSION))) .addMethod( - getCreateImportJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.CreateImportJobRequest, - com.google.cloud.kms.v1.ImportJob>(this, METHODID_CREATE_IMPORT_JOB))) + getCreateImportJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.CreateImportJobRequest, + com.google.cloud.kms.v1.ImportJob>( + this, METHODID_CREATE_IMPORT_JOB))) .addMethod( - getUpdateCryptoKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.UpdateCryptoKeyRequest, - com.google.cloud.kms.v1.CryptoKey>(this, METHODID_UPDATE_CRYPTO_KEY))) + getUpdateCryptoKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.UpdateCryptoKeyRequest, + com.google.cloud.kms.v1.CryptoKey>( + this, METHODID_UPDATE_CRYPTO_KEY))) .addMethod( - getUpdateCryptoKeyVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest, - com.google.cloud.kms.v1.CryptoKeyVersion>( - this, METHODID_UPDATE_CRYPTO_KEY_VERSION))) + getUpdateCryptoKeyVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest, + com.google.cloud.kms.v1.CryptoKeyVersion>( + this, METHODID_UPDATE_CRYPTO_KEY_VERSION))) .addMethod( - getUpdateCryptoKeyPrimaryVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest, - com.google.cloud.kms.v1.CryptoKey>( - this, METHODID_UPDATE_CRYPTO_KEY_PRIMARY_VERSION))) + getUpdateCryptoKeyPrimaryVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest, + com.google.cloud.kms.v1.CryptoKey>( + this, METHODID_UPDATE_CRYPTO_KEY_PRIMARY_VERSION))) .addMethod( - getDestroyCryptoKeyVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest, - com.google.cloud.kms.v1.CryptoKeyVersion>( - this, METHODID_DESTROY_CRYPTO_KEY_VERSION))) + getDestroyCryptoKeyVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest, + com.google.cloud.kms.v1.CryptoKeyVersion>( + this, METHODID_DESTROY_CRYPTO_KEY_VERSION))) .addMethod( - getRestoreCryptoKeyVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest, - com.google.cloud.kms.v1.CryptoKeyVersion>( - this, METHODID_RESTORE_CRYPTO_KEY_VERSION))) + getRestoreCryptoKeyVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest, + com.google.cloud.kms.v1.CryptoKeyVersion>( + this, METHODID_RESTORE_CRYPTO_KEY_VERSION))) .addMethod( - getEncryptMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.EncryptRequest, - com.google.cloud.kms.v1.EncryptResponse>(this, METHODID_ENCRYPT))) + getEncryptMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.EncryptRequest, + com.google.cloud.kms.v1.EncryptResponse>( + this, METHODID_ENCRYPT))) .addMethod( - getDecryptMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.DecryptRequest, - com.google.cloud.kms.v1.DecryptResponse>(this, METHODID_DECRYPT))) + getDecryptMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.DecryptRequest, + com.google.cloud.kms.v1.DecryptResponse>( + this, METHODID_DECRYPT))) .addMethod( - getAsymmetricSignMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.AsymmetricSignRequest, - com.google.cloud.kms.v1.AsymmetricSignResponse>( - this, METHODID_ASYMMETRIC_SIGN))) + getAsymmetricSignMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.AsymmetricSignRequest, + com.google.cloud.kms.v1.AsymmetricSignResponse>( + this, METHODID_ASYMMETRIC_SIGN))) .addMethod( - getAsymmetricDecryptMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.AsymmetricDecryptRequest, - com.google.cloud.kms.v1.AsymmetricDecryptResponse>( - this, METHODID_ASYMMETRIC_DECRYPT))) + getAsymmetricDecryptMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.AsymmetricDecryptRequest, + com.google.cloud.kms.v1.AsymmetricDecryptResponse>( + this, METHODID_ASYMMETRIC_DECRYPT))) .addMethod( - getMacSignMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.MacSignRequest, - com.google.cloud.kms.v1.MacSignResponse>(this, METHODID_MAC_SIGN))) + getMacSignMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.MacSignRequest, + com.google.cloud.kms.v1.MacSignResponse>( + this, METHODID_MAC_SIGN))) .addMethod( - getMacVerifyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.MacVerifyRequest, - com.google.cloud.kms.v1.MacVerifyResponse>(this, METHODID_MAC_VERIFY))) + getMacVerifyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.MacVerifyRequest, + com.google.cloud.kms.v1.MacVerifyResponse>( + this, METHODID_MAC_VERIFY))) .addMethod( - getGenerateRandomBytesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.kms.v1.GenerateRandomBytesRequest, - com.google.cloud.kms.v1.GenerateRandomBytesResponse>( - this, METHODID_GENERATE_RANDOM_BYTES))) + getGenerateRandomBytesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.GenerateRandomBytesRequest, + com.google.cloud.kms.v1.GenerateRandomBytesResponse>( + this, METHODID_GENERATE_RANDOM_BYTES))) .build(); } } /** - * - * *
    * Google Cloud Key Management Service
    * Manages cryptographic keys and operations using those keys. Implements a REST
@@ -1935,9 +1437,9 @@ public final io.grpc.ServerServiceDefinition bindService() {
    * [Using gRPC with Cloud KMS](https://cloud.google.com/kms/docs/grpc).
    * 
*/ - public static final class KeyManagementServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private KeyManagementServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class KeyManagementServiceStub extends io.grpc.stub.AbstractAsyncStub { + private KeyManagementServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1948,125 +1450,86 @@ protected KeyManagementServiceStub build( } /** - * - * *
      * Lists [KeyRings][google.cloud.kms.v1.KeyRing].
      * 
*/ - public void listKeyRings( - com.google.cloud.kms.v1.ListKeyRingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listKeyRings(com.google.cloud.kms.v1.ListKeyRingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListKeyRingsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListKeyRingsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists [CryptoKeys][google.cloud.kms.v1.CryptoKey].
      * 
*/ - public void listCryptoKeys( - com.google.cloud.kms.v1.ListCryptoKeysRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listCryptoKeys(com.google.cloud.kms.v1.ListCryptoKeysRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCryptoKeysMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListCryptoKeysMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
      * 
*/ - public void listCryptoKeyVersions( - com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listCryptoKeyVersions(com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCryptoKeyVersionsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListCryptoKeyVersionsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists [ImportJobs][google.cloud.kms.v1.ImportJob].
      * 
*/ - public void listImportJobs( - com.google.cloud.kms.v1.ListImportJobsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listImportJobs(com.google.cloud.kms.v1.ListImportJobsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListImportJobsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListImportJobsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Returns metadata for a given [KeyRing][google.cloud.kms.v1.KeyRing].
      * 
*/ - public void getKeyRing( - com.google.cloud.kms.v1.GetKeyRingRequest request, + public void getKeyRing(com.google.cloud.kms.v1.GetKeyRingRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetKeyRingMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Returns metadata for a given [CryptoKey][google.cloud.kms.v1.CryptoKey], as
      * well as its [primary][google.cloud.kms.v1.CryptoKey.primary]
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
      * 
*/ - public void getCryptoKey( - com.google.cloud.kms.v1.GetCryptoKeyRequest request, + public void getCryptoKey(com.google.cloud.kms.v1.GetCryptoKeyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCryptoKeyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetCryptoKeyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Returns metadata for a given
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
      * 
*/ - public void getCryptoKeyVersion( - com.google.cloud.kms.v1.GetCryptoKeyVersionRequest request, + public void getCryptoKeyVersion(com.google.cloud.kms.v1.GetCryptoKeyVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCryptoKeyVersionMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetCryptoKeyVersionMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Returns the public key for the given
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. The
@@ -2076,51 +1539,36 @@ public void getCryptoKeyVersion(
      * [ASYMMETRIC_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_DECRYPT].
      * 
*/ - public void getPublicKey( - com.google.cloud.kms.v1.GetPublicKeyRequest request, + public void getPublicKey(com.google.cloud.kms.v1.GetPublicKeyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPublicKeyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetPublicKeyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Returns metadata for a given [ImportJob][google.cloud.kms.v1.ImportJob].
      * 
*/ - public void getImportJob( - com.google.cloud.kms.v1.GetImportJobRequest request, + public void getImportJob(com.google.cloud.kms.v1.GetImportJobRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetImportJobMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetImportJobMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Create a new [KeyRing][google.cloud.kms.v1.KeyRing] in a given Project and
      * Location.
      * 
*/ - public void createKeyRing( - com.google.cloud.kms.v1.CreateKeyRingRequest request, + public void createKeyRing(com.google.cloud.kms.v1.CreateKeyRingRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateKeyRingMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateKeyRingMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Create a new [CryptoKey][google.cloud.kms.v1.CryptoKey] within a
      * [KeyRing][google.cloud.kms.v1.KeyRing].
@@ -2129,18 +1577,13 @@ public void createKeyRing(
      * are required.
      * 
*/ - public void createCryptoKey( - com.google.cloud.kms.v1.CreateCryptoKeyRequest request, + public void createCryptoKey(com.google.cloud.kms.v1.CreateCryptoKeyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCryptoKeyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateCryptoKeyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Create a new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in a
      * [CryptoKey][google.cloud.kms.v1.CryptoKey].
@@ -2149,18 +1592,13 @@ public void createCryptoKey(
      * [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED].
      * 
*/ - public void createCryptoKeyVersion( - com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest request, + public void createCryptoKeyVersion(com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCryptoKeyVersionMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateCryptoKeyVersionMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Import wrapped key material into a
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
@@ -2171,18 +1609,13 @@ public void createCryptoKeyVersion(
      * next sequential id within the [CryptoKey][google.cloud.kms.v1.CryptoKey].
      * 
*/ - public void importCryptoKeyVersion( - com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest request, + public void importCryptoKeyVersion(com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportCryptoKeyVersionMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getImportCryptoKeyVersionMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Create a new [ImportJob][google.cloud.kms.v1.ImportJob] within a
      * [KeyRing][google.cloud.kms.v1.KeyRing].
@@ -2190,34 +1623,24 @@ public void importCryptoKeyVersion(
      * required.
      * 
*/ - public void createImportJob( - com.google.cloud.kms.v1.CreateImportJobRequest request, + public void createImportJob(com.google.cloud.kms.v1.CreateImportJobRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateImportJobMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateImportJobMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Update a [CryptoKey][google.cloud.kms.v1.CryptoKey].
      * 
*/ - public void updateCryptoKey( - com.google.cloud.kms.v1.UpdateCryptoKeyRequest request, + public void updateCryptoKey(com.google.cloud.kms.v1.UpdateCryptoKeyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCryptoKeyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateCryptoKeyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Update a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s
      * metadata.
@@ -2232,18 +1655,13 @@ public void updateCryptoKey(
      * to move between other states.
      * 
*/ - public void updateCryptoKeyVersion( - com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest request, + public void updateCryptoKeyVersion(com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCryptoKeyVersionMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateCryptoKeyVersionMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that
      * will be used in
@@ -2252,18 +1670,13 @@ public void updateCryptoKeyVersion(
      * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
      * 
*/ - public void updateCryptoKeyPrimaryVersion( - com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest request, + public void updateCryptoKeyPrimaryVersion(com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCryptoKeyPrimaryVersionMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateCryptoKeyPrimaryVersionMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Schedule a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] for
      * destruction.
@@ -2286,18 +1699,13 @@ public void updateCryptoKeyPrimaryVersion(
      * may be called to reverse the process.
      * 
*/ - public void destroyCryptoKeyVersion( - com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest request, + public void destroyCryptoKeyVersion(com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDestroyCryptoKeyVersionMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDestroyCryptoKeyVersionMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Restore a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the
      * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]
@@ -2309,18 +1717,13 @@ public void destroyCryptoKeyVersion(
      * be cleared.
      * 
*/ - public void restoreCryptoKeyVersion( - com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest request, + public void restoreCryptoKeyVersion(com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRestoreCryptoKeyVersionMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getRestoreCryptoKeyVersionMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Encrypts data, so that it can only be recovered by a call to
      * [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt]. The
@@ -2328,16 +1731,13 @@ public void restoreCryptoKeyVersion(
      * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
      * 
*/ - public void encrypt( - com.google.cloud.kms.v1.EncryptRequest request, + public void encrypt(com.google.cloud.kms.v1.EncryptRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getEncryptMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Decrypts data that was protected by
      * [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. The
@@ -2345,16 +1745,13 @@ public void encrypt(
      * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
      * 
*/ - public void decrypt( - com.google.cloud.kms.v1.DecryptRequest request, + public void decrypt(com.google.cloud.kms.v1.DecryptRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDecryptMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Signs data using a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
      * with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose]
@@ -2363,19 +1760,13 @@ public void decrypt(
      * [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
      * 
*/ - public void asymmetricSign( - com.google.cloud.kms.v1.AsymmetricSignRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void asymmetricSign(com.google.cloud.kms.v1.AsymmetricSignRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAsymmetricSignMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getAsymmetricSignMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Decrypts data that was encrypted with a public key retrieved from
      * [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey]
@@ -2384,35 +1775,26 @@ public void asymmetricSign(
      * ASYMMETRIC_DECRYPT.
      * 
*/ - public void asymmetricDecrypt( - com.google.cloud.kms.v1.AsymmetricDecryptRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void asymmetricDecrypt(com.google.cloud.kms.v1.AsymmetricDecryptRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAsymmetricDecryptMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getAsymmetricDecryptMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Signs data using a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
      * with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] MAC,
      * producing a tag that can be verified by another source with the same key.
      * 
*/ - public void macSign( - com.google.cloud.kms.v1.MacSignRequest request, + public void macSign(com.google.cloud.kms.v1.MacSignRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getMacSignMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Verifies MAC tag using a
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
@@ -2420,35 +1802,26 @@ public void macSign(
      * a response that indicates whether or not the verification was successful.
      * 
*/ - public void macVerify( - com.google.cloud.kms.v1.MacVerifyRequest request, + public void macVerify(com.google.cloud.kms.v1.MacVerifyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getMacVerifyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Generate random bytes using the Cloud KMS randomness source in the provided
      * location.
      * 
*/ - public void generateRandomBytes( - com.google.cloud.kms.v1.GenerateRandomBytesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void generateRandomBytes(com.google.cloud.kms.v1.GenerateRandomBytesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateRandomBytesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGenerateRandomBytesMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * Google Cloud Key Management Service
    * Manages cryptographic keys and operations using those keys. Implements a REST
@@ -2461,8 +1834,7 @@ public void generateRandomBytes(
    * [Using gRPC with Cloud KMS](https://cloud.google.com/kms/docs/grpc).
    * 
*/ - public static final class KeyManagementServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { + public static final class KeyManagementServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private KeyManagementServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -2475,102 +1847,79 @@ protected KeyManagementServiceBlockingStub build( } /** - * - * *
      * Lists [KeyRings][google.cloud.kms.v1.KeyRing].
      * 
*/ - public com.google.cloud.kms.v1.ListKeyRingsResponse listKeyRings( - com.google.cloud.kms.v1.ListKeyRingsRequest request) { + public com.google.cloud.kms.v1.ListKeyRingsResponse listKeyRings(com.google.cloud.kms.v1.ListKeyRingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListKeyRingsMethod(), getCallOptions(), request); } /** - * - * *
      * Lists [CryptoKeys][google.cloud.kms.v1.CryptoKey].
      * 
*/ - public com.google.cloud.kms.v1.ListCryptoKeysResponse listCryptoKeys( - com.google.cloud.kms.v1.ListCryptoKeysRequest request) { + public com.google.cloud.kms.v1.ListCryptoKeysResponse listCryptoKeys(com.google.cloud.kms.v1.ListCryptoKeysRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListCryptoKeysMethod(), getCallOptions(), request); } /** - * - * *
      * Lists [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
      * 
*/ - public com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse listCryptoKeyVersions( - com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest request) { + public com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse listCryptoKeyVersions(com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListCryptoKeyVersionsMethod(), getCallOptions(), request); } /** - * - * *
      * Lists [ImportJobs][google.cloud.kms.v1.ImportJob].
      * 
*/ - public com.google.cloud.kms.v1.ListImportJobsResponse listImportJobs( - com.google.cloud.kms.v1.ListImportJobsRequest request) { + public com.google.cloud.kms.v1.ListImportJobsResponse listImportJobs(com.google.cloud.kms.v1.ListImportJobsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListImportJobsMethod(), getCallOptions(), request); } /** - * - * *
      * Returns metadata for a given [KeyRing][google.cloud.kms.v1.KeyRing].
      * 
*/ - public com.google.cloud.kms.v1.KeyRing getKeyRing( - com.google.cloud.kms.v1.GetKeyRingRequest request) { + public com.google.cloud.kms.v1.KeyRing getKeyRing(com.google.cloud.kms.v1.GetKeyRingRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetKeyRingMethod(), getCallOptions(), request); } /** - * - * *
      * Returns metadata for a given [CryptoKey][google.cloud.kms.v1.CryptoKey], as
      * well as its [primary][google.cloud.kms.v1.CryptoKey.primary]
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
      * 
*/ - public com.google.cloud.kms.v1.CryptoKey getCryptoKey( - com.google.cloud.kms.v1.GetCryptoKeyRequest request) { + public com.google.cloud.kms.v1.CryptoKey getCryptoKey(com.google.cloud.kms.v1.GetCryptoKeyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetCryptoKeyMethod(), getCallOptions(), request); } /** - * - * *
      * Returns metadata for a given
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
      * 
*/ - public com.google.cloud.kms.v1.CryptoKeyVersion getCryptoKeyVersion( - com.google.cloud.kms.v1.GetCryptoKeyVersionRequest request) { + public com.google.cloud.kms.v1.CryptoKeyVersion getCryptoKeyVersion(com.google.cloud.kms.v1.GetCryptoKeyVersionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetCryptoKeyVersionMethod(), getCallOptions(), request); } /** - * - * *
      * Returns the public key for the given
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. The
@@ -2580,42 +1929,33 @@ public com.google.cloud.kms.v1.CryptoKeyVersion getCryptoKeyVersion(
      * [ASYMMETRIC_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_DECRYPT].
      * 
*/ - public com.google.cloud.kms.v1.PublicKey getPublicKey( - com.google.cloud.kms.v1.GetPublicKeyRequest request) { + public com.google.cloud.kms.v1.PublicKey getPublicKey(com.google.cloud.kms.v1.GetPublicKeyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetPublicKeyMethod(), getCallOptions(), request); } /** - * - * *
      * Returns metadata for a given [ImportJob][google.cloud.kms.v1.ImportJob].
      * 
*/ - public com.google.cloud.kms.v1.ImportJob getImportJob( - com.google.cloud.kms.v1.GetImportJobRequest request) { + public com.google.cloud.kms.v1.ImportJob getImportJob(com.google.cloud.kms.v1.GetImportJobRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetImportJobMethod(), getCallOptions(), request); } /** - * - * *
      * Create a new [KeyRing][google.cloud.kms.v1.KeyRing] in a given Project and
      * Location.
      * 
*/ - public com.google.cloud.kms.v1.KeyRing createKeyRing( - com.google.cloud.kms.v1.CreateKeyRingRequest request) { + public com.google.cloud.kms.v1.KeyRing createKeyRing(com.google.cloud.kms.v1.CreateKeyRingRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateKeyRingMethod(), getCallOptions(), request); } /** - * - * *
      * Create a new [CryptoKey][google.cloud.kms.v1.CryptoKey] within a
      * [KeyRing][google.cloud.kms.v1.KeyRing].
@@ -2624,15 +1964,12 @@ public com.google.cloud.kms.v1.KeyRing createKeyRing(
      * are required.
      * 
*/ - public com.google.cloud.kms.v1.CryptoKey createCryptoKey( - com.google.cloud.kms.v1.CreateCryptoKeyRequest request) { + public com.google.cloud.kms.v1.CryptoKey createCryptoKey(com.google.cloud.kms.v1.CreateCryptoKeyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateCryptoKeyMethod(), getCallOptions(), request); } /** - * - * *
      * Create a new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in a
      * [CryptoKey][google.cloud.kms.v1.CryptoKey].
@@ -2641,15 +1978,12 @@ public com.google.cloud.kms.v1.CryptoKey createCryptoKey(
      * [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED].
      * 
*/ - public com.google.cloud.kms.v1.CryptoKeyVersion createCryptoKeyVersion( - com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest request) { + public com.google.cloud.kms.v1.CryptoKeyVersion createCryptoKeyVersion(com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateCryptoKeyVersionMethod(), getCallOptions(), request); } /** - * - * *
      * Import wrapped key material into a
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
@@ -2660,15 +1994,12 @@ public com.google.cloud.kms.v1.CryptoKeyVersion createCryptoKeyVersion(
      * next sequential id within the [CryptoKey][google.cloud.kms.v1.CryptoKey].
      * 
*/ - public com.google.cloud.kms.v1.CryptoKeyVersion importCryptoKeyVersion( - com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest request) { + public com.google.cloud.kms.v1.CryptoKeyVersion importCryptoKeyVersion(com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getImportCryptoKeyVersionMethod(), getCallOptions(), request); } /** - * - * *
      * Create a new [ImportJob][google.cloud.kms.v1.ImportJob] within a
      * [KeyRing][google.cloud.kms.v1.KeyRing].
@@ -2676,28 +2007,22 @@ public com.google.cloud.kms.v1.CryptoKeyVersion importCryptoKeyVersion(
      * required.
      * 
*/ - public com.google.cloud.kms.v1.ImportJob createImportJob( - com.google.cloud.kms.v1.CreateImportJobRequest request) { + public com.google.cloud.kms.v1.ImportJob createImportJob(com.google.cloud.kms.v1.CreateImportJobRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateImportJobMethod(), getCallOptions(), request); } /** - * - * *
      * Update a [CryptoKey][google.cloud.kms.v1.CryptoKey].
      * 
*/ - public com.google.cloud.kms.v1.CryptoKey updateCryptoKey( - com.google.cloud.kms.v1.UpdateCryptoKeyRequest request) { + public com.google.cloud.kms.v1.CryptoKey updateCryptoKey(com.google.cloud.kms.v1.UpdateCryptoKeyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateCryptoKeyMethod(), getCallOptions(), request); } /** - * - * *
      * Update a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s
      * metadata.
@@ -2712,15 +2037,12 @@ public com.google.cloud.kms.v1.CryptoKey updateCryptoKey(
      * to move between other states.
      * 
*/ - public com.google.cloud.kms.v1.CryptoKeyVersion updateCryptoKeyVersion( - com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest request) { + public com.google.cloud.kms.v1.CryptoKeyVersion updateCryptoKeyVersion(com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateCryptoKeyVersionMethod(), getCallOptions(), request); } /** - * - * *
      * Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that
      * will be used in
@@ -2729,15 +2051,12 @@ public com.google.cloud.kms.v1.CryptoKeyVersion updateCryptoKeyVersion(
      * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
      * 
*/ - public com.google.cloud.kms.v1.CryptoKey updateCryptoKeyPrimaryVersion( - com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest request) { + public com.google.cloud.kms.v1.CryptoKey updateCryptoKeyPrimaryVersion(com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateCryptoKeyPrimaryVersionMethod(), getCallOptions(), request); } /** - * - * *
      * Schedule a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] for
      * destruction.
@@ -2760,15 +2079,12 @@ public com.google.cloud.kms.v1.CryptoKey updateCryptoKeyPrimaryVersion(
      * may be called to reverse the process.
      * 
*/ - public com.google.cloud.kms.v1.CryptoKeyVersion destroyCryptoKeyVersion( - com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest request) { + public com.google.cloud.kms.v1.CryptoKeyVersion destroyCryptoKeyVersion(com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDestroyCryptoKeyVersionMethod(), getCallOptions(), request); } /** - * - * *
      * Restore a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the
      * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]
@@ -2780,15 +2096,12 @@ public com.google.cloud.kms.v1.CryptoKeyVersion destroyCryptoKeyVersion(
      * be cleared.
      * 
*/ - public com.google.cloud.kms.v1.CryptoKeyVersion restoreCryptoKeyVersion( - com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest request) { + public com.google.cloud.kms.v1.CryptoKeyVersion restoreCryptoKeyVersion(com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRestoreCryptoKeyVersionMethod(), getCallOptions(), request); } /** - * - * *
      * Encrypts data, so that it can only be recovered by a call to
      * [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt]. The
@@ -2796,15 +2109,12 @@ public com.google.cloud.kms.v1.CryptoKeyVersion restoreCryptoKeyVersion(
      * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
      * 
*/ - public com.google.cloud.kms.v1.EncryptResponse encrypt( - com.google.cloud.kms.v1.EncryptRequest request) { + public com.google.cloud.kms.v1.EncryptResponse encrypt(com.google.cloud.kms.v1.EncryptRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getEncryptMethod(), getCallOptions(), request); } /** - * - * *
      * Decrypts data that was protected by
      * [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. The
@@ -2812,15 +2122,12 @@ public com.google.cloud.kms.v1.EncryptResponse encrypt(
      * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
      * 
*/ - public com.google.cloud.kms.v1.DecryptResponse decrypt( - com.google.cloud.kms.v1.DecryptRequest request) { + public com.google.cloud.kms.v1.DecryptResponse decrypt(com.google.cloud.kms.v1.DecryptRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDecryptMethod(), getCallOptions(), request); } /** - * - * *
      * Signs data using a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
      * with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose]
@@ -2829,15 +2136,12 @@ public com.google.cloud.kms.v1.DecryptResponse decrypt(
      * [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
      * 
*/ - public com.google.cloud.kms.v1.AsymmetricSignResponse asymmetricSign( - com.google.cloud.kms.v1.AsymmetricSignRequest request) { + public com.google.cloud.kms.v1.AsymmetricSignResponse asymmetricSign(com.google.cloud.kms.v1.AsymmetricSignRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAsymmetricSignMethod(), getCallOptions(), request); } /** - * - * *
      * Decrypts data that was encrypted with a public key retrieved from
      * [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey]
@@ -2846,30 +2150,24 @@ public com.google.cloud.kms.v1.AsymmetricSignResponse asymmetricSign(
      * ASYMMETRIC_DECRYPT.
      * 
*/ - public com.google.cloud.kms.v1.AsymmetricDecryptResponse asymmetricDecrypt( - com.google.cloud.kms.v1.AsymmetricDecryptRequest request) { + public com.google.cloud.kms.v1.AsymmetricDecryptResponse asymmetricDecrypt(com.google.cloud.kms.v1.AsymmetricDecryptRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAsymmetricDecryptMethod(), getCallOptions(), request); } /** - * - * *
      * Signs data using a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
      * with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] MAC,
      * producing a tag that can be verified by another source with the same key.
      * 
*/ - public com.google.cloud.kms.v1.MacSignResponse macSign( - com.google.cloud.kms.v1.MacSignRequest request) { + public com.google.cloud.kms.v1.MacSignResponse macSign(com.google.cloud.kms.v1.MacSignRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getMacSignMethod(), getCallOptions(), request); } /** - * - * *
      * Verifies MAC tag using a
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
@@ -2877,30 +2175,24 @@ public com.google.cloud.kms.v1.MacSignResponse macSign(
      * a response that indicates whether or not the verification was successful.
      * 
*/ - public com.google.cloud.kms.v1.MacVerifyResponse macVerify( - com.google.cloud.kms.v1.MacVerifyRequest request) { + public com.google.cloud.kms.v1.MacVerifyResponse macVerify(com.google.cloud.kms.v1.MacVerifyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getMacVerifyMethod(), getCallOptions(), request); } /** - * - * *
      * Generate random bytes using the Cloud KMS randomness source in the provided
      * location.
      * 
*/ - public com.google.cloud.kms.v1.GenerateRandomBytesResponse generateRandomBytes( - com.google.cloud.kms.v1.GenerateRandomBytesRequest request) { + public com.google.cloud.kms.v1.GenerateRandomBytesResponse generateRandomBytes(com.google.cloud.kms.v1.GenerateRandomBytesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGenerateRandomBytesMethod(), getCallOptions(), request); } } /** - * - * *
    * Google Cloud Key Management Service
    * Manages cryptographic keys and operations using those keys. Implements a REST
@@ -2913,8 +2205,7 @@ public com.google.cloud.kms.v1.GenerateRandomBytesResponse generateRandomBytes(
    * [Using gRPC with Cloud KMS](https://cloud.google.com/kms/docs/grpc).
    * 
*/ - public static final class KeyManagementServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { + public static final class KeyManagementServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private KeyManagementServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -2927,107 +2218,86 @@ protected KeyManagementServiceFutureStub build( } /** - * - * *
      * Lists [KeyRings][google.cloud.kms.v1.KeyRing].
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.kms.v1.ListKeyRingsResponse> - listKeyRings(com.google.cloud.kms.v1.ListKeyRingsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listKeyRings( + com.google.cloud.kms.v1.ListKeyRingsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListKeyRingsMethod(), getCallOptions()), request); } /** - * - * *
      * Lists [CryptoKeys][google.cloud.kms.v1.CryptoKey].
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.kms.v1.ListCryptoKeysResponse> - listCryptoKeys(com.google.cloud.kms.v1.ListCryptoKeysRequest request) { + public com.google.common.util.concurrent.ListenableFuture listCryptoKeys( + com.google.cloud.kms.v1.ListCryptoKeysRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListCryptoKeysMethod(), getCallOptions()), request); } /** - * - * *
      * Lists [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse> - listCryptoKeyVersions(com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listCryptoKeyVersions( + com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListCryptoKeyVersionsMethod(), getCallOptions()), request); } /** - * - * *
      * Lists [ImportJobs][google.cloud.kms.v1.ImportJob].
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.kms.v1.ListImportJobsResponse> - listImportJobs(com.google.cloud.kms.v1.ListImportJobsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listImportJobs( + com.google.cloud.kms.v1.ListImportJobsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListImportJobsMethod(), getCallOptions()), request); } /** - * - * *
      * Returns metadata for a given [KeyRing][google.cloud.kms.v1.KeyRing].
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getKeyRing(com.google.cloud.kms.v1.GetKeyRingRequest request) { + public com.google.common.util.concurrent.ListenableFuture getKeyRing( + com.google.cloud.kms.v1.GetKeyRingRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetKeyRingMethod(), getCallOptions()), request); } /** - * - * *
      * Returns metadata for a given [CryptoKey][google.cloud.kms.v1.CryptoKey], as
      * well as its [primary][google.cloud.kms.v1.CryptoKey.primary]
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getCryptoKey(com.google.cloud.kms.v1.GetCryptoKeyRequest request) { + public com.google.common.util.concurrent.ListenableFuture getCryptoKey( + com.google.cloud.kms.v1.GetCryptoKeyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetCryptoKeyMethod(), getCallOptions()), request); } /** - * - * *
      * Returns metadata for a given
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.kms.v1.CryptoKeyVersion> - getCryptoKeyVersion(com.google.cloud.kms.v1.GetCryptoKeyVersionRequest request) { + public com.google.common.util.concurrent.ListenableFuture getCryptoKeyVersion( + com.google.cloud.kms.v1.GetCryptoKeyVersionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetCryptoKeyVersionMethod(), getCallOptions()), request); } /** - * - * *
      * Returns the public key for the given
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. The
@@ -3037,42 +2307,36 @@ protected KeyManagementServiceFutureStub build(
      * [ASYMMETRIC_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_DECRYPT].
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getPublicKey(com.google.cloud.kms.v1.GetPublicKeyRequest request) { + public com.google.common.util.concurrent.ListenableFuture getPublicKey( + com.google.cloud.kms.v1.GetPublicKeyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetPublicKeyMethod(), getCallOptions()), request); } /** - * - * *
      * Returns metadata for a given [ImportJob][google.cloud.kms.v1.ImportJob].
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getImportJob(com.google.cloud.kms.v1.GetImportJobRequest request) { + public com.google.common.util.concurrent.ListenableFuture getImportJob( + com.google.cloud.kms.v1.GetImportJobRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetImportJobMethod(), getCallOptions()), request); } /** - * - * *
      * Create a new [KeyRing][google.cloud.kms.v1.KeyRing] in a given Project and
      * Location.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - createKeyRing(com.google.cloud.kms.v1.CreateKeyRingRequest request) { + public com.google.common.util.concurrent.ListenableFuture createKeyRing( + com.google.cloud.kms.v1.CreateKeyRingRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateKeyRingMethod(), getCallOptions()), request); } /** - * - * *
      * Create a new [CryptoKey][google.cloud.kms.v1.CryptoKey] within a
      * [KeyRing][google.cloud.kms.v1.KeyRing].
@@ -3081,15 +2345,13 @@ protected KeyManagementServiceFutureStub build(
      * are required.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - createCryptoKey(com.google.cloud.kms.v1.CreateCryptoKeyRequest request) { + public com.google.common.util.concurrent.ListenableFuture createCryptoKey( + com.google.cloud.kms.v1.CreateCryptoKeyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateCryptoKeyMethod(), getCallOptions()), request); } /** - * - * *
      * Create a new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in a
      * [CryptoKey][google.cloud.kms.v1.CryptoKey].
@@ -3098,16 +2360,13 @@ protected KeyManagementServiceFutureStub build(
      * [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED].
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.kms.v1.CryptoKeyVersion> - createCryptoKeyVersion(com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest request) { + public com.google.common.util.concurrent.ListenableFuture createCryptoKeyVersion( + com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateCryptoKeyVersionMethod(), getCallOptions()), request); } /** - * - * *
      * Import wrapped key material into a
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
@@ -3118,16 +2377,13 @@ protected KeyManagementServiceFutureStub build(
      * next sequential id within the [CryptoKey][google.cloud.kms.v1.CryptoKey].
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.kms.v1.CryptoKeyVersion> - importCryptoKeyVersion(com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest request) { + public com.google.common.util.concurrent.ListenableFuture importCryptoKeyVersion( + com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getImportCryptoKeyVersionMethod(), getCallOptions()), request); } /** - * - * *
      * Create a new [ImportJob][google.cloud.kms.v1.ImportJob] within a
      * [KeyRing][google.cloud.kms.v1.KeyRing].
@@ -3135,28 +2391,24 @@ protected KeyManagementServiceFutureStub build(
      * required.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - createImportJob(com.google.cloud.kms.v1.CreateImportJobRequest request) { + public com.google.common.util.concurrent.ListenableFuture createImportJob( + com.google.cloud.kms.v1.CreateImportJobRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateImportJobMethod(), getCallOptions()), request); } /** - * - * *
      * Update a [CryptoKey][google.cloud.kms.v1.CryptoKey].
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - updateCryptoKey(com.google.cloud.kms.v1.UpdateCryptoKeyRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateCryptoKey( + com.google.cloud.kms.v1.UpdateCryptoKeyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateCryptoKeyMethod(), getCallOptions()), request); } /** - * - * *
      * Update a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s
      * metadata.
@@ -3171,16 +2423,13 @@ protected KeyManagementServiceFutureStub build(
      * to move between other states.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.kms.v1.CryptoKeyVersion> - updateCryptoKeyVersion(com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateCryptoKeyVersion( + com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateCryptoKeyVersionMethod(), getCallOptions()), request); } /** - * - * *
      * Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that
      * will be used in
@@ -3189,17 +2438,13 @@ protected KeyManagementServiceFutureStub build(
      * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - updateCryptoKeyPrimaryVersion( - com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateCryptoKeyPrimaryVersion( + com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCryptoKeyPrimaryVersionMethod(), getCallOptions()), - request); + getChannel().newCall(getUpdateCryptoKeyPrimaryVersionMethod(), getCallOptions()), request); } /** - * - * *
      * Schedule a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] for
      * destruction.
@@ -3222,16 +2467,13 @@ protected KeyManagementServiceFutureStub build(
      * may be called to reverse the process.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.kms.v1.CryptoKeyVersion> - destroyCryptoKeyVersion(com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest request) { + public com.google.common.util.concurrent.ListenableFuture destroyCryptoKeyVersion( + com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDestroyCryptoKeyVersionMethod(), getCallOptions()), request); } /** - * - * *
      * Restore a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the
      * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]
@@ -3243,16 +2485,13 @@ protected KeyManagementServiceFutureStub build(
      * be cleared.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.kms.v1.CryptoKeyVersion> - restoreCryptoKeyVersion(com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest request) { + public com.google.common.util.concurrent.ListenableFuture restoreCryptoKeyVersion( + com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRestoreCryptoKeyVersionMethod(), getCallOptions()), request); } /** - * - * *
      * Encrypts data, so that it can only be recovered by a call to
      * [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt]. The
@@ -3260,16 +2499,13 @@ protected KeyManagementServiceFutureStub build(
      * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.kms.v1.EncryptResponse> - encrypt(com.google.cloud.kms.v1.EncryptRequest request) { + public com.google.common.util.concurrent.ListenableFuture encrypt( + com.google.cloud.kms.v1.EncryptRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getEncryptMethod(), getCallOptions()), request); } /** - * - * *
      * Decrypts data that was protected by
      * [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. The
@@ -3277,16 +2513,13 @@ protected KeyManagementServiceFutureStub build(
      * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.kms.v1.DecryptResponse> - decrypt(com.google.cloud.kms.v1.DecryptRequest request) { + public com.google.common.util.concurrent.ListenableFuture decrypt( + com.google.cloud.kms.v1.DecryptRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDecryptMethod(), getCallOptions()), request); } /** - * - * *
      * Signs data using a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
      * with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose]
@@ -3295,16 +2528,13 @@ protected KeyManagementServiceFutureStub build(
      * [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.kms.v1.AsymmetricSignResponse> - asymmetricSign(com.google.cloud.kms.v1.AsymmetricSignRequest request) { + public com.google.common.util.concurrent.ListenableFuture asymmetricSign( + com.google.cloud.kms.v1.AsymmetricSignRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getAsymmetricSignMethod(), getCallOptions()), request); } /** - * - * *
      * Decrypts data that was encrypted with a public key retrieved from
      * [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey]
@@ -3313,32 +2543,26 @@ protected KeyManagementServiceFutureStub build(
      * ASYMMETRIC_DECRYPT.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.kms.v1.AsymmetricDecryptResponse> - asymmetricDecrypt(com.google.cloud.kms.v1.AsymmetricDecryptRequest request) { + public com.google.common.util.concurrent.ListenableFuture asymmetricDecrypt( + com.google.cloud.kms.v1.AsymmetricDecryptRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getAsymmetricDecryptMethod(), getCallOptions()), request); } /** - * - * *
      * Signs data using a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
      * with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] MAC,
      * producing a tag that can be verified by another source with the same key.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.kms.v1.MacSignResponse> - macSign(com.google.cloud.kms.v1.MacSignRequest request) { + public com.google.common.util.concurrent.ListenableFuture macSign( + com.google.cloud.kms.v1.MacSignRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getMacSignMethod(), getCallOptions()), request); } /** - * - * *
      * Verifies MAC tag using a
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
@@ -3346,24 +2570,20 @@ protected KeyManagementServiceFutureStub build(
      * a response that indicates whether or not the verification was successful.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.kms.v1.MacVerifyResponse> - macVerify(com.google.cloud.kms.v1.MacVerifyRequest request) { + public com.google.common.util.concurrent.ListenableFuture macVerify( + com.google.cloud.kms.v1.MacVerifyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getMacVerifyMethod(), getCallOptions()), request); } /** - * - * *
      * Generate random bytes using the Cloud KMS randomness source in the provided
      * location.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.kms.v1.GenerateRandomBytesResponse> - generateRandomBytes(com.google.cloud.kms.v1.GenerateRandomBytesRequest request) { + public com.google.common.util.concurrent.ListenableFuture generateRandomBytes( + com.google.cloud.kms.v1.GenerateRandomBytesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGenerateRandomBytesMethod(), getCallOptions()), request); } @@ -3396,11 +2616,11 @@ protected KeyManagementServiceFutureStub build( private static final int METHODID_MAC_VERIFY = 24; private static final int METHODID_GENERATE_RANDOM_BYTES = 25; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final KeyManagementServiceImplBase serviceImpl; private final int methodId; @@ -3414,151 +2634,108 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_KEY_RINGS: - serviceImpl.listKeyRings( - (com.google.cloud.kms.v1.ListKeyRingsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listKeyRings((com.google.cloud.kms.v1.ListKeyRingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_CRYPTO_KEYS: - serviceImpl.listCryptoKeys( - (com.google.cloud.kms.v1.ListCryptoKeysRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listCryptoKeys((com.google.cloud.kms.v1.ListCryptoKeysRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_CRYPTO_KEY_VERSIONS: - serviceImpl.listCryptoKeyVersions( - (com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listCryptoKeyVersions((com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_IMPORT_JOBS: - serviceImpl.listImportJobs( - (com.google.cloud.kms.v1.ListImportJobsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listImportJobs((com.google.cloud.kms.v1.ListImportJobsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_KEY_RING: - serviceImpl.getKeyRing( - (com.google.cloud.kms.v1.GetKeyRingRequest) request, + serviceImpl.getKeyRing((com.google.cloud.kms.v1.GetKeyRingRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_CRYPTO_KEY: - serviceImpl.getCryptoKey( - (com.google.cloud.kms.v1.GetCryptoKeyRequest) request, + serviceImpl.getCryptoKey((com.google.cloud.kms.v1.GetCryptoKeyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_CRYPTO_KEY_VERSION: - serviceImpl.getCryptoKeyVersion( - (com.google.cloud.kms.v1.GetCryptoKeyVersionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getCryptoKeyVersion((com.google.cloud.kms.v1.GetCryptoKeyVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_PUBLIC_KEY: - serviceImpl.getPublicKey( - (com.google.cloud.kms.v1.GetPublicKeyRequest) request, + serviceImpl.getPublicKey((com.google.cloud.kms.v1.GetPublicKeyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_IMPORT_JOB: - serviceImpl.getImportJob( - (com.google.cloud.kms.v1.GetImportJobRequest) request, + serviceImpl.getImportJob((com.google.cloud.kms.v1.GetImportJobRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_KEY_RING: - serviceImpl.createKeyRing( - (com.google.cloud.kms.v1.CreateKeyRingRequest) request, + serviceImpl.createKeyRing((com.google.cloud.kms.v1.CreateKeyRingRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_CRYPTO_KEY: - serviceImpl.createCryptoKey( - (com.google.cloud.kms.v1.CreateCryptoKeyRequest) request, + serviceImpl.createCryptoKey((com.google.cloud.kms.v1.CreateCryptoKeyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_CRYPTO_KEY_VERSION: - serviceImpl.createCryptoKeyVersion( - (com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.createCryptoKeyVersion((com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_IMPORT_CRYPTO_KEY_VERSION: - serviceImpl.importCryptoKeyVersion( - (com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.importCryptoKeyVersion((com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_IMPORT_JOB: - serviceImpl.createImportJob( - (com.google.cloud.kms.v1.CreateImportJobRequest) request, + serviceImpl.createImportJob((com.google.cloud.kms.v1.CreateImportJobRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_CRYPTO_KEY: - serviceImpl.updateCryptoKey( - (com.google.cloud.kms.v1.UpdateCryptoKeyRequest) request, + serviceImpl.updateCryptoKey((com.google.cloud.kms.v1.UpdateCryptoKeyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_CRYPTO_KEY_VERSION: - serviceImpl.updateCryptoKeyVersion( - (com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.updateCryptoKeyVersion((com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_CRYPTO_KEY_PRIMARY_VERSION: - serviceImpl.updateCryptoKeyPrimaryVersion( - (com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest) request, + serviceImpl.updateCryptoKeyPrimaryVersion((com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DESTROY_CRYPTO_KEY_VERSION: - serviceImpl.destroyCryptoKeyVersion( - (com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.destroyCryptoKeyVersion((com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_RESTORE_CRYPTO_KEY_VERSION: - serviceImpl.restoreCryptoKeyVersion( - (com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.restoreCryptoKeyVersion((com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_ENCRYPT: - serviceImpl.encrypt( - (com.google.cloud.kms.v1.EncryptRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.encrypt((com.google.cloud.kms.v1.EncryptRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DECRYPT: - serviceImpl.decrypt( - (com.google.cloud.kms.v1.DecryptRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.decrypt((com.google.cloud.kms.v1.DecryptRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_ASYMMETRIC_SIGN: - serviceImpl.asymmetricSign( - (com.google.cloud.kms.v1.AsymmetricSignRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.asymmetricSign((com.google.cloud.kms.v1.AsymmetricSignRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_ASYMMETRIC_DECRYPT: - serviceImpl.asymmetricDecrypt( - (com.google.cloud.kms.v1.AsymmetricDecryptRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.asymmetricDecrypt((com.google.cloud.kms.v1.AsymmetricDecryptRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_MAC_SIGN: - serviceImpl.macSign( - (com.google.cloud.kms.v1.MacSignRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.macSign((com.google.cloud.kms.v1.MacSignRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_MAC_VERIFY: - serviceImpl.macVerify( - (com.google.cloud.kms.v1.MacVerifyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.macVerify((com.google.cloud.kms.v1.MacVerifyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GENERATE_RANDOM_BYTES: - serviceImpl.generateRandomBytes( - (com.google.cloud.kms.v1.GenerateRandomBytesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.generateRandomBytes((com.google.cloud.kms.v1.GenerateRandomBytesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -3576,9 +2753,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class KeyManagementServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class KeyManagementServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { KeyManagementServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -3620,37 +2796,35 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (KeyManagementServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new KeyManagementServiceFileDescriptorSupplier()) - .addMethod(getListKeyRingsMethod()) - .addMethod(getListCryptoKeysMethod()) - .addMethod(getListCryptoKeyVersionsMethod()) - .addMethod(getListImportJobsMethod()) - .addMethod(getGetKeyRingMethod()) - .addMethod(getGetCryptoKeyMethod()) - .addMethod(getGetCryptoKeyVersionMethod()) - .addMethod(getGetPublicKeyMethod()) - .addMethod(getGetImportJobMethod()) - .addMethod(getCreateKeyRingMethod()) - .addMethod(getCreateCryptoKeyMethod()) - .addMethod(getCreateCryptoKeyVersionMethod()) - .addMethod(getImportCryptoKeyVersionMethod()) - .addMethod(getCreateImportJobMethod()) - .addMethod(getUpdateCryptoKeyMethod()) - .addMethod(getUpdateCryptoKeyVersionMethod()) - .addMethod(getUpdateCryptoKeyPrimaryVersionMethod()) - .addMethod(getDestroyCryptoKeyVersionMethod()) - .addMethod(getRestoreCryptoKeyVersionMethod()) - .addMethod(getEncryptMethod()) - .addMethod(getDecryptMethod()) - .addMethod(getAsymmetricSignMethod()) - .addMethod(getAsymmetricDecryptMethod()) - .addMethod(getMacSignMethod()) - .addMethod(getMacVerifyMethod()) - .addMethod(getGenerateRandomBytesMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new KeyManagementServiceFileDescriptorSupplier()) + .addMethod(getListKeyRingsMethod()) + .addMethod(getListCryptoKeysMethod()) + .addMethod(getListCryptoKeyVersionsMethod()) + .addMethod(getListImportJobsMethod()) + .addMethod(getGetKeyRingMethod()) + .addMethod(getGetCryptoKeyMethod()) + .addMethod(getGetCryptoKeyVersionMethod()) + .addMethod(getGetPublicKeyMethod()) + .addMethod(getGetImportJobMethod()) + .addMethod(getCreateKeyRingMethod()) + .addMethod(getCreateCryptoKeyMethod()) + .addMethod(getCreateCryptoKeyVersionMethod()) + .addMethod(getImportCryptoKeyVersionMethod()) + .addMethod(getCreateImportJobMethod()) + .addMethod(getUpdateCryptoKeyMethod()) + .addMethod(getUpdateCryptoKeyVersionMethod()) + .addMethod(getUpdateCryptoKeyPrimaryVersionMethod()) + .addMethod(getDestroyCryptoKeyVersionMethod()) + .addMethod(getRestoreCryptoKeyVersionMethod()) + .addMethod(getEncryptMethod()) + .addMethod(getDecryptMethod()) + .addMethod(getAsymmetricSignMethod()) + .addMethod(getAsymmetricDecryptMethod()) + .addMethod(getMacSignMethod()) + .addMethod(getMacVerifyMethod()) + .addMethod(getGenerateRandomBytesMethod()) + .build(); } } } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptRequest.java similarity index 75% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptRequest.java index cd5d5d73ae9f..7e51c64911e4 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptRequest.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for
  * [KeyManagementService.AsymmetricDecrypt][google.cloud.kms.v1.KeyManagementService.AsymmetricDecrypt].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.AsymmetricDecryptRequest}
  */
-public final class AsymmetricDecryptRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AsymmetricDecryptRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.AsymmetricDecryptRequest)
     AsymmetricDecryptRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AsymmetricDecryptRequest.newBuilder() to construct.
   private AsymmetricDecryptRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AsymmetricDecryptRequest() {
     name_ = "";
     ciphertext_ = com.google.protobuf.ByteString.EMPTY;
@@ -45,45 +27,39 @@ private AsymmetricDecryptRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AsymmetricDecryptRequest();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.AsymmetricDecryptRequest.class,
-            com.google.cloud.kms.v1.AsymmetricDecryptRequest.Builder.class);
+            com.google.cloud.kms.v1.AsymmetricDecryptRequest.class, com.google.cloud.kms.v1.AsymmetricDecryptRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
    * decryption.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -92,33 +68,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
    * decryption.
    * 
* - * - * string name = 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 { @@ -129,8 +103,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CIPHERTEXT_FIELD_NUMBER = 3; private com.google.protobuf.ByteString ciphertext_; /** - * - * *
    * Required. The data encrypted with the named
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s public key using
@@ -138,7 +110,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * bytes ciphertext = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The ciphertext. */ @java.lang.Override @@ -149,8 +120,6 @@ public com.google.protobuf.ByteString getCiphertext() { public static final int CIPHERTEXT_CRC32C_FIELD_NUMBER = 4; private com.google.protobuf.Int64Value ciphertextCrc32C_; /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext].
@@ -173,10 +142,7 @@ public com.google.protobuf.ByteString getCiphertext() {
    * this type.
    * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the ciphertextCrc32c field is set. */ @java.lang.Override @@ -184,8 +150,6 @@ public boolean hasCiphertextCrc32C() { return ciphertextCrc32C_ != null; } /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext].
@@ -208,21 +172,14 @@ public boolean hasCiphertextCrc32C() {
    * this type.
    * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The ciphertextCrc32c. */ @java.lang.Override public com.google.protobuf.Int64Value getCiphertextCrc32C() { - return ciphertextCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : ciphertextCrc32C_; + return ciphertextCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : ciphertextCrc32C_; } /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext].
@@ -245,9 +202,7 @@ public com.google.protobuf.Int64Value getCiphertextCrc32C() {
    * this type.
    * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getCiphertextCrc32COrBuilder() { @@ -255,7 +210,6 @@ public com.google.protobuf.Int64ValueOrBuilder getCiphertextCrc32COrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -290,10 +245,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!ciphertext_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, ciphertext_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, ciphertext_); } if (ciphertextCrc32C_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCiphertextCrc32C()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCiphertextCrc32C()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -303,19 +260,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.kms.v1.AsymmetricDecryptRequest)) { return super.equals(obj); } - com.google.cloud.kms.v1.AsymmetricDecryptRequest other = - (com.google.cloud.kms.v1.AsymmetricDecryptRequest) obj; + com.google.cloud.kms.v1.AsymmetricDecryptRequest other = (com.google.cloud.kms.v1.AsymmetricDecryptRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getCiphertext().equals(other.getCiphertext())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getCiphertext() + .equals(other.getCiphertext())) return false; if (hasCiphertextCrc32C() != other.hasCiphertextCrc32C()) return false; if (hasCiphertextCrc32C()) { - if (!getCiphertextCrc32C().equals(other.getCiphertextCrc32C())) return false; + if (!getCiphertextCrc32C() + .equals(other.getCiphertextCrc32C())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -341,104 +300,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.AsymmetricDecryptRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseFrom( 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.kms.v1.AsymmetricDecryptRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseFrom( - byte[] data, com.google.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.kms.v1.AsymmetricDecryptRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.AsymmetricDecryptRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.AsymmetricDecryptRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.AsymmetricDecryptRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.AsymmetricDecryptRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for
    * [KeyManagementService.AsymmetricDecrypt][google.cloud.kms.v1.KeyManagementService.AsymmetricDecrypt].
@@ -446,32 +398,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.AsymmetricDecryptRequest}
    */
-  public static final class Builder extends 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.kms.v1.AsymmetricDecryptRequest)
       com.google.cloud.kms.v1.AsymmetricDecryptRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.AsymmetricDecryptRequest.class,
-              com.google.cloud.kms.v1.AsymmetricDecryptRequest.Builder.class);
+              com.google.cloud.kms.v1.AsymmetricDecryptRequest.class, com.google.cloud.kms.v1.AsymmetricDecryptRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.AsymmetricDecryptRequest.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();
@@ -489,9 +442,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_descriptor;
     }
 
     @java.lang.Override
@@ -510,8 +463,7 @@ public com.google.cloud.kms.v1.AsymmetricDecryptRequest build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.AsymmetricDecryptRequest buildPartial() {
-      com.google.cloud.kms.v1.AsymmetricDecryptRequest result =
-          new com.google.cloud.kms.v1.AsymmetricDecryptRequest(this);
+      com.google.cloud.kms.v1.AsymmetricDecryptRequest result = new com.google.cloud.kms.v1.AsymmetricDecryptRequest(this);
       result.name_ = name_;
       result.ciphertext_ = ciphertext_;
       if (ciphertextCrc32CBuilder_ == null) {
@@ -527,39 +479,38 @@ public com.google.cloud.kms.v1.AsymmetricDecryptRequest 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.kms.v1.AsymmetricDecryptRequest) {
-        return mergeFrom((com.google.cloud.kms.v1.AsymmetricDecryptRequest) other);
+        return mergeFrom((com.google.cloud.kms.v1.AsymmetricDecryptRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -567,8 +518,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.kms.v1.AsymmetricDecryptRequest other) {
-      if (other == com.google.cloud.kms.v1.AsymmetricDecryptRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.kms.v1.AsymmetricDecryptRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -605,32 +555,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
+            case 10: {
+              name_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 10
-            case 26:
-              {
-                ciphertext_ = input.readBytes();
+              break;
+            } // case 10
+            case 26: {
+              ciphertext_ = input.readBytes();
 
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(
-                    getCiphertextCrc32CFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getCiphertextCrc32CFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              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) {
@@ -643,24 +590,20 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
      * decryption.
      * 
* - * - * string name = 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; @@ -669,25 +612,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
      * decryption.
      * 
* - * - * string name = 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 { @@ -695,73 +635,60 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
      * decryption.
      * 
* - * - * 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
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
      * decryption.
      * 
* - * - * string 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
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
      * decryption.
      * 
* - * - * 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; @@ -769,8 +696,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.ByteString ciphertext_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Required. The data encrypted with the named
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s public key using
@@ -778,7 +703,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * bytes ciphertext = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The ciphertext. */ @java.lang.Override @@ -786,8 +710,6 @@ public com.google.protobuf.ByteString getCiphertext() { return ciphertext_; } /** - * - * *
      * Required. The data encrypted with the named
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s public key using
@@ -795,22 +717,19 @@ public com.google.protobuf.ByteString getCiphertext() {
      * 
* * bytes ciphertext = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The ciphertext to set. * @return This builder for chaining. */ public Builder setCiphertext(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ciphertext_ = value; onChanged(); return this; } /** - * - * *
      * Required. The data encrypted with the named
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s public key using
@@ -818,11 +737,10 @@ public Builder setCiphertext(com.google.protobuf.ByteString value) {
      * 
* * bytes ciphertext = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearCiphertext() { - + ciphertext_ = getDefaultInstance().getCiphertext(); onChanged(); return this; @@ -830,13 +748,8 @@ public Builder clearCiphertext() { private com.google.protobuf.Int64Value ciphertextCrc32C_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> - ciphertextCrc32CBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> ciphertextCrc32CBuilder_; /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext].
@@ -859,18 +772,13 @@ public Builder clearCiphertext() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the ciphertextCrc32c field is set. */ public boolean hasCiphertextCrc32C() { return ciphertextCrc32CBuilder_ != null || ciphertextCrc32C_ != null; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext].
@@ -893,24 +801,17 @@ public boolean hasCiphertextCrc32C() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The ciphertextCrc32c. */ public com.google.protobuf.Int64Value getCiphertextCrc32C() { if (ciphertextCrc32CBuilder_ == null) { - return ciphertextCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : ciphertextCrc32C_; + return ciphertextCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : ciphertextCrc32C_; } else { return ciphertextCrc32CBuilder_.getMessage(); } } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext].
@@ -933,9 +834,7 @@ public com.google.protobuf.Int64Value getCiphertextCrc32C() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setCiphertextCrc32C(com.google.protobuf.Int64Value value) { if (ciphertextCrc32CBuilder_ == null) { @@ -951,8 +850,6 @@ public Builder setCiphertextCrc32C(com.google.protobuf.Int64Value value) { return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext].
@@ -975,11 +872,10 @@ public Builder setCiphertextCrc32C(com.google.protobuf.Int64Value value) {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setCiphertextCrc32C(com.google.protobuf.Int64Value.Builder builderForValue) { + public Builder setCiphertextCrc32C( + com.google.protobuf.Int64Value.Builder builderForValue) { if (ciphertextCrc32CBuilder_ == null) { ciphertextCrc32C_ = builderForValue.build(); onChanged(); @@ -990,8 +886,6 @@ public Builder setCiphertextCrc32C(com.google.protobuf.Int64Value.Builder builde return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext].
@@ -1014,17 +908,13 @@ public Builder setCiphertextCrc32C(com.google.protobuf.Int64Value.Builder builde
      * this type.
      * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeCiphertextCrc32C(com.google.protobuf.Int64Value value) { if (ciphertextCrc32CBuilder_ == null) { if (ciphertextCrc32C_ != null) { ciphertextCrc32C_ = - com.google.protobuf.Int64Value.newBuilder(ciphertextCrc32C_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Int64Value.newBuilder(ciphertextCrc32C_).mergeFrom(value).buildPartial(); } else { ciphertextCrc32C_ = value; } @@ -1036,8 +926,6 @@ public Builder mergeCiphertextCrc32C(com.google.protobuf.Int64Value value) { return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext].
@@ -1060,9 +948,7 @@ public Builder mergeCiphertextCrc32C(com.google.protobuf.Int64Value value) {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearCiphertextCrc32C() { if (ciphertextCrc32CBuilder_ == null) { @@ -1076,8 +962,6 @@ public Builder clearCiphertextCrc32C() { return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext].
@@ -1100,18 +984,14 @@ public Builder clearCiphertextCrc32C() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Int64Value.Builder getCiphertextCrc32CBuilder() { - + onChanged(); return getCiphertextCrc32CFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext].
@@ -1134,22 +1014,17 @@ public com.google.protobuf.Int64Value.Builder getCiphertextCrc32CBuilder() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Int64ValueOrBuilder getCiphertextCrc32COrBuilder() { if (ciphertextCrc32CBuilder_ != null) { return ciphertextCrc32CBuilder_.getMessageOrBuilder(); } else { - return ciphertextCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : ciphertextCrc32C_; + return ciphertextCrc32C_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : ciphertextCrc32C_; } } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext].
@@ -1172,29 +1047,24 @@ public com.google.protobuf.Int64ValueOrBuilder getCiphertextCrc32COrBuilder() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getCiphertextCrc32CFieldBuilder() { if (ciphertextCrc32CBuilder_ == null) { - ciphertextCrc32CBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder>( - getCiphertextCrc32C(), getParentForChildren(), isClean()); + ciphertextCrc32CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getCiphertextCrc32C(), + getParentForChildren(), + isClean()); ciphertextCrc32C_ = null; } return ciphertextCrc32CBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1204,12 +1074,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.AsymmetricDecryptRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.AsymmetricDecryptRequest) private static final com.google.cloud.kms.v1.AsymmetricDecryptRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.AsymmetricDecryptRequest(); } @@ -1218,27 +1088,27 @@ public static com.google.cloud.kms.v1.AsymmetricDecryptRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsymmetricDecryptRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsymmetricDecryptRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1253,4 +1123,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.AsymmetricDecryptRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptRequestOrBuilder.java similarity index 78% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptRequestOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptRequestOrBuilder.java index c44d9efe9674..ffab0a25b2b5 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptRequestOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptRequestOrBuilder.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/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface AsymmetricDecryptRequestOrBuilder - extends +public interface AsymmetricDecryptRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.AsymmetricDecryptRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
    * decryption.
    * 
* - * - * string name = 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
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
    * decryption.
    * 
* - * - * string name = 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 data encrypted with the named
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s public key using
@@ -66,14 +39,11 @@ public interface AsymmetricDecryptRequestOrBuilder
    * 
* * bytes ciphertext = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The ciphertext. */ com.google.protobuf.ByteString getCiphertext(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext].
@@ -96,16 +66,11 @@ public interface AsymmetricDecryptRequestOrBuilder
    * this type.
    * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the ciphertextCrc32c field is set. */ boolean hasCiphertextCrc32C(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext].
@@ -128,16 +93,11 @@ public interface AsymmetricDecryptRequestOrBuilder
    * this type.
    * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The ciphertextCrc32c. */ com.google.protobuf.Int64Value getCiphertextCrc32C(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext].
@@ -160,9 +120,7 @@ public interface AsymmetricDecryptRequestOrBuilder
    * this type.
    * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.Int64ValueOrBuilder getCiphertextCrc32COrBuilder(); } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptResponse.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptResponse.java similarity index 80% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptResponse.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptResponse.java index 28aa95f0edff..50e3cd43de06 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptResponse.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptResponse.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Response message for
  * [KeyManagementService.AsymmetricDecrypt][google.cloud.kms.v1.KeyManagementService.AsymmetricDecrypt].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.AsymmetricDecryptResponse}
  */
-public final class AsymmetricDecryptResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AsymmetricDecryptResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.AsymmetricDecryptResponse)
     AsymmetricDecryptResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AsymmetricDecryptResponse.newBuilder() to construct.
   private AsymmetricDecryptResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AsymmetricDecryptResponse() {
     plaintext_ = com.google.protobuf.ByteString.EMPTY;
     protectionLevel_ = 0;
@@ -45,41 +27,37 @@ private AsymmetricDecryptResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AsymmetricDecryptResponse();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.AsymmetricDecryptResponse.class,
-            com.google.cloud.kms.v1.AsymmetricDecryptResponse.Builder.class);
+            com.google.cloud.kms.v1.AsymmetricDecryptResponse.class, com.google.cloud.kms.v1.AsymmetricDecryptResponse.Builder.class);
   }
 
   public static final int PLAINTEXT_FIELD_NUMBER = 1;
   private com.google.protobuf.ByteString plaintext_;
   /**
-   *
-   *
    * 
    * The decrypted data originally encrypted with the matching public key.
    * 
* * bytes plaintext = 1; - * * @return The plaintext. */ @java.lang.Override @@ -90,8 +68,6 @@ public com.google.protobuf.ByteString getPlaintext() { public static final int PLAINTEXT_CRC32C_FIELD_NUMBER = 2; private com.google.protobuf.Int64Value plaintextCrc32C_; /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [AsymmetricDecryptResponse.plaintext][google.cloud.kms.v1.AsymmetricDecryptResponse.plaintext].
@@ -109,7 +85,6 @@ public com.google.protobuf.ByteString getPlaintext() {
    * 
* * .google.protobuf.Int64Value plaintext_crc32c = 2; - * * @return Whether the plaintextCrc32c field is set. */ @java.lang.Override @@ -117,8 +92,6 @@ public boolean hasPlaintextCrc32C() { return plaintextCrc32C_ != null; } /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [AsymmetricDecryptResponse.plaintext][google.cloud.kms.v1.AsymmetricDecryptResponse.plaintext].
@@ -136,18 +109,13 @@ public boolean hasPlaintextCrc32C() {
    * 
* * .google.protobuf.Int64Value plaintext_crc32c = 2; - * * @return The plaintextCrc32c. */ @java.lang.Override public com.google.protobuf.Int64Value getPlaintextCrc32C() { - return plaintextCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : plaintextCrc32C_; + return plaintextCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : plaintextCrc32C_; } /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [AsymmetricDecryptResponse.plaintext][google.cloud.kms.v1.AsymmetricDecryptResponse.plaintext].
@@ -174,8 +142,6 @@ public com.google.protobuf.Int64ValueOrBuilder getPlaintextCrc32COrBuilder() {
   public static final int VERIFIED_CIPHERTEXT_CRC32C_FIELD_NUMBER = 3;
   private boolean verifiedCiphertextCrc32C_;
   /**
-   *
-   *
    * 
    * Integrity verification field. A flag indicating whether
    * [AsymmetricDecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext_crc32c]
@@ -194,7 +160,6 @@ public com.google.protobuf.Int64ValueOrBuilder getPlaintextCrc32COrBuilder() {
    * 
* * bool verified_ciphertext_crc32c = 3; - * * @return The verifiedCiphertextCrc32c. */ @java.lang.Override @@ -205,8 +170,6 @@ public boolean getVerifiedCiphertextCrc32C() { public static final int PROTECTION_LEVEL_FIELD_NUMBER = 4; private int protectionLevel_; /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -214,16 +177,12 @@ public boolean getVerifiedCiphertextCrc32C() {
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 4; - * * @return The enum numeric value on the wire for protectionLevel. */ - @java.lang.Override - public int getProtectionLevelValue() { + @java.lang.Override public int getProtectionLevelValue() { return protectionLevel_; } /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -231,19 +190,15 @@ public int getProtectionLevelValue() {
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 4; - * * @return The protectionLevel. */ - @java.lang.Override - public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { + @java.lang.Override public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.ProtectionLevel result = - com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); + com.google.cloud.kms.v1.ProtectionLevel result = com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); return result == null ? com.google.cloud.kms.v1.ProtectionLevel.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,7 +210,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!plaintext_.isEmpty()) { output.writeBytes(1, plaintext_); } @@ -265,8 +221,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (verifiedCiphertextCrc32C_ != false) { output.writeBool(3, verifiedCiphertextCrc32C_); } - if (protectionLevel_ - != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { + if (protectionLevel_ != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(4, protectionLevel_); } getUnknownFields().writeTo(output); @@ -279,17 +234,20 @@ public int getSerializedSize() { size = 0; if (!plaintext_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, plaintext_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, plaintext_); } if (plaintextCrc32C_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPlaintextCrc32C()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPlaintextCrc32C()); } if (verifiedCiphertextCrc32C_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, verifiedCiphertextCrc32C_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, verifiedCiphertextCrc32C_); } - if (protectionLevel_ - != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, protectionLevel_); + if (protectionLevel_ != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, protectionLevel_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -299,20 +257,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.kms.v1.AsymmetricDecryptResponse)) { return super.equals(obj); } - com.google.cloud.kms.v1.AsymmetricDecryptResponse other = - (com.google.cloud.kms.v1.AsymmetricDecryptResponse) obj; + com.google.cloud.kms.v1.AsymmetricDecryptResponse other = (com.google.cloud.kms.v1.AsymmetricDecryptResponse) obj; - if (!getPlaintext().equals(other.getPlaintext())) return false; + if (!getPlaintext() + .equals(other.getPlaintext())) return false; if (hasPlaintextCrc32C() != other.hasPlaintextCrc32C()) return false; if (hasPlaintextCrc32C()) { - if (!getPlaintextCrc32C().equals(other.getPlaintextCrc32C())) return false; + if (!getPlaintextCrc32C() + .equals(other.getPlaintextCrc32C())) return false; } - if (getVerifiedCiphertextCrc32C() != other.getVerifiedCiphertextCrc32C()) return false; + if (getVerifiedCiphertextCrc32C() + != other.getVerifiedCiphertextCrc32C()) return false; if (protectionLevel_ != other.protectionLevel_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -332,7 +292,8 @@ public int hashCode() { hash = (53 * hash) + getPlaintextCrc32C().hashCode(); } hash = (37 * hash) + VERIFIED_CIPHERTEXT_CRC32C_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVerifiedCiphertextCrc32C()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getVerifiedCiphertextCrc32C()); hash = (37 * hash) + PROTECTION_LEVEL_FIELD_NUMBER; hash = (53 * hash) + protectionLevel_; hash = (29 * hash) + getUnknownFields().hashCode(); @@ -341,103 +302,96 @@ public int hashCode() { } public static com.google.cloud.kms.v1.AsymmetricDecryptResponse 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.kms.v1.AsymmetricDecryptResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.AsymmetricDecryptResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.AsymmetricDecryptResponse parseFrom( 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.kms.v1.AsymmetricDecryptResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.AsymmetricDecryptResponse parseFrom( - byte[] data, com.google.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.kms.v1.AsymmetricDecryptResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.AsymmetricDecryptResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.AsymmetricDecryptResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.AsymmetricDecryptResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.AsymmetricDecryptResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.AsymmetricDecryptResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.AsymmetricDecryptResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.AsymmetricDecryptResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.AsymmetricDecryptResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for
    * [KeyManagementService.AsymmetricDecrypt][google.cloud.kms.v1.KeyManagementService.AsymmetricDecrypt].
@@ -445,32 +399,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.AsymmetricDecryptResponse}
    */
-  public static final class Builder extends 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.kms.v1.AsymmetricDecryptResponse)
       com.google.cloud.kms.v1.AsymmetricDecryptResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.AsymmetricDecryptResponse.class,
-              com.google.cloud.kms.v1.AsymmetricDecryptResponse.Builder.class);
+              com.google.cloud.kms.v1.AsymmetricDecryptResponse.class, com.google.cloud.kms.v1.AsymmetricDecryptResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.AsymmetricDecryptResponse.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.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_descriptor;
     }
 
     @java.lang.Override
@@ -511,8 +466,7 @@ public com.google.cloud.kms.v1.AsymmetricDecryptResponse build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.AsymmetricDecryptResponse buildPartial() {
-      com.google.cloud.kms.v1.AsymmetricDecryptResponse result =
-          new com.google.cloud.kms.v1.AsymmetricDecryptResponse(this);
+      com.google.cloud.kms.v1.AsymmetricDecryptResponse result = new com.google.cloud.kms.v1.AsymmetricDecryptResponse(this);
       result.plaintext_ = plaintext_;
       if (plaintextCrc32CBuilder_ == null) {
         result.plaintextCrc32C_ = plaintextCrc32C_;
@@ -529,39 +483,38 @@ public com.google.cloud.kms.v1.AsymmetricDecryptResponse 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.kms.v1.AsymmetricDecryptResponse) {
-        return mergeFrom((com.google.cloud.kms.v1.AsymmetricDecryptResponse) other);
+        return mergeFrom((com.google.cloud.kms.v1.AsymmetricDecryptResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -569,8 +522,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.kms.v1.AsymmetricDecryptResponse other) {
-      if (other == com.google.cloud.kms.v1.AsymmetricDecryptResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.kms.v1.AsymmetricDecryptResponse.getDefaultInstance()) return this;
       if (other.getPlaintext() != com.google.protobuf.ByteString.EMPTY) {
         setPlaintext(other.getPlaintext());
       }
@@ -609,37 +561,34 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                plaintext_ = input.readBytes();
+            case 10: {
+              plaintext_ = input.readBytes();
 
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getPlaintextCrc32CFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getPlaintextCrc32CFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 18
-            case 24:
-              {
-                verifiedCiphertextCrc32C_ = input.readBool();
+              break;
+            } // case 18
+            case 24: {
+              verifiedCiphertextCrc32C_ = input.readBool();
 
-                break;
-              } // case 24
-            case 32:
-              {
-                protectionLevel_ = input.readEnum();
+              break;
+            } // case 24
+            case 32: {
+              protectionLevel_ = input.readEnum();
 
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -652,14 +601,11 @@ public Builder mergeFrom(
 
     private com.google.protobuf.ByteString plaintext_ = com.google.protobuf.ByteString.EMPTY;
     /**
-     *
-     *
      * 
      * The decrypted data originally encrypted with the matching public key.
      * 
* * bytes plaintext = 1; - * * @return The plaintext. */ @java.lang.Override @@ -667,39 +613,33 @@ public com.google.protobuf.ByteString getPlaintext() { return plaintext_; } /** - * - * *
      * The decrypted data originally encrypted with the matching public key.
      * 
* * bytes plaintext = 1; - * * @param value The plaintext to set. * @return This builder for chaining. */ public Builder setPlaintext(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + plaintext_ = value; onChanged(); return this; } /** - * - * *
      * The decrypted data originally encrypted with the matching public key.
      * 
* * bytes plaintext = 1; - * * @return This builder for chaining. */ public Builder clearPlaintext() { - + plaintext_ = getDefaultInstance().getPlaintext(); onChanged(); return this; @@ -707,13 +647,8 @@ public Builder clearPlaintext() { private com.google.protobuf.Int64Value plaintextCrc32C_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> - plaintextCrc32CBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> plaintextCrc32CBuilder_; /** - * - * *
      * Integrity verification field. A CRC32C checksum of the returned
      * [AsymmetricDecryptResponse.plaintext][google.cloud.kms.v1.AsymmetricDecryptResponse.plaintext].
@@ -731,15 +666,12 @@ public Builder clearPlaintext() {
      * 
* * .google.protobuf.Int64Value plaintext_crc32c = 2; - * * @return Whether the plaintextCrc32c field is set. */ public boolean hasPlaintextCrc32C() { return plaintextCrc32CBuilder_ != null || plaintextCrc32C_ != null; } /** - * - * *
      * Integrity verification field. A CRC32C checksum of the returned
      * [AsymmetricDecryptResponse.plaintext][google.cloud.kms.v1.AsymmetricDecryptResponse.plaintext].
@@ -757,21 +689,16 @@ public boolean hasPlaintextCrc32C() {
      * 
* * .google.protobuf.Int64Value plaintext_crc32c = 2; - * * @return The plaintextCrc32c. */ public com.google.protobuf.Int64Value getPlaintextCrc32C() { if (plaintextCrc32CBuilder_ == null) { - return plaintextCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : plaintextCrc32C_; + return plaintextCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : plaintextCrc32C_; } else { return plaintextCrc32CBuilder_.getMessage(); } } /** - * - * *
      * Integrity verification field. A CRC32C checksum of the returned
      * [AsymmetricDecryptResponse.plaintext][google.cloud.kms.v1.AsymmetricDecryptResponse.plaintext].
@@ -804,8 +731,6 @@ public Builder setPlaintextCrc32C(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [AsymmetricDecryptResponse.plaintext][google.cloud.kms.v1.AsymmetricDecryptResponse.plaintext].
@@ -824,7 +749,8 @@ public Builder setPlaintextCrc32C(com.google.protobuf.Int64Value value) {
      *
      * .google.protobuf.Int64Value plaintext_crc32c = 2;
      */
-    public Builder setPlaintextCrc32C(com.google.protobuf.Int64Value.Builder builderForValue) {
+    public Builder setPlaintextCrc32C(
+        com.google.protobuf.Int64Value.Builder builderForValue) {
       if (plaintextCrc32CBuilder_ == null) {
         plaintextCrc32C_ = builderForValue.build();
         onChanged();
@@ -835,8 +761,6 @@ public Builder setPlaintextCrc32C(com.google.protobuf.Int64Value.Builder builder
       return this;
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [AsymmetricDecryptResponse.plaintext][google.cloud.kms.v1.AsymmetricDecryptResponse.plaintext].
@@ -859,9 +783,7 @@ public Builder mergePlaintextCrc32C(com.google.protobuf.Int64Value value) {
       if (plaintextCrc32CBuilder_ == null) {
         if (plaintextCrc32C_ != null) {
           plaintextCrc32C_ =
-              com.google.protobuf.Int64Value.newBuilder(plaintextCrc32C_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Int64Value.newBuilder(plaintextCrc32C_).mergeFrom(value).buildPartial();
         } else {
           plaintextCrc32C_ = value;
         }
@@ -873,8 +795,6 @@ public Builder mergePlaintextCrc32C(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [AsymmetricDecryptResponse.plaintext][google.cloud.kms.v1.AsymmetricDecryptResponse.plaintext].
@@ -905,8 +825,6 @@ public Builder clearPlaintextCrc32C() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [AsymmetricDecryptResponse.plaintext][google.cloud.kms.v1.AsymmetricDecryptResponse.plaintext].
@@ -926,13 +844,11 @@ public Builder clearPlaintextCrc32C() {
      * .google.protobuf.Int64Value plaintext_crc32c = 2;
      */
     public com.google.protobuf.Int64Value.Builder getPlaintextCrc32CBuilder() {
-
+      
       onChanged();
       return getPlaintextCrc32CFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [AsymmetricDecryptResponse.plaintext][google.cloud.kms.v1.AsymmetricDecryptResponse.plaintext].
@@ -955,14 +871,11 @@ public com.google.protobuf.Int64ValueOrBuilder getPlaintextCrc32COrBuilder() {
       if (plaintextCrc32CBuilder_ != null) {
         return plaintextCrc32CBuilder_.getMessageOrBuilder();
       } else {
-        return plaintextCrc32C_ == null
-            ? com.google.protobuf.Int64Value.getDefaultInstance()
-            : plaintextCrc32C_;
+        return plaintextCrc32C_ == null ?
+            com.google.protobuf.Int64Value.getDefaultInstance() : plaintextCrc32C_;
       }
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [AsymmetricDecryptResponse.plaintext][google.cloud.kms.v1.AsymmetricDecryptResponse.plaintext].
@@ -982,26 +895,21 @@ public com.google.protobuf.Int64ValueOrBuilder getPlaintextCrc32COrBuilder() {
      * .google.protobuf.Int64Value plaintext_crc32c = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Int64Value,
-            com.google.protobuf.Int64Value.Builder,
-            com.google.protobuf.Int64ValueOrBuilder>
+        com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> 
         getPlaintextCrc32CFieldBuilder() {
       if (plaintextCrc32CBuilder_ == null) {
-        plaintextCrc32CBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Int64Value,
-                com.google.protobuf.Int64Value.Builder,
-                com.google.protobuf.Int64ValueOrBuilder>(
-                getPlaintextCrc32C(), getParentForChildren(), isClean());
+        plaintextCrc32CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
+                getPlaintextCrc32C(),
+                getParentForChildren(),
+                isClean());
         plaintextCrc32C_ = null;
       }
       return plaintextCrc32CBuilder_;
     }
 
-    private boolean verifiedCiphertextCrc32C_;
+    private boolean verifiedCiphertextCrc32C_ ;
     /**
-     *
-     *
      * 
      * Integrity verification field. A flag indicating whether
      * [AsymmetricDecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext_crc32c]
@@ -1020,7 +928,6 @@ public com.google.protobuf.Int64ValueOrBuilder getPlaintextCrc32COrBuilder() {
      * 
* * bool verified_ciphertext_crc32c = 3; - * * @return The verifiedCiphertextCrc32c. */ @java.lang.Override @@ -1028,8 +935,6 @@ public boolean getVerifiedCiphertextCrc32C() { return verifiedCiphertextCrc32C_; } /** - * - * *
      * Integrity verification field. A flag indicating whether
      * [AsymmetricDecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext_crc32c]
@@ -1048,19 +953,16 @@ public boolean getVerifiedCiphertextCrc32C() {
      * 
* * bool verified_ciphertext_crc32c = 3; - * * @param value The verifiedCiphertextCrc32c to set. * @return This builder for chaining. */ public Builder setVerifiedCiphertextCrc32C(boolean value) { - + verifiedCiphertextCrc32C_ = value; onChanged(); return this; } /** - * - * *
      * Integrity verification field. A flag indicating whether
      * [AsymmetricDecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext_crc32c]
@@ -1079,11 +981,10 @@ public Builder setVerifiedCiphertextCrc32C(boolean value) {
      * 
* * bool verified_ciphertext_crc32c = 3; - * * @return This builder for chaining. */ public Builder clearVerifiedCiphertextCrc32C() { - + verifiedCiphertextCrc32C_ = false; onChanged(); return this; @@ -1091,8 +992,6 @@ public Builder clearVerifiedCiphertextCrc32C() { private int protectionLevel_ = 0; /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -1100,16 +999,12 @@ public Builder clearVerifiedCiphertextCrc32C() {
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 4; - * * @return The enum numeric value on the wire for protectionLevel. */ - @java.lang.Override - public int getProtectionLevelValue() { + @java.lang.Override public int getProtectionLevelValue() { return protectionLevel_; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -1117,19 +1012,16 @@ public int getProtectionLevelValue() {
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 4; - * * @param value The enum numeric value on the wire for protectionLevel to set. * @return This builder for chaining. */ public Builder setProtectionLevelValue(int value) { - + protectionLevel_ = value; onChanged(); return this; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -1137,19 +1029,15 @@ public Builder setProtectionLevelValue(int value) {
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 4; - * * @return The protectionLevel. */ @java.lang.Override public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.ProtectionLevel result = - com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); + com.google.cloud.kms.v1.ProtectionLevel result = com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); return result == null ? com.google.cloud.kms.v1.ProtectionLevel.UNRECOGNIZED : result; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -1157,7 +1045,6 @@ public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() {
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 4; - * * @param value The protectionLevel to set. * @return This builder for chaining. */ @@ -1165,14 +1052,12 @@ public Builder setProtectionLevel(com.google.cloud.kms.v1.ProtectionLevel value) if (value == null) { throw new NullPointerException(); } - + protectionLevel_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -1180,18 +1065,17 @@ public Builder setProtectionLevel(com.google.cloud.kms.v1.ProtectionLevel value)
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 4; - * * @return This builder for chaining. */ public Builder clearProtectionLevel() { - + protectionLevel_ = 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); } @@ -1201,12 +1085,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.AsymmetricDecryptResponse) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.AsymmetricDecryptResponse) private static final com.google.cloud.kms.v1.AsymmetricDecryptResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.AsymmetricDecryptResponse(); } @@ -1215,27 +1099,27 @@ public static com.google.cloud.kms.v1.AsymmetricDecryptResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsymmetricDecryptResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsymmetricDecryptResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1250,4 +1134,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.kms.v1.AsymmetricDecryptResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptResponseOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptResponseOrBuilder.java similarity index 88% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptResponseOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptResponseOrBuilder.java index 2a20036cdb5c..3fbcdae14d8f 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptResponseOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptResponseOrBuilder.java @@ -1,44 +1,23 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface AsymmetricDecryptResponseOrBuilder - extends +public interface AsymmetricDecryptResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.AsymmetricDecryptResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The decrypted data originally encrypted with the matching public key.
    * 
* * bytes plaintext = 1; - * * @return The plaintext. */ com.google.protobuf.ByteString getPlaintext(); /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [AsymmetricDecryptResponse.plaintext][google.cloud.kms.v1.AsymmetricDecryptResponse.plaintext].
@@ -56,13 +35,10 @@ public interface AsymmetricDecryptResponseOrBuilder
    * 
* * .google.protobuf.Int64Value plaintext_crc32c = 2; - * * @return Whether the plaintextCrc32c field is set. */ boolean hasPlaintextCrc32C(); /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [AsymmetricDecryptResponse.plaintext][google.cloud.kms.v1.AsymmetricDecryptResponse.plaintext].
@@ -80,13 +56,10 @@ public interface AsymmetricDecryptResponseOrBuilder
    * 
* * .google.protobuf.Int64Value plaintext_crc32c = 2; - * * @return The plaintextCrc32c. */ com.google.protobuf.Int64Value getPlaintextCrc32C(); /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [AsymmetricDecryptResponse.plaintext][google.cloud.kms.v1.AsymmetricDecryptResponse.plaintext].
@@ -108,8 +81,6 @@ public interface AsymmetricDecryptResponseOrBuilder
   com.google.protobuf.Int64ValueOrBuilder getPlaintextCrc32COrBuilder();
 
   /**
-   *
-   *
    * 
    * Integrity verification field. A flag indicating whether
    * [AsymmetricDecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext_crc32c]
@@ -128,14 +99,11 @@ public interface AsymmetricDecryptResponseOrBuilder
    * 
* * bool verified_ciphertext_crc32c = 3; - * * @return The verifiedCiphertextCrc32c. */ boolean getVerifiedCiphertextCrc32C(); /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -143,13 +111,10 @@ public interface AsymmetricDecryptResponseOrBuilder
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 4; - * * @return The enum numeric value on the wire for protectionLevel. */ int getProtectionLevelValue(); /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -157,7 +122,6 @@ public interface AsymmetricDecryptResponseOrBuilder
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 4; - * * @return The protectionLevel. */ com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel(); diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignRequest.java similarity index 80% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignRequest.java index 10459edf1b8d..73c1fc9a9c46 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignRequest.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for
  * [KeyManagementService.AsymmetricSign][google.cloud.kms.v1.KeyManagementService.AsymmetricSign].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.AsymmetricSignRequest}
  */
-public final class AsymmetricSignRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AsymmetricSignRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.AsymmetricSignRequest)
     AsymmetricSignRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AsymmetricSignRequest.newBuilder() to construct.
   private AsymmetricSignRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AsymmetricSignRequest() {
     name_ = "";
     data_ = com.google.protobuf.ByteString.EMPTY;
@@ -45,45 +27,39 @@ private AsymmetricSignRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AsymmetricSignRequest();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_AsymmetricSignRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricSignRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_AsymmetricSignRequest_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricSignRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.AsymmetricSignRequest.class,
-            com.google.cloud.kms.v1.AsymmetricSignRequest.Builder.class);
+            com.google.cloud.kms.v1.AsymmetricSignRequest.class, com.google.cloud.kms.v1.AsymmetricSignRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
    * signing.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -92,33 +68,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
    * signing.
    * 
* - * - * string name = 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 { @@ -129,8 +103,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DIGEST_FIELD_NUMBER = 3; private com.google.cloud.kms.v1.Digest digest_; /** - * - * *
    * Optional. The digest of the data to sign. The digest must be produced with
    * the same digest algorithm as specified by the key version's
@@ -141,7 +113,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * .google.cloud.kms.v1.Digest digest = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the digest field is set. */ @java.lang.Override @@ -149,8 +120,6 @@ public boolean hasDigest() { return digest_ != null; } /** - * - * *
    * Optional. The digest of the data to sign. The digest must be produced with
    * the same digest algorithm as specified by the key version's
@@ -161,7 +130,6 @@ public boolean hasDigest() {
    * 
* * .google.cloud.kms.v1.Digest digest = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The digest. */ @java.lang.Override @@ -169,8 +137,6 @@ public com.google.cloud.kms.v1.Digest getDigest() { return digest_ == null ? com.google.cloud.kms.v1.Digest.getDefaultInstance() : digest_; } /** - * - * *
    * Optional. The digest of the data to sign. The digest must be produced with
    * the same digest algorithm as specified by the key version's
@@ -190,8 +156,6 @@ public com.google.cloud.kms.v1.DigestOrBuilder getDigestOrBuilder() {
   public static final int DIGEST_CRC32C_FIELD_NUMBER = 4;
   private com.google.protobuf.Int64Value digestCrc32C_;
   /**
-   *
-   *
    * 
    * Optional. An optional CRC32C checksum of the
    * [AsymmetricSignRequest.digest][google.cloud.kms.v1.AsymmetricSignRequest.digest].
@@ -214,9 +178,7 @@ public com.google.cloud.kms.v1.DigestOrBuilder getDigestOrBuilder() {
    * this type.
    * 
* - * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the digestCrc32c field is set. */ @java.lang.Override @@ -224,8 +186,6 @@ public boolean hasDigestCrc32C() { return digestCrc32C_ != null; } /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [AsymmetricSignRequest.digest][google.cloud.kms.v1.AsymmetricSignRequest.digest].
@@ -248,20 +208,14 @@ public boolean hasDigestCrc32C() {
    * this type.
    * 
* - * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The digestCrc32c. */ @java.lang.Override public com.google.protobuf.Int64Value getDigestCrc32C() { - return digestCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : digestCrc32C_; + return digestCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : digestCrc32C_; } /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [AsymmetricSignRequest.digest][google.cloud.kms.v1.AsymmetricSignRequest.digest].
@@ -284,8 +238,7 @@ public com.google.protobuf.Int64Value getDigestCrc32C() {
    * this type.
    * 
* - * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getDigestCrc32COrBuilder() { @@ -295,8 +248,6 @@ public com.google.protobuf.Int64ValueOrBuilder getDigestCrc32COrBuilder() { public static final int DATA_FIELD_NUMBER = 6; private com.google.protobuf.ByteString data_; /** - * - * *
    * Optional. The data to sign.
    * It can't be supplied if
@@ -305,7 +256,6 @@ public com.google.protobuf.Int64ValueOrBuilder getDigestCrc32COrBuilder() {
    * 
* * bytes data = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The data. */ @java.lang.Override @@ -316,8 +266,6 @@ public com.google.protobuf.ByteString getData() { public static final int DATA_CRC32C_FIELD_NUMBER = 7; private com.google.protobuf.Int64Value dataCrc32C_; /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [AsymmetricSignRequest.data][google.cloud.kms.v1.AsymmetricSignRequest.data].
@@ -340,9 +288,7 @@ public com.google.protobuf.ByteString getData() {
    * this type.
    * 
* - * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the dataCrc32c field is set. */ @java.lang.Override @@ -350,8 +296,6 @@ public boolean hasDataCrc32C() { return dataCrc32C_ != null; } /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [AsymmetricSignRequest.data][google.cloud.kms.v1.AsymmetricSignRequest.data].
@@ -374,9 +318,7 @@ public boolean hasDataCrc32C() {
    * this type.
    * 
* - * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The dataCrc32c. */ @java.lang.Override @@ -384,8 +326,6 @@ public com.google.protobuf.Int64Value getDataCrc32C() { return dataCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : dataCrc32C_; } /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [AsymmetricSignRequest.data][google.cloud.kms.v1.AsymmetricSignRequest.data].
@@ -408,8 +348,7 @@ public com.google.protobuf.Int64Value getDataCrc32C() {
    * this type.
    * 
* - * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getDataCrc32COrBuilder() { @@ -417,7 +356,6 @@ public com.google.protobuf.Int64ValueOrBuilder getDataCrc32COrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -429,7 +367,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -458,16 +397,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (digest_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDigest()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDigest()); } if (digestCrc32C_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDigestCrc32C()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getDigestCrc32C()); } if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, data_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, data_); } if (dataCrc32C_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDataCrc32C()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getDataCrc32C()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -477,27 +420,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.kms.v1.AsymmetricSignRequest)) { return super.equals(obj); } - com.google.cloud.kms.v1.AsymmetricSignRequest other = - (com.google.cloud.kms.v1.AsymmetricSignRequest) obj; + com.google.cloud.kms.v1.AsymmetricSignRequest other = (com.google.cloud.kms.v1.AsymmetricSignRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasDigest() != other.hasDigest()) return false; if (hasDigest()) { - if (!getDigest().equals(other.getDigest())) return false; + if (!getDigest() + .equals(other.getDigest())) return false; } if (hasDigestCrc32C() != other.hasDigestCrc32C()) return false; if (hasDigestCrc32C()) { - if (!getDigestCrc32C().equals(other.getDigestCrc32C())) return false; + if (!getDigestCrc32C() + .equals(other.getDigestCrc32C())) return false; } - if (!getData().equals(other.getData())) return false; + if (!getData() + .equals(other.getData())) return false; if (hasDataCrc32C() != other.hasDataCrc32C()) return false; if (hasDataCrc32C()) { - if (!getDataCrc32C().equals(other.getDataCrc32C())) return false; + if (!getDataCrc32C() + .equals(other.getDataCrc32C())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -531,104 +478,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.AsymmetricSignRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.AsymmetricSignRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.AsymmetricSignRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.AsymmetricSignRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.AsymmetricSignRequest parseFrom( 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.kms.v1.AsymmetricSignRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.AsymmetricSignRequest parseFrom( - byte[] data, com.google.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.kms.v1.AsymmetricSignRequest parseFrom(java.io.InputStream input) 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.kms.v1.AsymmetricSignRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.AsymmetricSignRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.AsymmetricSignRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.AsymmetricSignRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.AsymmetricSignRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.AsymmetricSignRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.AsymmetricSignRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for
    * [KeyManagementService.AsymmetricSign][google.cloud.kms.v1.KeyManagementService.AsymmetricSign].
@@ -636,32 +576,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.AsymmetricSignRequest}
    */
-  public static final class Builder extends 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.kms.v1.AsymmetricSignRequest)
       com.google.cloud.kms.v1.AsymmetricSignRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_AsymmetricSignRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricSignRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_AsymmetricSignRequest_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricSignRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.AsymmetricSignRequest.class,
-              com.google.cloud.kms.v1.AsymmetricSignRequest.Builder.class);
+              com.google.cloud.kms.v1.AsymmetricSignRequest.class, com.google.cloud.kms.v1.AsymmetricSignRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.AsymmetricSignRequest.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();
@@ -691,9 +632,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_AsymmetricSignRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricSignRequest_descriptor;
     }
 
     @java.lang.Override
@@ -712,8 +653,7 @@ public com.google.cloud.kms.v1.AsymmetricSignRequest build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.AsymmetricSignRequest buildPartial() {
-      com.google.cloud.kms.v1.AsymmetricSignRequest result =
-          new com.google.cloud.kms.v1.AsymmetricSignRequest(this);
+      com.google.cloud.kms.v1.AsymmetricSignRequest result = new com.google.cloud.kms.v1.AsymmetricSignRequest(this);
       result.name_ = name_;
       if (digestBuilder_ == null) {
         result.digest_ = digest_;
@@ -739,39 +679,38 @@ public com.google.cloud.kms.v1.AsymmetricSignRequest 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.kms.v1.AsymmetricSignRequest) {
-        return mergeFrom((com.google.cloud.kms.v1.AsymmetricSignRequest) other);
+        return mergeFrom((com.google.cloud.kms.v1.AsymmetricSignRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -822,43 +761,43 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 26:
-              {
-                input.readMessage(getDigestFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getDigestCrc32CFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 34
-            case 50:
-              {
-                data_ = input.readBytes();
-
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getDataCrc32CFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 58
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 26: {
+              input.readMessage(
+                  getDigestFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getDigestCrc32CFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 34
+            case 50: {
+              data_ = input.readBytes();
+
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getDataCrc32CFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              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,24 +810,20 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
      * signing.
      * 
* - * - * string name = 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; @@ -897,25 +832,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
      * signing.
      * 
* - * - * string name = 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 { @@ -923,73 +855,60 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
      * signing.
      * 
* - * - * 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
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
      * signing.
      * 
* - * - * string 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
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
      * signing.
      * 
* - * - * 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; @@ -997,13 +916,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.kms.v1.Digest digest_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.Digest, - com.google.cloud.kms.v1.Digest.Builder, - com.google.cloud.kms.v1.DigestOrBuilder> - digestBuilder_; + com.google.cloud.kms.v1.Digest, com.google.cloud.kms.v1.Digest.Builder, com.google.cloud.kms.v1.DigestOrBuilder> digestBuilder_; /** - * - * *
      * Optional. The digest of the data to sign. The digest must be produced with
      * the same digest algorithm as specified by the key version's
@@ -1013,17 +927,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * is supplied.
      * 
* - * .google.cloud.kms.v1.Digest digest = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.kms.v1.Digest digest = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the digest field is set. */ public boolean hasDigest() { return digestBuilder_ != null || digest_ != null; } /** - * - * *
      * Optional. The digest of the data to sign. The digest must be produced with
      * the same digest algorithm as specified by the key version's
@@ -1033,9 +943,7 @@ public boolean hasDigest() {
      * is supplied.
      * 
* - * .google.cloud.kms.v1.Digest digest = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.kms.v1.Digest digest = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The digest. */ public com.google.cloud.kms.v1.Digest getDigest() { @@ -1046,8 +954,6 @@ public com.google.cloud.kms.v1.Digest getDigest() { } } /** - * - * *
      * Optional. The digest of the data to sign. The digest must be produced with
      * the same digest algorithm as specified by the key version's
@@ -1057,8 +963,7 @@ public com.google.cloud.kms.v1.Digest getDigest() {
      * is supplied.
      * 
* - * .google.cloud.kms.v1.Digest digest = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.kms.v1.Digest digest = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setDigest(com.google.cloud.kms.v1.Digest value) { if (digestBuilder_ == null) { @@ -1074,8 +979,6 @@ public Builder setDigest(com.google.cloud.kms.v1.Digest value) { return this; } /** - * - * *
      * Optional. The digest of the data to sign. The digest must be produced with
      * the same digest algorithm as specified by the key version's
@@ -1085,10 +988,10 @@ public Builder setDigest(com.google.cloud.kms.v1.Digest value) {
      * is supplied.
      * 
* - * .google.cloud.kms.v1.Digest digest = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.kms.v1.Digest digest = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setDigest(com.google.cloud.kms.v1.Digest.Builder builderForValue) { + public Builder setDigest( + com.google.cloud.kms.v1.Digest.Builder builderForValue) { if (digestBuilder_ == null) { digest_ = builderForValue.build(); onChanged(); @@ -1099,8 +1002,6 @@ public Builder setDigest(com.google.cloud.kms.v1.Digest.Builder builderForValue) return this; } /** - * - * *
      * Optional. The digest of the data to sign. The digest must be produced with
      * the same digest algorithm as specified by the key version's
@@ -1110,14 +1011,13 @@ public Builder setDigest(com.google.cloud.kms.v1.Digest.Builder builderForValue)
      * is supplied.
      * 
* - * .google.cloud.kms.v1.Digest digest = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.kms.v1.Digest digest = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeDigest(com.google.cloud.kms.v1.Digest value) { if (digestBuilder_ == null) { if (digest_ != null) { digest_ = - com.google.cloud.kms.v1.Digest.newBuilder(digest_).mergeFrom(value).buildPartial(); + com.google.cloud.kms.v1.Digest.newBuilder(digest_).mergeFrom(value).buildPartial(); } else { digest_ = value; } @@ -1129,8 +1029,6 @@ public Builder mergeDigest(com.google.cloud.kms.v1.Digest value) { return this; } /** - * - * *
      * Optional. The digest of the data to sign. The digest must be produced with
      * the same digest algorithm as specified by the key version's
@@ -1140,8 +1038,7 @@ public Builder mergeDigest(com.google.cloud.kms.v1.Digest value) {
      * is supplied.
      * 
* - * .google.cloud.kms.v1.Digest digest = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.kms.v1.Digest digest = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearDigest() { if (digestBuilder_ == null) { @@ -1155,8 +1052,6 @@ public Builder clearDigest() { return this; } /** - * - * *
      * Optional. The digest of the data to sign. The digest must be produced with
      * the same digest algorithm as specified by the key version's
@@ -1166,17 +1061,14 @@ public Builder clearDigest() {
      * is supplied.
      * 
* - * .google.cloud.kms.v1.Digest digest = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.kms.v1.Digest digest = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.kms.v1.Digest.Builder getDigestBuilder() { - + onChanged(); return getDigestFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The digest of the data to sign. The digest must be produced with
      * the same digest algorithm as specified by the key version's
@@ -1186,19 +1078,17 @@ public com.google.cloud.kms.v1.Digest.Builder getDigestBuilder() {
      * is supplied.
      * 
* - * .google.cloud.kms.v1.Digest digest = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.kms.v1.Digest digest = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.kms.v1.DigestOrBuilder getDigestOrBuilder() { if (digestBuilder_ != null) { return digestBuilder_.getMessageOrBuilder(); } else { - return digest_ == null ? com.google.cloud.kms.v1.Digest.getDefaultInstance() : digest_; + return digest_ == null ? + com.google.cloud.kms.v1.Digest.getDefaultInstance() : digest_; } } /** - * - * *
      * Optional. The digest of the data to sign. The digest must be produced with
      * the same digest algorithm as specified by the key version's
@@ -1208,21 +1098,17 @@ public com.google.cloud.kms.v1.DigestOrBuilder getDigestOrBuilder() {
      * is supplied.
      * 
* - * .google.cloud.kms.v1.Digest digest = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.kms.v1.Digest digest = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.Digest, - com.google.cloud.kms.v1.Digest.Builder, - com.google.cloud.kms.v1.DigestOrBuilder> + com.google.cloud.kms.v1.Digest, com.google.cloud.kms.v1.Digest.Builder, com.google.cloud.kms.v1.DigestOrBuilder> getDigestFieldBuilder() { if (digestBuilder_ == null) { - digestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.Digest, - com.google.cloud.kms.v1.Digest.Builder, - com.google.cloud.kms.v1.DigestOrBuilder>( - getDigest(), getParentForChildren(), isClean()); + digestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.kms.v1.Digest, com.google.cloud.kms.v1.Digest.Builder, com.google.cloud.kms.v1.DigestOrBuilder>( + getDigest(), + getParentForChildren(), + isClean()); digest_ = null; } return digestBuilder_; @@ -1230,13 +1116,8 @@ public com.google.cloud.kms.v1.DigestOrBuilder getDigestOrBuilder() { private com.google.protobuf.Int64Value digestCrc32C_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> - digestCrc32CBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> digestCrc32CBuilder_; /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [AsymmetricSignRequest.digest][google.cloud.kms.v1.AsymmetricSignRequest.digest].
@@ -1259,18 +1140,13 @@ public com.google.cloud.kms.v1.DigestOrBuilder getDigestOrBuilder() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the digestCrc32c field is set. */ public boolean hasDigestCrc32C() { return digestCrc32CBuilder_ != null || digestCrc32C_ != null; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [AsymmetricSignRequest.digest][google.cloud.kms.v1.AsymmetricSignRequest.digest].
@@ -1293,24 +1169,17 @@ public boolean hasDigestCrc32C() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The digestCrc32c. */ public com.google.protobuf.Int64Value getDigestCrc32C() { if (digestCrc32CBuilder_ == null) { - return digestCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : digestCrc32C_; + return digestCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : digestCrc32C_; } else { return digestCrc32CBuilder_.getMessage(); } } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [AsymmetricSignRequest.digest][google.cloud.kms.v1.AsymmetricSignRequest.digest].
@@ -1333,9 +1202,7 @@ public com.google.protobuf.Int64Value getDigestCrc32C() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setDigestCrc32C(com.google.protobuf.Int64Value value) { if (digestCrc32CBuilder_ == null) { @@ -1351,8 +1218,6 @@ public Builder setDigestCrc32C(com.google.protobuf.Int64Value value) { return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [AsymmetricSignRequest.digest][google.cloud.kms.v1.AsymmetricSignRequest.digest].
@@ -1375,11 +1240,10 @@ public Builder setDigestCrc32C(com.google.protobuf.Int64Value value) {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setDigestCrc32C(com.google.protobuf.Int64Value.Builder builderForValue) { + public Builder setDigestCrc32C( + com.google.protobuf.Int64Value.Builder builderForValue) { if (digestCrc32CBuilder_ == null) { digestCrc32C_ = builderForValue.build(); onChanged(); @@ -1390,8 +1254,6 @@ public Builder setDigestCrc32C(com.google.protobuf.Int64Value.Builder builderFor return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [AsymmetricSignRequest.digest][google.cloud.kms.v1.AsymmetricSignRequest.digest].
@@ -1414,17 +1276,13 @@ public Builder setDigestCrc32C(com.google.protobuf.Int64Value.Builder builderFor
      * this type.
      * 
* - * - * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeDigestCrc32C(com.google.protobuf.Int64Value value) { if (digestCrc32CBuilder_ == null) { if (digestCrc32C_ != null) { digestCrc32C_ = - com.google.protobuf.Int64Value.newBuilder(digestCrc32C_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Int64Value.newBuilder(digestCrc32C_).mergeFrom(value).buildPartial(); } else { digestCrc32C_ = value; } @@ -1436,8 +1294,6 @@ public Builder mergeDigestCrc32C(com.google.protobuf.Int64Value value) { return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [AsymmetricSignRequest.digest][google.cloud.kms.v1.AsymmetricSignRequest.digest].
@@ -1460,9 +1316,7 @@ public Builder mergeDigestCrc32C(com.google.protobuf.Int64Value value) {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearDigestCrc32C() { if (digestCrc32CBuilder_ == null) { @@ -1476,8 +1330,6 @@ public Builder clearDigestCrc32C() { return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [AsymmetricSignRequest.digest][google.cloud.kms.v1.AsymmetricSignRequest.digest].
@@ -1500,18 +1352,14 @@ public Builder clearDigestCrc32C() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Int64Value.Builder getDigestCrc32CBuilder() { - + onChanged(); return getDigestCrc32CFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [AsymmetricSignRequest.digest][google.cloud.kms.v1.AsymmetricSignRequest.digest].
@@ -1534,22 +1382,17 @@ public com.google.protobuf.Int64Value.Builder getDigestCrc32CBuilder() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Int64ValueOrBuilder getDigestCrc32COrBuilder() { if (digestCrc32CBuilder_ != null) { return digestCrc32CBuilder_.getMessageOrBuilder(); } else { - return digestCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : digestCrc32C_; + return digestCrc32C_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : digestCrc32C_; } } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [AsymmetricSignRequest.digest][google.cloud.kms.v1.AsymmetricSignRequest.digest].
@@ -1572,22 +1415,17 @@ public com.google.protobuf.Int64ValueOrBuilder getDigestCrc32COrBuilder() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getDigestCrc32CFieldBuilder() { if (digestCrc32CBuilder_ == null) { - digestCrc32CBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder>( - getDigestCrc32C(), getParentForChildren(), isClean()); + digestCrc32CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getDigestCrc32C(), + getParentForChildren(), + isClean()); digestCrc32C_ = null; } return digestCrc32CBuilder_; @@ -1595,8 +1433,6 @@ public com.google.protobuf.Int64ValueOrBuilder getDigestCrc32COrBuilder() { private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Optional. The data to sign.
      * It can't be supplied if
@@ -1605,7 +1441,6 @@ public com.google.protobuf.Int64ValueOrBuilder getDigestCrc32COrBuilder() {
      * 
* * bytes data = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The data. */ @java.lang.Override @@ -1613,8 +1448,6 @@ public com.google.protobuf.ByteString getData() { return data_; } /** - * - * *
      * Optional. The data to sign.
      * It can't be supplied if
@@ -1623,22 +1456,19 @@ public com.google.protobuf.ByteString getData() {
      * 
* * bytes data = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The data to set. * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + data_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The data to sign.
      * It can't be supplied if
@@ -1647,11 +1477,10 @@ public Builder setData(com.google.protobuf.ByteString value) {
      * 
* * bytes data = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearData() { - + data_ = getDefaultInstance().getData(); onChanged(); return this; @@ -1659,13 +1488,8 @@ public Builder clearData() { private com.google.protobuf.Int64Value dataCrc32C_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> - dataCrc32CBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> dataCrc32CBuilder_; /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [AsymmetricSignRequest.data][google.cloud.kms.v1.AsymmetricSignRequest.data].
@@ -1688,17 +1512,13 @@ public Builder clearData() {
      * this type.
      * 
* - * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the dataCrc32c field is set. */ public boolean hasDataCrc32C() { return dataCrc32CBuilder_ != null || dataCrc32C_ != null; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [AsymmetricSignRequest.data][google.cloud.kms.v1.AsymmetricSignRequest.data].
@@ -1721,23 +1541,17 @@ public boolean hasDataCrc32C() {
      * this type.
      * 
* - * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The dataCrc32c. */ public com.google.protobuf.Int64Value getDataCrc32C() { if (dataCrc32CBuilder_ == null) { - return dataCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : dataCrc32C_; + return dataCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : dataCrc32C_; } else { return dataCrc32CBuilder_.getMessage(); } } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [AsymmetricSignRequest.data][google.cloud.kms.v1.AsymmetricSignRequest.data].
@@ -1760,8 +1574,7 @@ public com.google.protobuf.Int64Value getDataCrc32C() {
      * this type.
      * 
* - * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setDataCrc32C(com.google.protobuf.Int64Value value) { if (dataCrc32CBuilder_ == null) { @@ -1777,8 +1590,6 @@ public Builder setDataCrc32C(com.google.protobuf.Int64Value value) { return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [AsymmetricSignRequest.data][google.cloud.kms.v1.AsymmetricSignRequest.data].
@@ -1801,10 +1612,10 @@ public Builder setDataCrc32C(com.google.protobuf.Int64Value value) {
      * this type.
      * 
* - * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setDataCrc32C(com.google.protobuf.Int64Value.Builder builderForValue) { + public Builder setDataCrc32C( + com.google.protobuf.Int64Value.Builder builderForValue) { if (dataCrc32CBuilder_ == null) { dataCrc32C_ = builderForValue.build(); onChanged(); @@ -1815,8 +1626,6 @@ public Builder setDataCrc32C(com.google.protobuf.Int64Value.Builder builderForVa return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [AsymmetricSignRequest.data][google.cloud.kms.v1.AsymmetricSignRequest.data].
@@ -1839,16 +1648,13 @@ public Builder setDataCrc32C(com.google.protobuf.Int64Value.Builder builderForVa
      * this type.
      * 
* - * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeDataCrc32C(com.google.protobuf.Int64Value value) { if (dataCrc32CBuilder_ == null) { if (dataCrc32C_ != null) { dataCrc32C_ = - com.google.protobuf.Int64Value.newBuilder(dataCrc32C_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Int64Value.newBuilder(dataCrc32C_).mergeFrom(value).buildPartial(); } else { dataCrc32C_ = value; } @@ -1860,8 +1666,6 @@ public Builder mergeDataCrc32C(com.google.protobuf.Int64Value value) { return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [AsymmetricSignRequest.data][google.cloud.kms.v1.AsymmetricSignRequest.data].
@@ -1884,8 +1688,7 @@ public Builder mergeDataCrc32C(com.google.protobuf.Int64Value value) {
      * this type.
      * 
* - * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearDataCrc32C() { if (dataCrc32CBuilder_ == null) { @@ -1899,8 +1702,6 @@ public Builder clearDataCrc32C() { return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [AsymmetricSignRequest.data][google.cloud.kms.v1.AsymmetricSignRequest.data].
@@ -1923,17 +1724,14 @@ public Builder clearDataCrc32C() {
      * this type.
      * 
* - * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Int64Value.Builder getDataCrc32CBuilder() { - + onChanged(); return getDataCrc32CFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [AsymmetricSignRequest.data][google.cloud.kms.v1.AsymmetricSignRequest.data].
@@ -1956,21 +1754,17 @@ public com.google.protobuf.Int64Value.Builder getDataCrc32CBuilder() {
      * this type.
      * 
* - * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Int64ValueOrBuilder getDataCrc32COrBuilder() { if (dataCrc32CBuilder_ != null) { return dataCrc32CBuilder_.getMessageOrBuilder(); } else { - return dataCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : dataCrc32C_; + return dataCrc32C_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : dataCrc32C_; } } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [AsymmetricSignRequest.data][google.cloud.kms.v1.AsymmetricSignRequest.data].
@@ -1993,28 +1787,24 @@ public com.google.protobuf.Int64ValueOrBuilder getDataCrc32COrBuilder() {
      * this type.
      * 
* - * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getDataCrc32CFieldBuilder() { if (dataCrc32CBuilder_ == null) { - dataCrc32CBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder>( - getDataCrc32C(), getParentForChildren(), isClean()); + dataCrc32CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getDataCrc32C(), + getParentForChildren(), + isClean()); dataCrc32C_ = null; } return dataCrc32CBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2024,12 +1814,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.AsymmetricSignRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.AsymmetricSignRequest) private static final com.google.cloud.kms.v1.AsymmetricSignRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.AsymmetricSignRequest(); } @@ -2038,27 +1828,27 @@ public static com.google.cloud.kms.v1.AsymmetricSignRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsymmetricSignRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsymmetricSignRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2073,4 +1863,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.AsymmetricSignRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignRequestOrBuilder.java similarity index 88% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignRequestOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignRequestOrBuilder.java index a11eadbaee75..31a2b1da449b 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignRequestOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignRequestOrBuilder.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/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface AsymmetricSignRequestOrBuilder - extends +public interface AsymmetricSignRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.AsymmetricSignRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
    * signing.
    * 
* - * - * string name = 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
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
    * signing.
    * 
* - * - * string name = 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(); /** - * - * *
    * Optional. The digest of the data to sign. The digest must be produced with
    * the same digest algorithm as specified by the key version's
@@ -69,13 +42,10 @@ public interface AsymmetricSignRequestOrBuilder
    * 
* * .google.cloud.kms.v1.Digest digest = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the digest field is set. */ boolean hasDigest(); /** - * - * *
    * Optional. The digest of the data to sign. The digest must be produced with
    * the same digest algorithm as specified by the key version's
@@ -86,13 +56,10 @@ public interface AsymmetricSignRequestOrBuilder
    * 
* * .google.cloud.kms.v1.Digest digest = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The digest. */ com.google.cloud.kms.v1.Digest getDigest(); /** - * - * *
    * Optional. The digest of the data to sign. The digest must be produced with
    * the same digest algorithm as specified by the key version's
@@ -107,8 +74,6 @@ public interface AsymmetricSignRequestOrBuilder
   com.google.cloud.kms.v1.DigestOrBuilder getDigestOrBuilder();
 
   /**
-   *
-   *
    * 
    * Optional. An optional CRC32C checksum of the
    * [AsymmetricSignRequest.digest][google.cloud.kms.v1.AsymmetricSignRequest.digest].
@@ -131,15 +96,11 @@ public interface AsymmetricSignRequestOrBuilder
    * this type.
    * 
* - * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the digestCrc32c field is set. */ boolean hasDigestCrc32C(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [AsymmetricSignRequest.digest][google.cloud.kms.v1.AsymmetricSignRequest.digest].
@@ -162,15 +123,11 @@ public interface AsymmetricSignRequestOrBuilder
    * this type.
    * 
* - * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The digestCrc32c. */ com.google.protobuf.Int64Value getDigestCrc32C(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [AsymmetricSignRequest.digest][google.cloud.kms.v1.AsymmetricSignRequest.digest].
@@ -193,14 +150,11 @@ public interface AsymmetricSignRequestOrBuilder
    * this type.
    * 
* - * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value digest_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.Int64ValueOrBuilder getDigestCrc32COrBuilder(); /** - * - * *
    * Optional. The data to sign.
    * It can't be supplied if
@@ -209,14 +163,11 @@ public interface AsymmetricSignRequestOrBuilder
    * 
* * bytes data = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The data. */ com.google.protobuf.ByteString getData(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [AsymmetricSignRequest.data][google.cloud.kms.v1.AsymmetricSignRequest.data].
@@ -239,15 +190,11 @@ public interface AsymmetricSignRequestOrBuilder
    * this type.
    * 
* - * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the dataCrc32c field is set. */ boolean hasDataCrc32C(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [AsymmetricSignRequest.data][google.cloud.kms.v1.AsymmetricSignRequest.data].
@@ -270,15 +217,11 @@ public interface AsymmetricSignRequestOrBuilder
    * this type.
    * 
* - * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The dataCrc32c. */ com.google.protobuf.Int64Value getDataCrc32C(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [AsymmetricSignRequest.data][google.cloud.kms.v1.AsymmetricSignRequest.data].
@@ -301,8 +244,7 @@ public interface AsymmetricSignRequestOrBuilder
    * this type.
    * 
* - * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value data_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.Int64ValueOrBuilder getDataCrc32COrBuilder(); } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignResponse.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignResponse.java similarity index 80% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignResponse.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignResponse.java index 201eaaaffb97..7c12dd389f7d 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignResponse.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignResponse.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Response message for
  * [KeyManagementService.AsymmetricSign][google.cloud.kms.v1.KeyManagementService.AsymmetricSign].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.AsymmetricSignResponse}
  */
-public final class AsymmetricSignResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AsymmetricSignResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.AsymmetricSignResponse)
     AsymmetricSignResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AsymmetricSignResponse.newBuilder() to construct.
   private AsymmetricSignResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AsymmetricSignResponse() {
     signature_ = com.google.protobuf.ByteString.EMPTY;
     name_ = "";
@@ -46,41 +28,37 @@ private AsymmetricSignResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AsymmetricSignResponse();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_AsymmetricSignResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricSignResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_AsymmetricSignResponse_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricSignResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.AsymmetricSignResponse.class,
-            com.google.cloud.kms.v1.AsymmetricSignResponse.Builder.class);
+            com.google.cloud.kms.v1.AsymmetricSignResponse.class, com.google.cloud.kms.v1.AsymmetricSignResponse.Builder.class);
   }
 
   public static final int SIGNATURE_FIELD_NUMBER = 1;
   private com.google.protobuf.ByteString signature_;
   /**
-   *
-   *
    * 
    * The created signature.
    * 
* * bytes signature = 1; - * * @return The signature. */ @java.lang.Override @@ -91,8 +69,6 @@ public com.google.protobuf.ByteString getSignature() { public static final int SIGNATURE_CRC32C_FIELD_NUMBER = 2; private com.google.protobuf.Int64Value signatureCrc32C_; /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature].
@@ -110,7 +86,6 @@ public com.google.protobuf.ByteString getSignature() {
    * 
* * .google.protobuf.Int64Value signature_crc32c = 2; - * * @return Whether the signatureCrc32c field is set. */ @java.lang.Override @@ -118,8 +93,6 @@ public boolean hasSignatureCrc32C() { return signatureCrc32C_ != null; } /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature].
@@ -137,18 +110,13 @@ public boolean hasSignatureCrc32C() {
    * 
* * .google.protobuf.Int64Value signature_crc32c = 2; - * * @return The signatureCrc32c. */ @java.lang.Override public com.google.protobuf.Int64Value getSignatureCrc32C() { - return signatureCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : signatureCrc32C_; + return signatureCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : signatureCrc32C_; } /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature].
@@ -175,8 +143,6 @@ public com.google.protobuf.Int64ValueOrBuilder getSignatureCrc32COrBuilder() {
   public static final int VERIFIED_DIGEST_CRC32C_FIELD_NUMBER = 3;
   private boolean verifiedDigestCrc32C_;
   /**
-   *
-   *
    * 
    * Integrity verification field. A flag indicating whether
    * [AsymmetricSignRequest.digest_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.digest_crc32c]
@@ -195,7 +161,6 @@ public com.google.protobuf.Int64ValueOrBuilder getSignatureCrc32COrBuilder() {
    * 
* * bool verified_digest_crc32c = 3; - * * @return The verifiedDigestCrc32c. */ @java.lang.Override @@ -206,8 +171,6 @@ public boolean getVerifiedDigestCrc32C() { public static final int NAME_FIELD_NUMBER = 4; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
@@ -215,7 +178,6 @@ public boolean getVerifiedDigestCrc32C() {
    * 
* * string name = 4; - * * @return The name. */ @java.lang.Override @@ -224,15 +186,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 resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
@@ -240,15 +201,16 @@ public java.lang.String getName() {
    * 
* * string name = 4; - * * @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 { @@ -259,8 +221,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VERIFIED_DATA_CRC32C_FIELD_NUMBER = 5; private boolean verifiedDataCrc32C_; /** - * - * *
    * Integrity verification field. A flag indicating whether
    * [AsymmetricSignRequest.data_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.data_crc32c]
@@ -279,7 +239,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * bool verified_data_crc32c = 5; - * * @return The verifiedDataCrc32c. */ @java.lang.Override @@ -290,43 +249,33 @@ public boolean getVerifiedDataCrc32C() { public static final int PROTECTION_LEVEL_FIELD_NUMBER = 6; private int protectionLevel_; /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 6; - * * @return The enum numeric value on the wire for protectionLevel. */ - @java.lang.Override - public int getProtectionLevelValue() { + @java.lang.Override public int getProtectionLevelValue() { return protectionLevel_; } /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 6; - * * @return The protectionLevel. */ - @java.lang.Override - public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { + @java.lang.Override public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.ProtectionLevel result = - com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); + com.google.cloud.kms.v1.ProtectionLevel result = com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); return result == null ? com.google.cloud.kms.v1.ProtectionLevel.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -338,7 +287,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!signature_.isEmpty()) { output.writeBytes(1, signature_); } @@ -354,8 +304,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (verifiedDataCrc32C_ != false) { output.writeBool(5, verifiedDataCrc32C_); } - if (protectionLevel_ - != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { + if (protectionLevel_ != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(6, protectionLevel_); } getUnknownFields().writeTo(output); @@ -368,23 +317,27 @@ public int getSerializedSize() { size = 0; if (!signature_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, signature_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, signature_); } if (signatureCrc32C_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSignatureCrc32C()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSignatureCrc32C()); } if (verifiedDigestCrc32C_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, verifiedDigestCrc32C_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, verifiedDigestCrc32C_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); } if (verifiedDataCrc32C_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, verifiedDataCrc32C_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, verifiedDataCrc32C_); } - if (protectionLevel_ - != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, protectionLevel_); + if (protectionLevel_ != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, protectionLevel_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -394,22 +347,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.kms.v1.AsymmetricSignResponse)) { return super.equals(obj); } - com.google.cloud.kms.v1.AsymmetricSignResponse other = - (com.google.cloud.kms.v1.AsymmetricSignResponse) obj; + com.google.cloud.kms.v1.AsymmetricSignResponse other = (com.google.cloud.kms.v1.AsymmetricSignResponse) obj; - if (!getSignature().equals(other.getSignature())) return false; + if (!getSignature() + .equals(other.getSignature())) return false; if (hasSignatureCrc32C() != other.hasSignatureCrc32C()) return false; if (hasSignatureCrc32C()) { - if (!getSignatureCrc32C().equals(other.getSignatureCrc32C())) return false; - } - if (getVerifiedDigestCrc32C() != other.getVerifiedDigestCrc32C()) return false; - if (!getName().equals(other.getName())) return false; - if (getVerifiedDataCrc32C() != other.getVerifiedDataCrc32C()) return false; + if (!getSignatureCrc32C() + .equals(other.getSignatureCrc32C())) return false; + } + if (getVerifiedDigestCrc32C() + != other.getVerifiedDigestCrc32C()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getVerifiedDataCrc32C() + != other.getVerifiedDataCrc32C()) return false; if (protectionLevel_ != other.protectionLevel_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -429,11 +386,13 @@ public int hashCode() { hash = (53 * hash) + getSignatureCrc32C().hashCode(); } hash = (37 * hash) + VERIFIED_DIGEST_CRC32C_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVerifiedDigestCrc32C()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getVerifiedDigestCrc32C()); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VERIFIED_DATA_CRC32C_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVerifiedDataCrc32C()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getVerifiedDataCrc32C()); hash = (37 * hash) + PROTECTION_LEVEL_FIELD_NUMBER; hash = (53 * hash) + protectionLevel_; hash = (29 * hash) + getUnknownFields().hashCode(); @@ -441,104 +400,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.AsymmetricSignResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.AsymmetricSignResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.AsymmetricSignResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.AsymmetricSignResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.AsymmetricSignResponse parseFrom( 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.kms.v1.AsymmetricSignResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.AsymmetricSignResponse parseFrom( - byte[] data, com.google.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.kms.v1.AsymmetricSignResponse parseFrom(java.io.InputStream input) 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.kms.v1.AsymmetricSignResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.AsymmetricSignResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.AsymmetricSignResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.AsymmetricSignResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.AsymmetricSignResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.AsymmetricSignResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.AsymmetricSignResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for
    * [KeyManagementService.AsymmetricSign][google.cloud.kms.v1.KeyManagementService.AsymmetricSign].
@@ -546,32 +498,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.AsymmetricSignResponse}
    */
-  public static final class Builder extends 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.kms.v1.AsymmetricSignResponse)
       com.google.cloud.kms.v1.AsymmetricSignResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_AsymmetricSignResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricSignResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_AsymmetricSignResponse_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricSignResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.AsymmetricSignResponse.class,
-              com.google.cloud.kms.v1.AsymmetricSignResponse.Builder.class);
+              com.google.cloud.kms.v1.AsymmetricSignResponse.class, com.google.cloud.kms.v1.AsymmetricSignResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.AsymmetricSignResponse.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();
@@ -595,9 +548,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_AsymmetricSignResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricSignResponse_descriptor;
     }
 
     @java.lang.Override
@@ -616,8 +569,7 @@ public com.google.cloud.kms.v1.AsymmetricSignResponse build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.AsymmetricSignResponse buildPartial() {
-      com.google.cloud.kms.v1.AsymmetricSignResponse result =
-          new com.google.cloud.kms.v1.AsymmetricSignResponse(this);
+      com.google.cloud.kms.v1.AsymmetricSignResponse result = new com.google.cloud.kms.v1.AsymmetricSignResponse(this);
       result.signature_ = signature_;
       if (signatureCrc32CBuilder_ == null) {
         result.signatureCrc32C_ = signatureCrc32C_;
@@ -636,39 +588,38 @@ public com.google.cloud.kms.v1.AsymmetricSignResponse 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.kms.v1.AsymmetricSignResponse) {
-        return mergeFrom((com.google.cloud.kms.v1.AsymmetricSignResponse) other);
+        return mergeFrom((com.google.cloud.kms.v1.AsymmetricSignResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -722,49 +673,44 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                signature_ = input.readBytes();
-
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getSignatureCrc32CFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 18
-            case 24:
-              {
-                verifiedDigestCrc32C_ = input.readBool();
-
-                break;
-              } // case 24
-            case 34:
-              {
-                name_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 34
-            case 40:
-              {
-                verifiedDataCrc32C_ = input.readBool();
-
-                break;
-              } // case 40
-            case 48:
-              {
-                protectionLevel_ = input.readEnum();
-
-                break;
-              } // case 48
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              signature_ = input.readBytes();
+
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getSignatureCrc32CFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 18
+            case 24: {
+              verifiedDigestCrc32C_ = input.readBool();
+
+              break;
+            } // case 24
+            case 34: {
+              name_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 34
+            case 40: {
+              verifiedDataCrc32C_ = input.readBool();
+
+              break;
+            } // case 40
+            case 48: {
+              protectionLevel_ = 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) {
@@ -777,14 +723,11 @@ public Builder mergeFrom(
 
     private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY;
     /**
-     *
-     *
      * 
      * The created signature.
      * 
* * bytes signature = 1; - * * @return The signature. */ @java.lang.Override @@ -792,39 +735,33 @@ public com.google.protobuf.ByteString getSignature() { return signature_; } /** - * - * *
      * The created signature.
      * 
* * bytes signature = 1; - * * @param value The signature to set. * @return This builder for chaining. */ public Builder setSignature(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + signature_ = value; onChanged(); return this; } /** - * - * *
      * The created signature.
      * 
* * bytes signature = 1; - * * @return This builder for chaining. */ public Builder clearSignature() { - + signature_ = getDefaultInstance().getSignature(); onChanged(); return this; @@ -832,13 +769,8 @@ public Builder clearSignature() { private com.google.protobuf.Int64Value signatureCrc32C_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> - signatureCrc32CBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> signatureCrc32CBuilder_; /** - * - * *
      * Integrity verification field. A CRC32C checksum of the returned
      * [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature].
@@ -856,15 +788,12 @@ public Builder clearSignature() {
      * 
* * .google.protobuf.Int64Value signature_crc32c = 2; - * * @return Whether the signatureCrc32c field is set. */ public boolean hasSignatureCrc32C() { return signatureCrc32CBuilder_ != null || signatureCrc32C_ != null; } /** - * - * *
      * Integrity verification field. A CRC32C checksum of the returned
      * [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature].
@@ -882,21 +811,16 @@ public boolean hasSignatureCrc32C() {
      * 
* * .google.protobuf.Int64Value signature_crc32c = 2; - * * @return The signatureCrc32c. */ public com.google.protobuf.Int64Value getSignatureCrc32C() { if (signatureCrc32CBuilder_ == null) { - return signatureCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : signatureCrc32C_; + return signatureCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : signatureCrc32C_; } else { return signatureCrc32CBuilder_.getMessage(); } } /** - * - * *
      * Integrity verification field. A CRC32C checksum of the returned
      * [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature].
@@ -929,8 +853,6 @@ public Builder setSignatureCrc32C(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature].
@@ -949,7 +871,8 @@ public Builder setSignatureCrc32C(com.google.protobuf.Int64Value value) {
      *
      * .google.protobuf.Int64Value signature_crc32c = 2;
      */
-    public Builder setSignatureCrc32C(com.google.protobuf.Int64Value.Builder builderForValue) {
+    public Builder setSignatureCrc32C(
+        com.google.protobuf.Int64Value.Builder builderForValue) {
       if (signatureCrc32CBuilder_ == null) {
         signatureCrc32C_ = builderForValue.build();
         onChanged();
@@ -960,8 +883,6 @@ public Builder setSignatureCrc32C(com.google.protobuf.Int64Value.Builder builder
       return this;
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature].
@@ -984,9 +905,7 @@ public Builder mergeSignatureCrc32C(com.google.protobuf.Int64Value value) {
       if (signatureCrc32CBuilder_ == null) {
         if (signatureCrc32C_ != null) {
           signatureCrc32C_ =
-              com.google.protobuf.Int64Value.newBuilder(signatureCrc32C_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Int64Value.newBuilder(signatureCrc32C_).mergeFrom(value).buildPartial();
         } else {
           signatureCrc32C_ = value;
         }
@@ -998,8 +917,6 @@ public Builder mergeSignatureCrc32C(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature].
@@ -1030,8 +947,6 @@ public Builder clearSignatureCrc32C() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature].
@@ -1051,13 +966,11 @@ public Builder clearSignatureCrc32C() {
      * .google.protobuf.Int64Value signature_crc32c = 2;
      */
     public com.google.protobuf.Int64Value.Builder getSignatureCrc32CBuilder() {
-
+      
       onChanged();
       return getSignatureCrc32CFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature].
@@ -1080,14 +993,11 @@ public com.google.protobuf.Int64ValueOrBuilder getSignatureCrc32COrBuilder() {
       if (signatureCrc32CBuilder_ != null) {
         return signatureCrc32CBuilder_.getMessageOrBuilder();
       } else {
-        return signatureCrc32C_ == null
-            ? com.google.protobuf.Int64Value.getDefaultInstance()
-            : signatureCrc32C_;
+        return signatureCrc32C_ == null ?
+            com.google.protobuf.Int64Value.getDefaultInstance() : signatureCrc32C_;
       }
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature].
@@ -1107,26 +1017,21 @@ public com.google.protobuf.Int64ValueOrBuilder getSignatureCrc32COrBuilder() {
      * .google.protobuf.Int64Value signature_crc32c = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Int64Value,
-            com.google.protobuf.Int64Value.Builder,
-            com.google.protobuf.Int64ValueOrBuilder>
+        com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> 
         getSignatureCrc32CFieldBuilder() {
       if (signatureCrc32CBuilder_ == null) {
-        signatureCrc32CBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Int64Value,
-                com.google.protobuf.Int64Value.Builder,
-                com.google.protobuf.Int64ValueOrBuilder>(
-                getSignatureCrc32C(), getParentForChildren(), isClean());
+        signatureCrc32CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
+                getSignatureCrc32C(),
+                getParentForChildren(),
+                isClean());
         signatureCrc32C_ = null;
       }
       return signatureCrc32CBuilder_;
     }
 
-    private boolean verifiedDigestCrc32C_;
+    private boolean verifiedDigestCrc32C_ ;
     /**
-     *
-     *
      * 
      * Integrity verification field. A flag indicating whether
      * [AsymmetricSignRequest.digest_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.digest_crc32c]
@@ -1145,7 +1050,6 @@ public com.google.protobuf.Int64ValueOrBuilder getSignatureCrc32COrBuilder() {
      * 
* * bool verified_digest_crc32c = 3; - * * @return The verifiedDigestCrc32c. */ @java.lang.Override @@ -1153,8 +1057,6 @@ public boolean getVerifiedDigestCrc32C() { return verifiedDigestCrc32C_; } /** - * - * *
      * Integrity verification field. A flag indicating whether
      * [AsymmetricSignRequest.digest_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.digest_crc32c]
@@ -1173,19 +1075,16 @@ public boolean getVerifiedDigestCrc32C() {
      * 
* * bool verified_digest_crc32c = 3; - * * @param value The verifiedDigestCrc32c to set. * @return This builder for chaining. */ public Builder setVerifiedDigestCrc32C(boolean value) { - + verifiedDigestCrc32C_ = value; onChanged(); return this; } /** - * - * *
      * Integrity verification field. A flag indicating whether
      * [AsymmetricSignRequest.digest_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.digest_crc32c]
@@ -1204,11 +1103,10 @@ public Builder setVerifiedDigestCrc32C(boolean value) {
      * 
* * bool verified_digest_crc32c = 3; - * * @return This builder for chaining. */ public Builder clearVerifiedDigestCrc32C() { - + verifiedDigestCrc32C_ = false; onChanged(); return this; @@ -1216,8 +1114,6 @@ public Builder clearVerifiedDigestCrc32C() { private java.lang.Object name_ = ""; /** - * - * *
      * The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
@@ -1225,13 +1121,13 @@ public Builder clearVerifiedDigestCrc32C() {
      * 
* * string name = 4; - * * @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; @@ -1240,8 +1136,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
@@ -1249,14 +1143,15 @@ public java.lang.String getName() {
      * 
* * string name = 4; - * * @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 { @@ -1264,8 +1159,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
@@ -1273,22 +1166,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 4; - * * @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 resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
@@ -1296,18 +1187,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 4; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
@@ -1315,25 +1203,23 @@ public Builder clearName() {
      * 
* * string name = 4; - * * @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 verifiedDataCrc32C_; + private boolean verifiedDataCrc32C_ ; /** - * - * *
      * Integrity verification field. A flag indicating whether
      * [AsymmetricSignRequest.data_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.data_crc32c]
@@ -1352,7 +1238,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * bool verified_data_crc32c = 5; - * * @return The verifiedDataCrc32c. */ @java.lang.Override @@ -1360,8 +1245,6 @@ public boolean getVerifiedDataCrc32C() { return verifiedDataCrc32C_; } /** - * - * *
      * Integrity verification field. A flag indicating whether
      * [AsymmetricSignRequest.data_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.data_crc32c]
@@ -1380,19 +1263,16 @@ public boolean getVerifiedDataCrc32C() {
      * 
* * bool verified_data_crc32c = 5; - * * @param value The verifiedDataCrc32c to set. * @return This builder for chaining. */ public Builder setVerifiedDataCrc32C(boolean value) { - + verifiedDataCrc32C_ = value; onChanged(); return this; } /** - * - * *
      * Integrity verification field. A flag indicating whether
      * [AsymmetricSignRequest.data_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.data_crc32c]
@@ -1411,11 +1291,10 @@ public Builder setVerifiedDataCrc32C(boolean value) {
      * 
* * bool verified_data_crc32c = 5; - * * @return This builder for chaining. */ public Builder clearVerifiedDataCrc32C() { - + verifiedDataCrc32C_ = false; onChanged(); return this; @@ -1423,69 +1302,55 @@ public Builder clearVerifiedDataCrc32C() { private int protectionLevel_ = 0; /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 6; - * * @return The enum numeric value on the wire for protectionLevel. */ - @java.lang.Override - public int getProtectionLevelValue() { + @java.lang.Override public int getProtectionLevelValue() { return protectionLevel_; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 6; - * * @param value The enum numeric value on the wire for protectionLevel to set. * @return This builder for chaining. */ public Builder setProtectionLevelValue(int value) { - + protectionLevel_ = value; onChanged(); return this; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 6; - * * @return The protectionLevel. */ @java.lang.Override public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.ProtectionLevel result = - com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); + com.google.cloud.kms.v1.ProtectionLevel result = com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); return result == null ? com.google.cloud.kms.v1.ProtectionLevel.UNRECOGNIZED : result; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 6; - * * @param value The protectionLevel to set. * @return This builder for chaining. */ @@ -1493,32 +1358,29 @@ public Builder setProtectionLevel(com.google.cloud.kms.v1.ProtectionLevel value) if (value == null) { throw new NullPointerException(); } - + protectionLevel_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 6; - * * @return This builder for chaining. */ public Builder clearProtectionLevel() { - + protectionLevel_ = 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); } @@ -1528,12 +1390,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.AsymmetricSignResponse) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.AsymmetricSignResponse) private static final com.google.cloud.kms.v1.AsymmetricSignResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.AsymmetricSignResponse(); } @@ -1542,27 +1404,27 @@ public static com.google.cloud.kms.v1.AsymmetricSignResponse getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsymmetricSignResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsymmetricSignResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1577,4 +1439,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.AsymmetricSignResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignResponseOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignResponseOrBuilder.java similarity index 89% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignResponseOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignResponseOrBuilder.java index aa60274e9b93..f6da2c052f90 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignResponseOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignResponseOrBuilder.java @@ -1,44 +1,23 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface AsymmetricSignResponseOrBuilder - extends +public interface AsymmetricSignResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.AsymmetricSignResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The created signature.
    * 
* * bytes signature = 1; - * * @return The signature. */ com.google.protobuf.ByteString getSignature(); /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature].
@@ -56,13 +35,10 @@ public interface AsymmetricSignResponseOrBuilder
    * 
* * .google.protobuf.Int64Value signature_crc32c = 2; - * * @return Whether the signatureCrc32c field is set. */ boolean hasSignatureCrc32C(); /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature].
@@ -80,13 +56,10 @@ public interface AsymmetricSignResponseOrBuilder
    * 
* * .google.protobuf.Int64Value signature_crc32c = 2; - * * @return The signatureCrc32c. */ com.google.protobuf.Int64Value getSignatureCrc32C(); /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature].
@@ -108,8 +81,6 @@ public interface AsymmetricSignResponseOrBuilder
   com.google.protobuf.Int64ValueOrBuilder getSignatureCrc32COrBuilder();
 
   /**
-   *
-   *
    * 
    * Integrity verification field. A flag indicating whether
    * [AsymmetricSignRequest.digest_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.digest_crc32c]
@@ -128,14 +99,11 @@ public interface AsymmetricSignResponseOrBuilder
    * 
* * bool verified_digest_crc32c = 3; - * * @return The verifiedDigestCrc32c. */ boolean getVerifiedDigestCrc32C(); /** - * - * *
    * The resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
@@ -143,13 +111,10 @@ public interface AsymmetricSignResponseOrBuilder
    * 
* * string name = 4; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
@@ -157,14 +122,12 @@ public interface AsymmetricSignResponseOrBuilder
    * 
* * string name = 4; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Integrity verification field. A flag indicating whether
    * [AsymmetricSignRequest.data_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.data_crc32c]
@@ -183,34 +146,27 @@ public interface AsymmetricSignResponseOrBuilder
    * 
* * bool verified_data_crc32c = 5; - * * @return The verifiedDataCrc32c. */ boolean getVerifiedDataCrc32C(); /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 6; - * * @return The enum numeric value on the wire for protectionLevel. */ int getProtectionLevelValue(); /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 6; - * * @return The protectionLevel. */ com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel(); diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/Certificate.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/Certificate.java similarity index 70% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/Certificate.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/Certificate.java index 25fefcb047ae..5cb58637f0f0 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/Certificate.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/Certificate.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/kms/v1/ekm_service.proto package com.google.cloud.kms.v1; /** - * - * *
  * A [Certificate][google.cloud.kms.v1.Certificate] represents an X.509
  * certificate used to authenticate HTTPS connections to EKM replicas.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.Certificate}
  */
-public final class Certificate extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Certificate extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.Certificate)
     CertificateOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Certificate.newBuilder() to construct.
   private Certificate(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Certificate() {
     rawDer_ = com.google.protobuf.ByteString.EMPTY;
     issuer_ = "";
@@ -49,41 +31,37 @@ private Certificate() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Certificate();
   }
 
   @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.kms.v1.EkmServiceProto
-        .internal_static_google_cloud_kms_v1_Certificate_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_Certificate_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.EkmServiceProto
-        .internal_static_google_cloud_kms_v1_Certificate_fieldAccessorTable
+    return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_Certificate_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.Certificate.class,
-            com.google.cloud.kms.v1.Certificate.Builder.class);
+            com.google.cloud.kms.v1.Certificate.class, com.google.cloud.kms.v1.Certificate.Builder.class);
   }
 
   public static final int RAW_DER_FIELD_NUMBER = 1;
   private com.google.protobuf.ByteString rawDer_;
   /**
-   *
-   *
    * 
    * Required. The raw certificate bytes in DER format.
    * 
* * bytes raw_der = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The rawDer. */ @java.lang.Override @@ -94,14 +72,11 @@ public com.google.protobuf.ByteString getRawDer() { public static final int PARSED_FIELD_NUMBER = 2; private boolean parsed_; /** - * - * *
    * Output only. True if the certificate was parsed successfully.
    * 
* * bool parsed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The parsed. */ @java.lang.Override @@ -112,15 +87,12 @@ public boolean getParsed() { public static final int ISSUER_FIELD_NUMBER = 3; private volatile java.lang.Object issuer_; /** - * - * *
    * Output only. The issuer distinguished name in RFC 2253 format. Only present
    * if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* * string issuer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The issuer. */ @java.lang.Override @@ -129,30 +101,30 @@ public java.lang.String getIssuer() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); issuer_ = s; return s; } } /** - * - * *
    * Output only. The issuer distinguished name in RFC 2253 format. Only present
    * if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* * string issuer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for issuer. */ @java.lang.Override - public com.google.protobuf.ByteString getIssuerBytes() { + public com.google.protobuf.ByteString + getIssuerBytes() { java.lang.Object ref = issuer_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); issuer_ = b; return b; } else { @@ -163,15 +135,12 @@ public com.google.protobuf.ByteString getIssuerBytes() { public static final int SUBJECT_FIELD_NUMBER = 4; private volatile java.lang.Object subject_; /** - * - * *
    * Output only. The subject distinguished name in RFC 2253 format. Only
    * present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* * string subject = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The subject. */ @java.lang.Override @@ -180,30 +149,30 @@ public java.lang.String getSubject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subject_ = s; return s; } } /** - * - * *
    * Output only. The subject distinguished name in RFC 2253 format. Only
    * present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* * string subject = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for subject. */ @java.lang.Override - public com.google.protobuf.ByteString getSubjectBytes() { + public com.google.protobuf.ByteString + getSubjectBytes() { java.lang.Object ref = subject_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subject_ = b; return b; } else { @@ -214,51 +183,37 @@ public com.google.protobuf.ByteString getSubjectBytes() { public static final int SUBJECT_ALTERNATIVE_DNS_NAMES_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList subjectAlternativeDnsNames_; /** - * - * *
    * Output only. The subject Alternative DNS names. Only present if
    * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* - * - * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the subjectAlternativeDnsNames. */ - public com.google.protobuf.ProtocolStringList getSubjectAlternativeDnsNamesList() { + public com.google.protobuf.ProtocolStringList + getSubjectAlternativeDnsNamesList() { return subjectAlternativeDnsNames_; } /** - * - * *
    * Output only. The subject Alternative DNS names. Only present if
    * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* - * - * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of subjectAlternativeDnsNames. */ public int getSubjectAlternativeDnsNamesCount() { return subjectAlternativeDnsNames_.size(); } /** - * - * *
    * Output only. The subject Alternative DNS names. Only present if
    * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* - * - * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The subjectAlternativeDnsNames at the given index. */ @@ -266,38 +221,29 @@ public java.lang.String getSubjectAlternativeDnsNames(int index) { return subjectAlternativeDnsNames_.get(index); } /** - * - * *
    * Output only. The subject Alternative DNS names. Only present if
    * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* - * - * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the subjectAlternativeDnsNames at the given index. */ - public com.google.protobuf.ByteString getSubjectAlternativeDnsNamesBytes(int index) { + public com.google.protobuf.ByteString + getSubjectAlternativeDnsNamesBytes(int index) { return subjectAlternativeDnsNames_.getByteString(index); } public static final int NOT_BEFORE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp notBeforeTime_; /** - * - * *
    * Output only. The certificate is not valid before this time. Only present if
    * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* - * - * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the notBeforeTime field is set. */ @java.lang.Override @@ -305,36 +251,25 @@ public boolean hasNotBeforeTime() { return notBeforeTime_ != null; } /** - * - * *
    * Output only. The certificate is not valid before this time. Only present if
    * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* - * - * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The notBeforeTime. */ @java.lang.Override public com.google.protobuf.Timestamp getNotBeforeTime() { - return notBeforeTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : notBeforeTime_; + return notBeforeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : notBeforeTime_; } /** - * - * *
    * Output only. The certificate is not valid before this time. Only present if
    * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* - * - * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getNotBeforeTimeOrBuilder() { @@ -344,17 +279,12 @@ public com.google.protobuf.TimestampOrBuilder getNotBeforeTimeOrBuilder() { public static final int NOT_AFTER_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp notAfterTime_; /** - * - * *
    * Output only. The certificate is not valid after this time. Only present if
    * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* - * - * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the notAfterTime field is set. */ @java.lang.Override @@ -362,36 +292,25 @@ public boolean hasNotAfterTime() { return notAfterTime_ != null; } /** - * - * *
    * Output only. The certificate is not valid after this time. Only present if
    * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* - * - * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The notAfterTime. */ @java.lang.Override public com.google.protobuf.Timestamp getNotAfterTime() { - return notAfterTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : notAfterTime_; + return notAfterTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : notAfterTime_; } /** - * - * *
    * Output only. The certificate is not valid after this time. Only present if
    * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* - * - * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getNotAfterTimeOrBuilder() { @@ -401,15 +320,12 @@ public com.google.protobuf.TimestampOrBuilder getNotAfterTimeOrBuilder() { public static final int SERIAL_NUMBER_FIELD_NUMBER = 8; private volatile java.lang.Object serialNumber_; /** - * - * *
    * Output only. The certificate serial number as a hex string. Only present if
    * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* * string serial_number = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serialNumber. */ @java.lang.Override @@ -418,30 +334,30 @@ public java.lang.String getSerialNumber() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serialNumber_ = s; return s; } } /** - * - * *
    * Output only. The certificate serial number as a hex string. Only present if
    * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* * string serial_number = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serialNumber. */ @java.lang.Override - public com.google.protobuf.ByteString getSerialNumberBytes() { + public com.google.protobuf.ByteString + getSerialNumberBytes() { java.lang.Object ref = serialNumber_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serialNumber_ = b; return b; } else { @@ -452,15 +368,12 @@ public com.google.protobuf.ByteString getSerialNumberBytes() { public static final int SHA256_FINGERPRINT_FIELD_NUMBER = 9; private volatile java.lang.Object sha256Fingerprint_; /** - * - * *
    * Output only. The SHA-256 certificate fingerprint as a hex string. Only
    * present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* * string sha256_fingerprint = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The sha256Fingerprint. */ @java.lang.Override @@ -469,30 +382,30 @@ public java.lang.String getSha256Fingerprint() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sha256Fingerprint_ = s; return s; } } /** - * - * *
    * Output only. The SHA-256 certificate fingerprint as a hex string. Only
    * present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* * string sha256_fingerprint = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for sha256Fingerprint. */ @java.lang.Override - public com.google.protobuf.ByteString getSha256FingerprintBytes() { + public com.google.protobuf.ByteString + getSha256FingerprintBytes() { java.lang.Object ref = sha256Fingerprint_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sha256Fingerprint_ = b; return b; } else { @@ -501,7 +414,6 @@ public com.google.protobuf.ByteString getSha256FingerprintBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -513,7 +425,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!rawDer_.isEmpty()) { output.writeBytes(1, rawDer_); } @@ -527,8 +440,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 4, subject_); } for (int i = 0; i < subjectAlternativeDnsNames_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 5, subjectAlternativeDnsNames_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, subjectAlternativeDnsNames_.getRaw(i)); } if (notBeforeTime_ != null) { output.writeMessage(6, getNotBeforeTime()); @@ -552,10 +464,12 @@ public int getSerializedSize() { size = 0; if (!rawDer_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, rawDer_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, rawDer_); } if (parsed_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, parsed_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, parsed_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issuer_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, issuer_); @@ -572,10 +486,12 @@ public int getSerializedSize() { size += 1 * getSubjectAlternativeDnsNamesList().size(); } if (notBeforeTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getNotBeforeTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getNotBeforeTime()); } if (notAfterTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getNotAfterTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getNotAfterTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serialNumber_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, serialNumber_); @@ -591,29 +507,37 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.kms.v1.Certificate)) { return super.equals(obj); } com.google.cloud.kms.v1.Certificate other = (com.google.cloud.kms.v1.Certificate) obj; - if (!getRawDer().equals(other.getRawDer())) return false; - if (getParsed() != other.getParsed()) return false; - if (!getIssuer().equals(other.getIssuer())) return false; - if (!getSubject().equals(other.getSubject())) return false; - if (!getSubjectAlternativeDnsNamesList().equals(other.getSubjectAlternativeDnsNamesList())) - return false; + if (!getRawDer() + .equals(other.getRawDer())) return false; + if (getParsed() + != other.getParsed()) return false; + if (!getIssuer() + .equals(other.getIssuer())) return false; + if (!getSubject() + .equals(other.getSubject())) return false; + if (!getSubjectAlternativeDnsNamesList() + .equals(other.getSubjectAlternativeDnsNamesList())) return false; if (hasNotBeforeTime() != other.hasNotBeforeTime()) return false; if (hasNotBeforeTime()) { - if (!getNotBeforeTime().equals(other.getNotBeforeTime())) return false; + if (!getNotBeforeTime() + .equals(other.getNotBeforeTime())) return false; } if (hasNotAfterTime() != other.hasNotAfterTime()) return false; if (hasNotAfterTime()) { - if (!getNotAfterTime().equals(other.getNotAfterTime())) return false; + if (!getNotAfterTime() + .equals(other.getNotAfterTime())) return false; } - if (!getSerialNumber().equals(other.getSerialNumber())) return false; - if (!getSha256Fingerprint().equals(other.getSha256Fingerprint())) return false; + if (!getSerialNumber() + .equals(other.getSerialNumber())) return false; + if (!getSha256Fingerprint() + .equals(other.getSha256Fingerprint())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -628,7 +552,8 @@ public int hashCode() { hash = (37 * hash) + RAW_DER_FIELD_NUMBER; hash = (53 * hash) + getRawDer().hashCode(); hash = (37 * hash) + PARSED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getParsed()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getParsed()); hash = (37 * hash) + ISSUER_FIELD_NUMBER; hash = (53 * hash) + getIssuer().hashCode(); hash = (37 * hash) + SUBJECT_FIELD_NUMBER; @@ -654,103 +579,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.Certificate parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.Certificate parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.Certificate parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.Certificate parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.kms.v1.Certificate parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.Certificate parseFrom( 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.kms.v1.Certificate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.Certificate parseFrom( - byte[] data, com.google.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.kms.v1.Certificate parseFrom(java.io.InputStream input) 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.kms.v1.Certificate parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.Certificate 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.kms.v1.Certificate parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.Certificate parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.Certificate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.Certificate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [Certificate][google.cloud.kms.v1.Certificate] represents an X.509
    * certificate used to authenticate HTTPS connections to EKM replicas.
@@ -758,32 +677,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.Certificate}
    */
-  public static final class Builder extends 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.kms.v1.Certificate)
       com.google.cloud.kms.v1.CertificateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.EkmServiceProto
-          .internal_static_google_cloud_kms_v1_Certificate_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_Certificate_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.EkmServiceProto
-          .internal_static_google_cloud_kms_v1_Certificate_fieldAccessorTable
+      return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_Certificate_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.Certificate.class,
-              com.google.cloud.kms.v1.Certificate.Builder.class);
+              com.google.cloud.kms.v1.Certificate.class, com.google.cloud.kms.v1.Certificate.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.Certificate.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();
@@ -817,9 +737,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.EkmServiceProto
-          .internal_static_google_cloud_kms_v1_Certificate_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_Certificate_descriptor;
     }
 
     @java.lang.Override
@@ -869,39 +789,38 @@ public com.google.cloud.kms.v1.Certificate 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.kms.v1.Certificate) {
-        return mergeFrom((com.google.cloud.kms.v1.Certificate) other);
+        return mergeFrom((com.google.cloud.kms.v1.Certificate)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -974,68 +893,62 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                rawDer_ = input.readBytes();
-
-                break;
-              } // case 10
-            case 16:
-              {
-                parsed_ = input.readBool();
-
-                break;
-              } // case 16
-            case 26:
-              {
-                issuer_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 26
-            case 34:
-              {
-                subject_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 34
-            case 42:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureSubjectAlternativeDnsNamesIsMutable();
-                subjectAlternativeDnsNames_.add(s);
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(getNotBeforeTimeFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getNotAfterTimeFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 58
-            case 66:
-              {
-                serialNumber_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 66
-            case 74:
-              {
-                sha256Fingerprint_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 74
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              rawDer_ = input.readBytes();
+
+              break;
+            } // case 10
+            case 16: {
+              parsed_ = input.readBool();
+
+              break;
+            } // case 16
+            case 26: {
+              issuer_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 26
+            case 34: {
+              subject_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 34
+            case 42: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureSubjectAlternativeDnsNamesIsMutable();
+              subjectAlternativeDnsNames_.add(s);
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getNotBeforeTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getNotAfterTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 58
+            case 66: {
+              serialNumber_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 66
+            case 74: {
+              sha256Fingerprint_ = input.readStringRequireUtf8();
+
+              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) {
@@ -1045,19 +958,15 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.ByteString rawDer_ = com.google.protobuf.ByteString.EMPTY;
     /**
-     *
-     *
      * 
      * Required. The raw certificate bytes in DER format.
      * 
* * bytes raw_der = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The rawDer. */ @java.lang.Override @@ -1065,54 +974,45 @@ public com.google.protobuf.ByteString getRawDer() { return rawDer_; } /** - * - * *
      * Required. The raw certificate bytes in DER format.
      * 
* * bytes raw_der = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The rawDer to set. * @return This builder for chaining. */ public Builder setRawDer(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + rawDer_ = value; onChanged(); return this; } /** - * - * *
      * Required. The raw certificate bytes in DER format.
      * 
* * bytes raw_der = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearRawDer() { - + rawDer_ = getDefaultInstance().getRawDer(); onChanged(); return this; } - private boolean parsed_; + private boolean parsed_ ; /** - * - * *
      * Output only. True if the certificate was parsed successfully.
      * 
* * bool parsed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The parsed. */ @java.lang.Override @@ -1120,36 +1020,30 @@ public boolean getParsed() { return parsed_; } /** - * - * *
      * Output only. True if the certificate was parsed successfully.
      * 
* * bool parsed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The parsed to set. * @return This builder for chaining. */ public Builder setParsed(boolean value) { - + parsed_ = value; onChanged(); return this; } /** - * - * *
      * Output only. True if the certificate was parsed successfully.
      * 
* * bool parsed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearParsed() { - + parsed_ = false; onChanged(); return this; @@ -1157,21 +1051,19 @@ public Builder clearParsed() { private java.lang.Object issuer_ = ""; /** - * - * *
      * Output only. The issuer distinguished name in RFC 2253 format. Only present
      * if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* * string issuer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The issuer. */ public java.lang.String getIssuer() { java.lang.Object ref = issuer_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); issuer_ = s; return s; @@ -1180,22 +1072,21 @@ public java.lang.String getIssuer() { } } /** - * - * *
      * Output only. The issuer distinguished name in RFC 2253 format. Only present
      * if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* * string issuer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for issuer. */ - public com.google.protobuf.ByteString getIssuerBytes() { + public com.google.protobuf.ByteString + getIssuerBytes() { java.lang.Object ref = issuer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); issuer_ = b; return b; } else { @@ -1203,64 +1094,57 @@ public com.google.protobuf.ByteString getIssuerBytes() { } } /** - * - * *
      * Output only. The issuer distinguished name in RFC 2253 format. Only present
      * if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* * string issuer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The issuer to set. * @return This builder for chaining. */ - public Builder setIssuer(java.lang.String value) { + public Builder setIssuer( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + issuer_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The issuer distinguished name in RFC 2253 format. Only present
      * if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* * string issuer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearIssuer() { - + issuer_ = getDefaultInstance().getIssuer(); onChanged(); return this; } /** - * - * *
      * Output only. The issuer distinguished name in RFC 2253 format. Only present
      * if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* * string issuer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for issuer to set. * @return This builder for chaining. */ - public Builder setIssuerBytes(com.google.protobuf.ByteString value) { + public Builder setIssuerBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + issuer_ = value; onChanged(); return this; @@ -1268,21 +1152,19 @@ public Builder setIssuerBytes(com.google.protobuf.ByteString value) { private java.lang.Object subject_ = ""; /** - * - * *
      * Output only. The subject distinguished name in RFC 2253 format. Only
      * present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* * string subject = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The subject. */ public java.lang.String getSubject() { java.lang.Object ref = subject_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subject_ = s; return s; @@ -1291,22 +1173,21 @@ public java.lang.String getSubject() { } } /** - * - * *
      * Output only. The subject distinguished name in RFC 2253 format. Only
      * present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* * string subject = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for subject. */ - public com.google.protobuf.ByteString getSubjectBytes() { + public com.google.protobuf.ByteString + getSubjectBytes() { java.lang.Object ref = subject_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subject_ = b; return b; } else { @@ -1314,125 +1195,101 @@ public com.google.protobuf.ByteString getSubjectBytes() { } } /** - * - * *
      * Output only. The subject distinguished name in RFC 2253 format. Only
      * present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* * string subject = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The subject to set. * @return This builder for chaining. */ - public Builder setSubject(java.lang.String value) { + public Builder setSubject( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subject_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The subject distinguished name in RFC 2253 format. Only
      * present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* * string subject = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearSubject() { - + subject_ = getDefaultInstance().getSubject(); onChanged(); return this; } /** - * - * *
      * Output only. The subject distinguished name in RFC 2253 format. Only
      * present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* * string subject = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for subject to set. * @return This builder for chaining. */ - public Builder setSubjectBytes(com.google.protobuf.ByteString value) { + public Builder setSubjectBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subject_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList subjectAlternativeDnsNames_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList subjectAlternativeDnsNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSubjectAlternativeDnsNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - subjectAlternativeDnsNames_ = - new com.google.protobuf.LazyStringArrayList(subjectAlternativeDnsNames_); + subjectAlternativeDnsNames_ = new com.google.protobuf.LazyStringArrayList(subjectAlternativeDnsNames_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Output only. The subject Alternative DNS names. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* - * - * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the subjectAlternativeDnsNames. */ - public com.google.protobuf.ProtocolStringList getSubjectAlternativeDnsNamesList() { + public com.google.protobuf.ProtocolStringList + getSubjectAlternativeDnsNamesList() { return subjectAlternativeDnsNames_.getUnmodifiableView(); } /** - * - * *
      * Output only. The subject Alternative DNS names. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* - * - * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of subjectAlternativeDnsNames. */ public int getSubjectAlternativeDnsNamesCount() { return subjectAlternativeDnsNames_.size(); } /** - * - * *
      * Output only. The subject Alternative DNS names. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* - * - * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The subjectAlternativeDnsNames at the given index. */ @@ -1440,105 +1297,85 @@ public java.lang.String getSubjectAlternativeDnsNames(int index) { return subjectAlternativeDnsNames_.get(index); } /** - * - * *
      * Output only. The subject Alternative DNS names. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* - * - * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the subjectAlternativeDnsNames at the given index. */ - public com.google.protobuf.ByteString getSubjectAlternativeDnsNamesBytes(int index) { + public com.google.protobuf.ByteString + getSubjectAlternativeDnsNamesBytes(int index) { return subjectAlternativeDnsNames_.getByteString(index); } /** - * - * *
      * Output only. The subject Alternative DNS names. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* - * - * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index to set the value at. * @param value The subjectAlternativeDnsNames to set. * @return This builder for chaining. */ - public Builder setSubjectAlternativeDnsNames(int index, java.lang.String value) { + public Builder setSubjectAlternativeDnsNames( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSubjectAlternativeDnsNamesIsMutable(); + throw new NullPointerException(); + } + ensureSubjectAlternativeDnsNamesIsMutable(); subjectAlternativeDnsNames_.set(index, value); onChanged(); return this; } /** - * - * *
      * Output only. The subject Alternative DNS names. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* - * - * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The subjectAlternativeDnsNames to add. * @return This builder for chaining. */ - public Builder addSubjectAlternativeDnsNames(java.lang.String value) { + public Builder addSubjectAlternativeDnsNames( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSubjectAlternativeDnsNamesIsMutable(); + throw new NullPointerException(); + } + ensureSubjectAlternativeDnsNamesIsMutable(); subjectAlternativeDnsNames_.add(value); onChanged(); return this; } /** - * - * *
      * Output only. The subject Alternative DNS names. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* - * - * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param values The subjectAlternativeDnsNames to add. * @return This builder for chaining. */ - public Builder addAllSubjectAlternativeDnsNames(java.lang.Iterable values) { + public Builder addAllSubjectAlternativeDnsNames( + java.lang.Iterable values) { ensureSubjectAlternativeDnsNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subjectAlternativeDnsNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subjectAlternativeDnsNames_); onChanged(); return this; } /** - * - * *
      * Output only. The subject Alternative DNS names. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* - * - * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearSubjectAlternativeDnsNames() { @@ -1548,25 +1385,21 @@ public Builder clearSubjectAlternativeDnsNames() { return this; } /** - * - * *
      * Output only. The subject Alternative DNS names. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* - * - * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes of the subjectAlternativeDnsNames to add. * @return This builder for chaining. */ - public Builder addSubjectAlternativeDnsNamesBytes(com.google.protobuf.ByteString value) { + public Builder addSubjectAlternativeDnsNamesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureSubjectAlternativeDnsNamesIsMutable(); subjectAlternativeDnsNames_.add(value); onChanged(); @@ -1575,61 +1408,42 @@ public Builder addSubjectAlternativeDnsNamesBytes(com.google.protobuf.ByteString private com.google.protobuf.Timestamp notBeforeTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - notBeforeTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> notBeforeTimeBuilder_; /** - * - * *
      * Output only. The certificate is not valid before this time. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* - * - * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the notBeforeTime field is set. */ public boolean hasNotBeforeTime() { return notBeforeTimeBuilder_ != null || notBeforeTime_ != null; } /** - * - * *
      * Output only. The certificate is not valid before this time. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* - * - * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The notBeforeTime. */ public com.google.protobuf.Timestamp getNotBeforeTime() { if (notBeforeTimeBuilder_ == null) { - return notBeforeTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : notBeforeTime_; + return notBeforeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : notBeforeTime_; } else { return notBeforeTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The certificate is not valid before this time. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* - * - * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setNotBeforeTime(com.google.protobuf.Timestamp value) { if (notBeforeTimeBuilder_ == null) { @@ -1645,18 +1459,15 @@ public Builder setNotBeforeTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The certificate is not valid before this time. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* - * - * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setNotBeforeTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setNotBeforeTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (notBeforeTimeBuilder_ == null) { notBeforeTime_ = builderForValue.build(); onChanged(); @@ -1667,24 +1478,18 @@ public Builder setNotBeforeTime(com.google.protobuf.Timestamp.Builder builderFor return this; } /** - * - * *
      * Output only. The certificate is not valid before this time. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* - * - * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeNotBeforeTime(com.google.protobuf.Timestamp value) { if (notBeforeTimeBuilder_ == null) { if (notBeforeTime_ != null) { notBeforeTime_ = - com.google.protobuf.Timestamp.newBuilder(notBeforeTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(notBeforeTime_).mergeFrom(value).buildPartial(); } else { notBeforeTime_ = value; } @@ -1696,16 +1501,12 @@ public Builder mergeNotBeforeTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The certificate is not valid before this time. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* - * - * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearNotBeforeTime() { if (notBeforeTimeBuilder_ == null) { @@ -1719,67 +1520,51 @@ public Builder clearNotBeforeTime() { return this; } /** - * - * *
      * Output only. The certificate is not valid before this time. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* - * - * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getNotBeforeTimeBuilder() { - + onChanged(); return getNotBeforeTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The certificate is not valid before this time. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* - * - * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getNotBeforeTimeOrBuilder() { if (notBeforeTimeBuilder_ != null) { return notBeforeTimeBuilder_.getMessageOrBuilder(); } else { - return notBeforeTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : notBeforeTime_; + return notBeforeTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : notBeforeTime_; } } /** - * - * *
      * Output only. The certificate is not valid before this time. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* - * - * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getNotBeforeTimeFieldBuilder() { if (notBeforeTimeBuilder_ == null) { - notBeforeTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getNotBeforeTime(), getParentForChildren(), isClean()); + notBeforeTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getNotBeforeTime(), + getParentForChildren(), + isClean()); notBeforeTime_ = null; } return notBeforeTimeBuilder_; @@ -1787,61 +1572,42 @@ public com.google.protobuf.TimestampOrBuilder getNotBeforeTimeOrBuilder() { private com.google.protobuf.Timestamp notAfterTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - notAfterTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> notAfterTimeBuilder_; /** - * - * *
      * Output only. The certificate is not valid after this time. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* - * - * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the notAfterTime field is set. */ public boolean hasNotAfterTime() { return notAfterTimeBuilder_ != null || notAfterTime_ != null; } /** - * - * *
      * Output only. The certificate is not valid after this time. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* - * - * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The notAfterTime. */ public com.google.protobuf.Timestamp getNotAfterTime() { if (notAfterTimeBuilder_ == null) { - return notAfterTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : notAfterTime_; + return notAfterTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : notAfterTime_; } else { return notAfterTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The certificate is not valid after this time. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* - * - * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setNotAfterTime(com.google.protobuf.Timestamp value) { if (notAfterTimeBuilder_ == null) { @@ -1857,18 +1623,15 @@ public Builder setNotAfterTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The certificate is not valid after this time. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* - * - * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setNotAfterTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setNotAfterTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (notAfterTimeBuilder_ == null) { notAfterTime_ = builderForValue.build(); onChanged(); @@ -1879,24 +1642,18 @@ public Builder setNotAfterTime(com.google.protobuf.Timestamp.Builder builderForV return this; } /** - * - * *
      * Output only. The certificate is not valid after this time. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* - * - * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeNotAfterTime(com.google.protobuf.Timestamp value) { if (notAfterTimeBuilder_ == null) { if (notAfterTime_ != null) { notAfterTime_ = - com.google.protobuf.Timestamp.newBuilder(notAfterTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(notAfterTime_).mergeFrom(value).buildPartial(); } else { notAfterTime_ = value; } @@ -1908,16 +1665,12 @@ public Builder mergeNotAfterTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The certificate is not valid after this time. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* - * - * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearNotAfterTime() { if (notAfterTimeBuilder_ == null) { @@ -1931,67 +1684,51 @@ public Builder clearNotAfterTime() { return this; } /** - * - * *
      * Output only. The certificate is not valid after this time. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* - * - * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getNotAfterTimeBuilder() { - + onChanged(); return getNotAfterTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The certificate is not valid after this time. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* - * - * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getNotAfterTimeOrBuilder() { if (notAfterTimeBuilder_ != null) { return notAfterTimeBuilder_.getMessageOrBuilder(); } else { - return notAfterTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : notAfterTime_; + return notAfterTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : notAfterTime_; } } /** - * - * *
      * Output only. The certificate is not valid after this time. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* - * - * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp not_after_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> getNotAfterTimeFieldBuilder() { if (notAfterTimeBuilder_ == null) { - notAfterTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getNotAfterTime(), getParentForChildren(), isClean()); + notAfterTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getNotAfterTime(), + getParentForChildren(), + isClean()); notAfterTime_ = null; } return notAfterTimeBuilder_; @@ -1999,21 +1736,19 @@ public com.google.protobuf.TimestampOrBuilder getNotAfterTimeOrBuilder() { private java.lang.Object serialNumber_ = ""; /** - * - * *
      * Output only. The certificate serial number as a hex string. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* * string serial_number = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serialNumber. */ public java.lang.String getSerialNumber() { java.lang.Object ref = serialNumber_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serialNumber_ = s; return s; @@ -2022,22 +1757,21 @@ public java.lang.String getSerialNumber() { } } /** - * - * *
      * Output only. The certificate serial number as a hex string. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* * string serial_number = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serialNumber. */ - public com.google.protobuf.ByteString getSerialNumberBytes() { + public com.google.protobuf.ByteString + getSerialNumberBytes() { java.lang.Object ref = serialNumber_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serialNumber_ = b; return b; } else { @@ -2045,64 +1779,57 @@ public com.google.protobuf.ByteString getSerialNumberBytes() { } } /** - * - * *
      * Output only. The certificate serial number as a hex string. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* * string serial_number = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The serialNumber to set. * @return This builder for chaining. */ - public Builder setSerialNumber(java.lang.String value) { + public Builder setSerialNumber( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serialNumber_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The certificate serial number as a hex string. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* * string serial_number = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearSerialNumber() { - + serialNumber_ = getDefaultInstance().getSerialNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The certificate serial number as a hex string. Only present if
      * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* * string serial_number = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for serialNumber to set. * @return This builder for chaining. */ - public Builder setSerialNumberBytes(com.google.protobuf.ByteString value) { + public Builder setSerialNumberBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serialNumber_ = value; onChanged(); return this; @@ -2110,21 +1837,19 @@ public Builder setSerialNumberBytes(com.google.protobuf.ByteString value) { private java.lang.Object sha256Fingerprint_ = ""; /** - * - * *
      * Output only. The SHA-256 certificate fingerprint as a hex string. Only
      * present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* * string sha256_fingerprint = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The sha256Fingerprint. */ public java.lang.String getSha256Fingerprint() { java.lang.Object ref = sha256Fingerprint_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sha256Fingerprint_ = s; return s; @@ -2133,22 +1858,21 @@ public java.lang.String getSha256Fingerprint() { } } /** - * - * *
      * Output only. The SHA-256 certificate fingerprint as a hex string. Only
      * present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* * string sha256_fingerprint = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for sha256Fingerprint. */ - public com.google.protobuf.ByteString getSha256FingerprintBytes() { + public com.google.protobuf.ByteString + getSha256FingerprintBytes() { java.lang.Object ref = sha256Fingerprint_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sha256Fingerprint_ = b; return b; } else { @@ -2156,71 +1880,64 @@ public com.google.protobuf.ByteString getSha256FingerprintBytes() { } } /** - * - * *
      * Output only. The SHA-256 certificate fingerprint as a hex string. Only
      * present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* * string sha256_fingerprint = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The sha256Fingerprint to set. * @return This builder for chaining. */ - public Builder setSha256Fingerprint(java.lang.String value) { + public Builder setSha256Fingerprint( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sha256Fingerprint_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The SHA-256 certificate fingerprint as a hex string. Only
      * present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* * string sha256_fingerprint = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearSha256Fingerprint() { - + sha256Fingerprint_ = getDefaultInstance().getSha256Fingerprint(); onChanged(); return this; } /** - * - * *
      * Output only. The SHA-256 certificate fingerprint as a hex string. Only
      * present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
      * 
* * string sha256_fingerprint = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for sha256Fingerprint to set. * @return This builder for chaining. */ - public Builder setSha256FingerprintBytes(com.google.protobuf.ByteString value) { + public Builder setSha256FingerprintBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sha256Fingerprint_ = 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); } @@ -2230,12 +1947,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.Certificate) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.Certificate) private static final com.google.cloud.kms.v1.Certificate DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.Certificate(); } @@ -2244,27 +1961,27 @@ public static com.google.cloud.kms.v1.Certificate getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Certificate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Certificate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2279,4 +1996,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.Certificate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CertificateOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CertificateOrBuilder.java similarity index 70% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CertificateOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CertificateOrBuilder.java index 5c8e5694728c..0a98a70d0547 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CertificateOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CertificateOrBuilder.java @@ -1,310 +1,222 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/v1/ekm_service.proto package com.google.cloud.kms.v1; -public interface CertificateOrBuilder - extends +public interface CertificateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.Certificate) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The raw certificate bytes in DER format.
    * 
* * bytes raw_der = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The rawDer. */ com.google.protobuf.ByteString getRawDer(); /** - * - * *
    * Output only. True if the certificate was parsed successfully.
    * 
* * bool parsed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The parsed. */ boolean getParsed(); /** - * - * *
    * Output only. The issuer distinguished name in RFC 2253 format. Only present
    * if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* * string issuer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The issuer. */ java.lang.String getIssuer(); /** - * - * *
    * Output only. The issuer distinguished name in RFC 2253 format. Only present
    * if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* * string issuer = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for issuer. */ - com.google.protobuf.ByteString getIssuerBytes(); + com.google.protobuf.ByteString + getIssuerBytes(); /** - * - * *
    * Output only. The subject distinguished name in RFC 2253 format. Only
    * present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* * string subject = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The subject. */ java.lang.String getSubject(); /** - * - * *
    * Output only. The subject distinguished name in RFC 2253 format. Only
    * present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* * string subject = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for subject. */ - com.google.protobuf.ByteString getSubjectBytes(); + com.google.protobuf.ByteString + getSubjectBytes(); /** - * - * *
    * Output only. The subject Alternative DNS names. Only present if
    * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* - * - * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the subjectAlternativeDnsNames. */ - java.util.List getSubjectAlternativeDnsNamesList(); + java.util.List + getSubjectAlternativeDnsNamesList(); /** - * - * *
    * Output only. The subject Alternative DNS names. Only present if
    * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* - * - * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of subjectAlternativeDnsNames. */ int getSubjectAlternativeDnsNamesCount(); /** - * - * *
    * Output only. The subject Alternative DNS names. Only present if
    * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* - * - * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The subjectAlternativeDnsNames at the given index. */ java.lang.String getSubjectAlternativeDnsNames(int index); /** - * - * *
    * Output only. The subject Alternative DNS names. Only present if
    * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* - * - * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string subject_alternative_dns_names = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the subjectAlternativeDnsNames at the given index. */ - com.google.protobuf.ByteString getSubjectAlternativeDnsNamesBytes(int index); + com.google.protobuf.ByteString + getSubjectAlternativeDnsNamesBytes(int index); /** - * - * *
    * Output only. The certificate is not valid before this time. Only present if
    * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* - * - * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the notBeforeTime field is set. */ boolean hasNotBeforeTime(); /** - * - * *
    * Output only. The certificate is not valid before this time. Only present if
    * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* - * - * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The notBeforeTime. */ com.google.protobuf.Timestamp getNotBeforeTime(); /** - * - * *
    * Output only. The certificate is not valid before this time. Only present if
    * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* - * - * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp not_before_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getNotBeforeTimeOrBuilder(); /** - * - * *
    * Output only. The certificate is not valid after this time. Only present if
    * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* - * - * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the notAfterTime field is set. */ boolean hasNotAfterTime(); /** - * - * *
    * Output only. The certificate is not valid after this time. Only present if
    * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* - * - * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The notAfterTime. */ com.google.protobuf.Timestamp getNotAfterTime(); /** - * - * *
    * Output only. The certificate is not valid after this time. Only present if
    * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* - * - * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp not_after_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getNotAfterTimeOrBuilder(); /** - * - * *
    * Output only. The certificate serial number as a hex string. Only present if
    * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* * string serial_number = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serialNumber. */ java.lang.String getSerialNumber(); /** - * - * *
    * Output only. The certificate serial number as a hex string. Only present if
    * [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* * string serial_number = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serialNumber. */ - com.google.protobuf.ByteString getSerialNumberBytes(); + com.google.protobuf.ByteString + getSerialNumberBytes(); /** - * - * *
    * Output only. The SHA-256 certificate fingerprint as a hex string. Only
    * present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* * string sha256_fingerprint = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The sha256Fingerprint. */ java.lang.String getSha256Fingerprint(); /** - * - * *
    * Output only. The SHA-256 certificate fingerprint as a hex string. Only
    * present if [parsed][google.cloud.kms.v1.Certificate.parsed] is true.
    * 
* * string sha256_fingerprint = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for sha256Fingerprint. */ - com.google.protobuf.ByteString getSha256FingerprintBytes(); + com.google.protobuf.ByteString + getSha256FingerprintBytes(); } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateCryptoKeyRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateCryptoKeyRequest.java similarity index 68% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateCryptoKeyRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateCryptoKeyRequest.java index ade9ef4ae19b..6fe44f060234 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateCryptoKeyRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateCryptoKeyRequest.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for
  * [KeyManagementService.CreateCryptoKey][google.cloud.kms.v1.KeyManagementService.CreateCryptoKey].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.CreateCryptoKeyRequest}
  */
-public final class CreateCryptoKeyRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateCryptoKeyRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.CreateCryptoKeyRequest)
     CreateCryptoKeyRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateCryptoKeyRequest.newBuilder() to construct.
   private CreateCryptoKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateCryptoKeyRequest() {
     parent_ = "";
     cryptoKeyId_ = "";
@@ -45,44 +27,38 @@ private CreateCryptoKeyRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateCryptoKeyRequest();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_CreateCryptoKeyRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_CreateCryptoKeyRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_CreateCryptoKeyRequest_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_CreateCryptoKeyRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.CreateCryptoKeyRequest.class,
-            com.google.cloud.kms.v1.CreateCryptoKeyRequest.Builder.class);
+            com.google.cloud.kms.v1.CreateCryptoKeyRequest.class, com.google.cloud.kms.v1.CreateCryptoKeyRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
-   *
-   *
    * 
    * Required. The [name][google.cloud.kms.v1.KeyRing.name] of the KeyRing
    * associated with the [CryptoKeys][google.cloud.kms.v1.CryptoKey].
    * 
* - * - * string parent = 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,32 +67,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 [name][google.cloud.kms.v1.KeyRing.name] of the KeyRing
    * associated with the [CryptoKeys][google.cloud.kms.v1.CryptoKey].
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -127,15 +101,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CRYPTO_KEY_ID_FIELD_NUMBER = 2; private volatile java.lang.Object cryptoKeyId_; /** - * - * *
    * Required. It must be unique within a KeyRing and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string crypto_key_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The cryptoKeyId. */ @java.lang.Override @@ -144,30 +115,30 @@ public java.lang.String getCryptoKeyId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cryptoKeyId_ = s; return s; } } /** - * - * *
    * Required. It must be unique within a KeyRing and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string crypto_key_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for cryptoKeyId. */ @java.lang.Override - public com.google.protobuf.ByteString getCryptoKeyIdBytes() { + public com.google.protobuf.ByteString + getCryptoKeyIdBytes() { java.lang.Object ref = cryptoKeyId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cryptoKeyId_ = b; return b; } else { @@ -178,16 +149,12 @@ public com.google.protobuf.ByteString getCryptoKeyIdBytes() { public static final int CRYPTO_KEY_FIELD_NUMBER = 3; private com.google.cloud.kms.v1.CryptoKey cryptoKey_; /** - * - * *
    * Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field
    * values.
    * 
* - * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the cryptoKey field is set. */ @java.lang.Override @@ -195,16 +162,12 @@ public boolean hasCryptoKey() { return cryptoKey_ != null; } /** - * - * *
    * Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field
    * values.
    * 
* - * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The cryptoKey. */ @java.lang.Override @@ -212,15 +175,12 @@ public com.google.cloud.kms.v1.CryptoKey getCryptoKey() { return cryptoKey_ == null ? com.google.cloud.kms.v1.CryptoKey.getDefaultInstance() : cryptoKey_; } /** - * - * *
    * Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field
    * values.
    * 
* - * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeyOrBuilder() { @@ -230,8 +190,6 @@ public com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeyOrBuilder() { public static final int SKIP_INITIAL_VERSION_CREATION_FIELD_NUMBER = 5; private boolean skipInitialVersionCreation_; /** - * - * *
    * If set to true, the request will create a
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] without any
@@ -244,7 +202,6 @@ public com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeyOrBuilder() {
    * 
* * bool skip_initial_version_creation = 5; - * * @return The skipInitialVersionCreation. */ @java.lang.Override @@ -253,7 +210,6 @@ public boolean getSkipInitialVersionCreation() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -294,10 +251,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cryptoKeyId_); } if (cryptoKey_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCryptoKey()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCryptoKey()); } if (skipInitialVersionCreation_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, skipInitialVersionCreation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, skipInitialVersionCreation_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -307,21 +266,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.kms.v1.CreateCryptoKeyRequest)) { return super.equals(obj); } - com.google.cloud.kms.v1.CreateCryptoKeyRequest other = - (com.google.cloud.kms.v1.CreateCryptoKeyRequest) obj; + com.google.cloud.kms.v1.CreateCryptoKeyRequest other = (com.google.cloud.kms.v1.CreateCryptoKeyRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getCryptoKeyId().equals(other.getCryptoKeyId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getCryptoKeyId() + .equals(other.getCryptoKeyId())) return false; if (hasCryptoKey() != other.hasCryptoKey()) return false; if (hasCryptoKey()) { - if (!getCryptoKey().equals(other.getCryptoKey())) return false; + if (!getCryptoKey() + .equals(other.getCryptoKey())) return false; } - if (getSkipInitialVersionCreation() != other.getSkipInitialVersionCreation()) return false; + if (getSkipInitialVersionCreation() + != other.getSkipInitialVersionCreation()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -342,110 +304,104 @@ public int hashCode() { hash = (53 * hash) + getCryptoKey().hashCode(); } hash = (37 * hash) + SKIP_INITIAL_VERSION_CREATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipInitialVersionCreation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSkipInitialVersionCreation()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.kms.v1.CreateCryptoKeyRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.CreateCryptoKeyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.CreateCryptoKeyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.CreateCryptoKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.CreateCryptoKeyRequest parseFrom( 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.kms.v1.CreateCryptoKeyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.CreateCryptoKeyRequest parseFrom( - byte[] data, com.google.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.kms.v1.CreateCryptoKeyRequest parseFrom(java.io.InputStream input) 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.kms.v1.CreateCryptoKeyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.CreateCryptoKeyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.CreateCryptoKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.CreateCryptoKeyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.CreateCryptoKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.CreateCryptoKeyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.CreateCryptoKeyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for
    * [KeyManagementService.CreateCryptoKey][google.cloud.kms.v1.KeyManagementService.CreateCryptoKey].
@@ -453,32 +409,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.CreateCryptoKeyRequest}
    */
-  public static final class Builder extends 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.kms.v1.CreateCryptoKeyRequest)
       com.google.cloud.kms.v1.CreateCryptoKeyRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_CreateCryptoKeyRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_CreateCryptoKeyRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_CreateCryptoKeyRequest_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_CreateCryptoKeyRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.CreateCryptoKeyRequest.class,
-              com.google.cloud.kms.v1.CreateCryptoKeyRequest.Builder.class);
+              com.google.cloud.kms.v1.CreateCryptoKeyRequest.class, com.google.cloud.kms.v1.CreateCryptoKeyRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.CreateCryptoKeyRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -498,9 +455,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_CreateCryptoKeyRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_CreateCryptoKeyRequest_descriptor;
     }
 
     @java.lang.Override
@@ -519,8 +476,7 @@ public com.google.cloud.kms.v1.CreateCryptoKeyRequest build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.CreateCryptoKeyRequest buildPartial() {
-      com.google.cloud.kms.v1.CreateCryptoKeyRequest result =
-          new com.google.cloud.kms.v1.CreateCryptoKeyRequest(this);
+      com.google.cloud.kms.v1.CreateCryptoKeyRequest result = new com.google.cloud.kms.v1.CreateCryptoKeyRequest(this);
       result.parent_ = parent_;
       result.cryptoKeyId_ = cryptoKeyId_;
       if (cryptoKeyBuilder_ == null) {
@@ -537,39 +493,38 @@ public com.google.cloud.kms.v1.CreateCryptoKeyRequest 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.kms.v1.CreateCryptoKeyRequest) {
-        return mergeFrom((com.google.cloud.kms.v1.CreateCryptoKeyRequest) other);
+        return mergeFrom((com.google.cloud.kms.v1.CreateCryptoKeyRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -618,37 +573,34 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 10
-            case 18:
-              {
-                cryptoKeyId_ = input.readStringRequireUtf8();
+              break;
+            } // case 10
+            case 18: {
+              cryptoKeyId_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getCryptoKeyFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getCryptoKeyFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 26
-            case 40:
-              {
-                skipInitialVersionCreation_ = input.readBool();
+              break;
+            } // case 26
+            case 40: {
+              skipInitialVersionCreation_ = input.readBool();
 
-                break;
-              } // case 40
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              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) {
@@ -661,23 +613,19 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The [name][google.cloud.kms.v1.KeyRing.name] of the KeyRing
      * associated with the [CryptoKeys][google.cloud.kms.v1.CryptoKey].
      * 
* - * - * string parent = 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; @@ -686,24 +634,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The [name][google.cloud.kms.v1.KeyRing.name] of the KeyRing
      * associated with the [CryptoKeys][google.cloud.kms.v1.CryptoKey].
      * 
* - * - * string parent = 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 { @@ -711,70 +656,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The [name][google.cloud.kms.v1.KeyRing.name] of the KeyRing
      * associated with the [CryptoKeys][google.cloud.kms.v1.CryptoKey].
      * 
* - * - * 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 [name][google.cloud.kms.v1.KeyRing.name] of the KeyRing
      * associated with the [CryptoKeys][google.cloud.kms.v1.CryptoKey].
      * 
* - * - * string 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 [name][google.cloud.kms.v1.KeyRing.name] of the KeyRing
      * associated with the [CryptoKeys][google.cloud.kms.v1.CryptoKey].
      * 
* - * - * 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; @@ -782,21 +714,19 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object cryptoKeyId_ = ""; /** - * - * *
      * Required. It must be unique within a KeyRing and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string crypto_key_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The cryptoKeyId. */ public java.lang.String getCryptoKeyId() { java.lang.Object ref = cryptoKeyId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cryptoKeyId_ = s; return s; @@ -805,22 +735,21 @@ public java.lang.String getCryptoKeyId() { } } /** - * - * *
      * Required. It must be unique within a KeyRing and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string crypto_key_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for cryptoKeyId. */ - public com.google.protobuf.ByteString getCryptoKeyIdBytes() { + public com.google.protobuf.ByteString + getCryptoKeyIdBytes() { java.lang.Object ref = cryptoKeyId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cryptoKeyId_ = b; return b; } else { @@ -828,64 +757,57 @@ public com.google.protobuf.ByteString getCryptoKeyIdBytes() { } } /** - * - * *
      * Required. It must be unique within a KeyRing and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string crypto_key_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The cryptoKeyId to set. * @return This builder for chaining. */ - public Builder setCryptoKeyId(java.lang.String value) { + public Builder setCryptoKeyId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cryptoKeyId_ = value; onChanged(); return this; } /** - * - * *
      * Required. It must be unique within a KeyRing and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string crypto_key_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearCryptoKeyId() { - + cryptoKeyId_ = getDefaultInstance().getCryptoKeyId(); onChanged(); return this; } /** - * - * *
      * Required. It must be unique within a KeyRing and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string crypto_key_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for cryptoKeyId to set. * @return This builder for chaining. */ - public Builder setCryptoKeyIdBytes(com.google.protobuf.ByteString value) { + public Builder setCryptoKeyIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cryptoKeyId_ = value; onChanged(); return this; @@ -893,61 +815,42 @@ public Builder setCryptoKeyIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.kms.v1.CryptoKey cryptoKey_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.CryptoKey, - com.google.cloud.kms.v1.CryptoKey.Builder, - com.google.cloud.kms.v1.CryptoKeyOrBuilder> - cryptoKeyBuilder_; + com.google.cloud.kms.v1.CryptoKey, com.google.cloud.kms.v1.CryptoKey.Builder, com.google.cloud.kms.v1.CryptoKeyOrBuilder> cryptoKeyBuilder_; /** - * - * *
      * Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field
      * values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the cryptoKey field is set. */ public boolean hasCryptoKey() { return cryptoKeyBuilder_ != null || cryptoKey_ != null; } /** - * - * *
      * Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field
      * values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The cryptoKey. */ public com.google.cloud.kms.v1.CryptoKey getCryptoKey() { if (cryptoKeyBuilder_ == null) { - return cryptoKey_ == null - ? com.google.cloud.kms.v1.CryptoKey.getDefaultInstance() - : cryptoKey_; + return cryptoKey_ == null ? com.google.cloud.kms.v1.CryptoKey.getDefaultInstance() : cryptoKey_; } else { return cryptoKeyBuilder_.getMessage(); } } /** - * - * *
      * Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field
      * values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCryptoKey(com.google.cloud.kms.v1.CryptoKey value) { if (cryptoKeyBuilder_ == null) { @@ -963,18 +866,15 @@ public Builder setCryptoKey(com.google.cloud.kms.v1.CryptoKey value) { return this; } /** - * - * *
      * Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field
      * values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setCryptoKey(com.google.cloud.kms.v1.CryptoKey.Builder builderForValue) { + public Builder setCryptoKey( + com.google.cloud.kms.v1.CryptoKey.Builder builderForValue) { if (cryptoKeyBuilder_ == null) { cryptoKey_ = builderForValue.build(); onChanged(); @@ -985,24 +885,18 @@ public Builder setCryptoKey(com.google.cloud.kms.v1.CryptoKey.Builder builderFor return this; } /** - * - * *
      * Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field
      * values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeCryptoKey(com.google.cloud.kms.v1.CryptoKey value) { if (cryptoKeyBuilder_ == null) { if (cryptoKey_ != null) { cryptoKey_ = - com.google.cloud.kms.v1.CryptoKey.newBuilder(cryptoKey_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.kms.v1.CryptoKey.newBuilder(cryptoKey_).mergeFrom(value).buildPartial(); } else { cryptoKey_ = value; } @@ -1014,16 +908,12 @@ public Builder mergeCryptoKey(com.google.cloud.kms.v1.CryptoKey value) { return this; } /** - * - * *
      * Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field
      * values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCryptoKey() { if (cryptoKeyBuilder_ == null) { @@ -1037,76 +927,58 @@ public Builder clearCryptoKey() { return this; } /** - * - * *
      * Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field
      * values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.kms.v1.CryptoKey.Builder getCryptoKeyBuilder() { - + onChanged(); return getCryptoKeyFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field
      * values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeyOrBuilder() { if (cryptoKeyBuilder_ != null) { return cryptoKeyBuilder_.getMessageOrBuilder(); } else { - return cryptoKey_ == null - ? com.google.cloud.kms.v1.CryptoKey.getDefaultInstance() - : cryptoKey_; + return cryptoKey_ == null ? + com.google.cloud.kms.v1.CryptoKey.getDefaultInstance() : cryptoKey_; } } /** - * - * *
      * Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field
      * values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.CryptoKey, - com.google.cloud.kms.v1.CryptoKey.Builder, - com.google.cloud.kms.v1.CryptoKeyOrBuilder> + com.google.cloud.kms.v1.CryptoKey, com.google.cloud.kms.v1.CryptoKey.Builder, com.google.cloud.kms.v1.CryptoKeyOrBuilder> getCryptoKeyFieldBuilder() { if (cryptoKeyBuilder_ == null) { - cryptoKeyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.CryptoKey, - com.google.cloud.kms.v1.CryptoKey.Builder, - com.google.cloud.kms.v1.CryptoKeyOrBuilder>( - getCryptoKey(), getParentForChildren(), isClean()); + cryptoKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.kms.v1.CryptoKey, com.google.cloud.kms.v1.CryptoKey.Builder, com.google.cloud.kms.v1.CryptoKeyOrBuilder>( + getCryptoKey(), + getParentForChildren(), + isClean()); cryptoKey_ = null; } return cryptoKeyBuilder_; } - private boolean skipInitialVersionCreation_; + private boolean skipInitialVersionCreation_ ; /** - * - * *
      * If set to true, the request will create a
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] without any
@@ -1119,7 +991,6 @@ public com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeyOrBuilder() {
      * 
* * bool skip_initial_version_creation = 5; - * * @return The skipInitialVersionCreation. */ @java.lang.Override @@ -1127,8 +998,6 @@ public boolean getSkipInitialVersionCreation() { return skipInitialVersionCreation_; } /** - * - * *
      * If set to true, the request will create a
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] without any
@@ -1141,19 +1010,16 @@ public boolean getSkipInitialVersionCreation() {
      * 
* * bool skip_initial_version_creation = 5; - * * @param value The skipInitialVersionCreation to set. * @return This builder for chaining. */ public Builder setSkipInitialVersionCreation(boolean value) { - + skipInitialVersionCreation_ = value; onChanged(); return this; } /** - * - * *
      * If set to true, the request will create a
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] without any
@@ -1166,18 +1032,17 @@ public Builder setSkipInitialVersionCreation(boolean value) {
      * 
* * bool skip_initial_version_creation = 5; - * * @return This builder for chaining. */ public Builder clearSkipInitialVersionCreation() { - + skipInitialVersionCreation_ = 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); } @@ -1187,12 +1052,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.CreateCryptoKeyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.CreateCryptoKeyRequest) private static final com.google.cloud.kms.v1.CreateCryptoKeyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.CreateCryptoKeyRequest(); } @@ -1201,27 +1066,27 @@ public static com.google.cloud.kms.v1.CreateCryptoKeyRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCryptoKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCryptoKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1236,4 +1101,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.CreateCryptoKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateCryptoKeyRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateCryptoKeyRequestOrBuilder.java similarity index 68% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateCryptoKeyRequestOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateCryptoKeyRequestOrBuilder.java index 040cde8336af..72d645526637 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateCryptoKeyRequestOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateCryptoKeyRequestOrBuilder.java @@ -1,130 +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/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface CreateCryptoKeyRequestOrBuilder - extends +public interface CreateCryptoKeyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.CreateCryptoKeyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The [name][google.cloud.kms.v1.KeyRing.name] of the KeyRing
    * associated with the [CryptoKeys][google.cloud.kms.v1.CryptoKey].
    * 
* - * - * string parent = 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 [name][google.cloud.kms.v1.KeyRing.name] of the KeyRing
    * associated with the [CryptoKeys][google.cloud.kms.v1.CryptoKey].
    * 
* - * - * string parent = 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. It must be unique within a KeyRing and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string crypto_key_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The cryptoKeyId. */ java.lang.String getCryptoKeyId(); /** - * - * *
    * Required. It must be unique within a KeyRing and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string crypto_key_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for cryptoKeyId. */ - com.google.protobuf.ByteString getCryptoKeyIdBytes(); + com.google.protobuf.ByteString + getCryptoKeyIdBytes(); /** - * - * *
    * Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field
    * values.
    * 
* - * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the cryptoKey field is set. */ boolean hasCryptoKey(); /** - * - * *
    * Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field
    * values.
    * 
* - * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The cryptoKey. */ com.google.cloud.kms.v1.CryptoKey getCryptoKey(); /** - * - * *
    * Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field
    * values.
    * 
* - * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeyOrBuilder(); /** - * - * *
    * If set to true, the request will create a
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] without any
@@ -137,7 +94,6 @@ public interface CreateCryptoKeyRequestOrBuilder
    * 
* * bool skip_initial_version_creation = 5; - * * @return The skipInitialVersionCreation. */ boolean getSkipInitialVersionCreation(); diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateCryptoKeyVersionRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateCryptoKeyVersionRequest.java similarity index 63% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateCryptoKeyVersionRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateCryptoKeyVersionRequest.java index c427d5254ce7..ef38eb604dbb 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateCryptoKeyVersionRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateCryptoKeyVersionRequest.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for
  * [KeyManagementService.CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion].
@@ -28,61 +11,54 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.CreateCryptoKeyVersionRequest}
  */
-public final class CreateCryptoKeyVersionRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateCryptoKeyVersionRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.CreateCryptoKeyVersionRequest)
     CreateCryptoKeyVersionRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateCryptoKeyVersionRequest.newBuilder() to construct.
   private CreateCryptoKeyVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateCryptoKeyVersionRequest() {
     parent_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateCryptoKeyVersionRequest();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_CreateCryptoKeyVersionRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_CreateCryptoKeyVersionRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_CreateCryptoKeyVersionRequest_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_CreateCryptoKeyVersionRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest.class,
-            com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest.Builder.class);
+            com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest.class, com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
-   *
-   *
    * 
    * Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with the
    * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
    * 
* - * - * string parent = 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 [name][google.cloud.kms.v1.CryptoKey.name] of the
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with the
    * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
    * 
* - * - * string parent = 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,17 +102,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CRYPTO_KEY_VERSION_FIELD_NUMBER = 2; private com.google.cloud.kms.v1.CryptoKeyVersion cryptoKeyVersion_; /** - * - * *
    * Required. A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
    * initial field values.
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the cryptoKeyVersion field is set. */ @java.lang.Override @@ -146,36 +115,25 @@ public boolean hasCryptoKeyVersion() { return cryptoKeyVersion_ != null; } /** - * - * *
    * Required. A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
    * initial field values.
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The cryptoKeyVersion. */ @java.lang.Override public com.google.cloud.kms.v1.CryptoKeyVersion getCryptoKeyVersion() { - return cryptoKeyVersion_ == null - ? com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance() - : cryptoKeyVersion_; + return cryptoKeyVersion_ == null ? com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance() : cryptoKeyVersion_; } /** - * - * *
    * Required. A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
    * initial field values.
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder getCryptoKeyVersionOrBuilder() { @@ -183,7 +141,6 @@ public com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder getCryptoKeyVersionOrBu } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -195,7 +152,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -215,7 +173,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (cryptoKeyVersion_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCryptoKeyVersion()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCryptoKeyVersion()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -225,18 +184,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.kms.v1.CreateCryptoKeyVersionRequest)) { return super.equals(obj); } - com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest other = - (com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest) obj; + com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest other = (com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasCryptoKeyVersion() != other.hasCryptoKeyVersion()) return false; if (hasCryptoKeyVersion()) { - if (!getCryptoKeyVersion().equals(other.getCryptoKeyVersion())) return false; + if (!getCryptoKeyVersion() + .equals(other.getCryptoKeyVersion())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -261,104 +221,96 @@ public int hashCode() { } public static com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest 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.kms.v1.CreateCryptoKeyVersionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.CreateCryptoKeyVersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest parseFrom( 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.kms.v1.CreateCryptoKeyVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest parseFrom( - byte[] data, com.google.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.kms.v1.CreateCryptoKeyVersionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.CreateCryptoKeyVersionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.CreateCryptoKeyVersionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.CreateCryptoKeyVersionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.CreateCryptoKeyVersionRequest prototype) { + public static Builder newBuilder(com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for
    * [KeyManagementService.CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion].
@@ -366,32 +318,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.CreateCryptoKeyVersionRequest}
    */
-  public static final class Builder extends 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.kms.v1.CreateCryptoKeyVersionRequest)
       com.google.cloud.kms.v1.CreateCryptoKeyVersionRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_CreateCryptoKeyVersionRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_CreateCryptoKeyVersionRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_CreateCryptoKeyVersionRequest_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_CreateCryptoKeyVersionRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest.class,
-              com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest.Builder.class);
+              com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest.class, com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -407,9 +360,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_CreateCryptoKeyVersionRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_CreateCryptoKeyVersionRequest_descriptor;
     }
 
     @java.lang.Override
@@ -428,8 +381,7 @@ public com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest buildPartial() {
-      com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest result =
-          new com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest(this);
+      com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest result = new com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest(this);
       result.parent_ = parent_;
       if (cryptoKeyVersionBuilder_ == null) {
         result.cryptoKeyVersion_ = cryptoKeyVersion_;
@@ -444,39 +396,38 @@ public com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest 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.kms.v1.CreateCryptoKeyVersionRequest) {
-        return mergeFrom((com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest) other);
+        return mergeFrom((com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -484,8 +435,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest other) {
-      if (other == com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -519,26 +469,24 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(
-                    getCryptoKeyVersionFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getCryptoKeyVersionFieldBuilder().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) {
@@ -551,24 +499,20 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with the
      * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
      * 
* - * - * string parent = 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; @@ -577,25 +521,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with the
      * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
      * 
* - * - * string parent = 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 { @@ -603,73 +544,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with the
      * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
      * 
* - * - * 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 [name][google.cloud.kms.v1.CryptoKey.name] of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with the
      * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
      * 
* - * - * string 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 [name][google.cloud.kms.v1.CryptoKey.name] of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with the
      * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
      * 
* - * - * 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; @@ -677,61 +605,42 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.kms.v1.CryptoKeyVersion cryptoKeyVersion_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.CryptoKeyVersion, - com.google.cloud.kms.v1.CryptoKeyVersion.Builder, - com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder> - cryptoKeyVersionBuilder_; + com.google.cloud.kms.v1.CryptoKeyVersion, com.google.cloud.kms.v1.CryptoKeyVersion.Builder, com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder> cryptoKeyVersionBuilder_; /** - * - * *
      * Required. A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
      * initial field values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the cryptoKeyVersion field is set. */ public boolean hasCryptoKeyVersion() { return cryptoKeyVersionBuilder_ != null || cryptoKeyVersion_ != null; } /** - * - * *
      * Required. A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
      * initial field values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The cryptoKeyVersion. */ public com.google.cloud.kms.v1.CryptoKeyVersion getCryptoKeyVersion() { if (cryptoKeyVersionBuilder_ == null) { - return cryptoKeyVersion_ == null - ? com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance() - : cryptoKeyVersion_; + return cryptoKeyVersion_ == null ? com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance() : cryptoKeyVersion_; } else { return cryptoKeyVersionBuilder_.getMessage(); } } /** - * - * *
      * Required. A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
      * initial field values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCryptoKeyVersion(com.google.cloud.kms.v1.CryptoKeyVersion value) { if (cryptoKeyVersionBuilder_ == null) { @@ -747,16 +656,12 @@ public Builder setCryptoKeyVersion(com.google.cloud.kms.v1.CryptoKeyVersion valu return this; } /** - * - * *
      * Required. A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
      * initial field values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCryptoKeyVersion( com.google.cloud.kms.v1.CryptoKeyVersion.Builder builderForValue) { @@ -770,24 +675,18 @@ public Builder setCryptoKeyVersion( return this; } /** - * - * *
      * Required. A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
      * initial field values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeCryptoKeyVersion(com.google.cloud.kms.v1.CryptoKeyVersion value) { if (cryptoKeyVersionBuilder_ == null) { if (cryptoKeyVersion_ != null) { cryptoKeyVersion_ = - com.google.cloud.kms.v1.CryptoKeyVersion.newBuilder(cryptoKeyVersion_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.kms.v1.CryptoKeyVersion.newBuilder(cryptoKeyVersion_).mergeFrom(value).buildPartial(); } else { cryptoKeyVersion_ = value; } @@ -799,16 +698,12 @@ public Builder mergeCryptoKeyVersion(com.google.cloud.kms.v1.CryptoKeyVersion va return this; } /** - * - * *
      * Required. A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
      * initial field values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCryptoKeyVersion() { if (cryptoKeyVersionBuilder_ == null) { @@ -822,74 +717,58 @@ public Builder clearCryptoKeyVersion() { return this; } /** - * - * *
      * Required. A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
      * initial field values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.kms.v1.CryptoKeyVersion.Builder getCryptoKeyVersionBuilder() { - + onChanged(); return getCryptoKeyVersionFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
      * initial field values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder getCryptoKeyVersionOrBuilder() { if (cryptoKeyVersionBuilder_ != null) { return cryptoKeyVersionBuilder_.getMessageOrBuilder(); } else { - return cryptoKeyVersion_ == null - ? com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance() - : cryptoKeyVersion_; + return cryptoKeyVersion_ == null ? + com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance() : cryptoKeyVersion_; } } /** - * - * *
      * Required. A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
      * initial field values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.CryptoKeyVersion, - com.google.cloud.kms.v1.CryptoKeyVersion.Builder, - com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder> + com.google.cloud.kms.v1.CryptoKeyVersion, com.google.cloud.kms.v1.CryptoKeyVersion.Builder, com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder> getCryptoKeyVersionFieldBuilder() { if (cryptoKeyVersionBuilder_ == null) { - cryptoKeyVersionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.CryptoKeyVersion, - com.google.cloud.kms.v1.CryptoKeyVersion.Builder, - com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder>( - getCryptoKeyVersion(), getParentForChildren(), isClean()); + cryptoKeyVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.kms.v1.CryptoKeyVersion, com.google.cloud.kms.v1.CryptoKeyVersion.Builder, com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder>( + getCryptoKeyVersion(), + getParentForChildren(), + isClean()); cryptoKeyVersion_ = null; } return cryptoKeyVersionBuilder_; } - @java.lang.Override - 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 +778,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.CreateCryptoKeyVersionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.CreateCryptoKeyVersionRequest) private static final com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest(); } @@ -913,27 +792,27 @@ public static com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCryptoKeyVersionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCryptoKeyVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -948,4 +827,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateCryptoKeyVersionRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateCryptoKeyVersionRequestOrBuilder.java similarity index 52% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateCryptoKeyVersionRequestOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateCryptoKeyVersionRequestOrBuilder.java index b417cb34a910..d9a768d8bad5 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateCryptoKeyVersionRequestOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateCryptoKeyVersionRequestOrBuilder.java @@ -1,102 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface CreateCryptoKeyVersionRequestOrBuilder - extends +public interface CreateCryptoKeyVersionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.CreateCryptoKeyVersionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with the
    * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
    * 
* - * - * string parent = 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 [name][google.cloud.kms.v1.CryptoKey.name] of the
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with the
    * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
    * 
* - * - * string parent = 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 [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
    * initial field values.
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the cryptoKeyVersion field is set. */ boolean hasCryptoKeyVersion(); /** - * - * *
    * Required. A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
    * initial field values.
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The cryptoKeyVersion. */ com.google.cloud.kms.v1.CryptoKeyVersion getCryptoKeyVersion(); /** - * - * *
    * Required. A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
    * initial field values.
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder getCryptoKeyVersionOrBuilder(); } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateEkmConnectionRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateEkmConnectionRequest.java similarity index 65% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateEkmConnectionRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateEkmConnectionRequest.java index 4ef71f758eb0..181c55cd5651 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateEkmConnectionRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateEkmConnectionRequest.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/kms/v1/ekm_service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for [KeyManagementService.CreateEkmConnection][].
  * 
* * Protobuf type {@code google.cloud.kms.v1.CreateEkmConnectionRequest} */ -public final class CreateEkmConnectionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateEkmConnectionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.CreateEkmConnectionRequest) CreateEkmConnectionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateEkmConnectionRequest.newBuilder() to construct. private CreateEkmConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateEkmConnectionRequest() { parent_ = ""; ekmConnectionId_ = ""; @@ -44,45 +26,39 @@ private CreateEkmConnectionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateEkmConnectionRequest(); } @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.kms.v1.EkmServiceProto - .internal_static_google_cloud_kms_v1_CreateEkmConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_CreateEkmConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.v1.EkmServiceProto - .internal_static_google_cloud_kms_v1_CreateEkmConnectionRequest_fieldAccessorTable + return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_CreateEkmConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.v1.CreateEkmConnectionRequest.class, - com.google.cloud.kms.v1.CreateEkmConnectionRequest.Builder.class); + com.google.cloud.kms.v1.CreateEkmConnectionRequest.class, com.google.cloud.kms.v1.CreateEkmConnectionRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The resource name of the location associated with the
    * [EkmConnection][google.cloud.kms.v1.EkmConnection], in the format
    * `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -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 resource name of the location associated with the
    * [EkmConnection][google.cloud.kms.v1.EkmConnection], in the format
    * `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -128,15 +102,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int EKM_CONNECTION_ID_FIELD_NUMBER = 2; private volatile java.lang.Object ekmConnectionId_; /** - * - * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`.
    * 
* * string ekm_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The ekmConnectionId. */ @java.lang.Override @@ -145,30 +116,30 @@ public java.lang.String getEkmConnectionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ekmConnectionId_ = s; return s; } } /** - * - * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`.
    * 
* * string ekm_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for ekmConnectionId. */ @java.lang.Override - public com.google.protobuf.ByteString getEkmConnectionIdBytes() { + public com.google.protobuf.ByteString + getEkmConnectionIdBytes() { java.lang.Object ref = ekmConnectionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ekmConnectionId_ = b; return b; } else { @@ -179,17 +150,12 @@ public com.google.protobuf.ByteString getEkmConnectionIdBytes() { public static final int EKM_CONNECTION_FIELD_NUMBER = 3; private com.google.cloud.kms.v1.EkmConnection ekmConnection_; /** - * - * *
    * Required. An [EkmConnection][google.cloud.kms.v1.EkmConnection] with
    * initial field values.
    * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the ekmConnection field is set. */ @java.lang.Override @@ -197,36 +163,25 @@ public boolean hasEkmConnection() { return ekmConnection_ != null; } /** - * - * *
    * Required. An [EkmConnection][google.cloud.kms.v1.EkmConnection] with
    * initial field values.
    * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The ekmConnection. */ @java.lang.Override public com.google.cloud.kms.v1.EkmConnection getEkmConnection() { - return ekmConnection_ == null - ? com.google.cloud.kms.v1.EkmConnection.getDefaultInstance() - : ekmConnection_; + return ekmConnection_ == null ? com.google.cloud.kms.v1.EkmConnection.getDefaultInstance() : ekmConnection_; } /** - * - * *
    * Required. An [EkmConnection][google.cloud.kms.v1.EkmConnection] with
    * initial field values.
    * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.kms.v1.EkmConnectionOrBuilder getEkmConnectionOrBuilder() { @@ -234,7 +189,6 @@ public com.google.cloud.kms.v1.EkmConnectionOrBuilder getEkmConnectionOrBuilder( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -246,7 +200,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -272,7 +227,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ekmConnectionId_); } if (ekmConnection_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEkmConnection()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getEkmConnection()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -282,19 +238,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.kms.v1.CreateEkmConnectionRequest)) { return super.equals(obj); } - com.google.cloud.kms.v1.CreateEkmConnectionRequest other = - (com.google.cloud.kms.v1.CreateEkmConnectionRequest) obj; + com.google.cloud.kms.v1.CreateEkmConnectionRequest other = (com.google.cloud.kms.v1.CreateEkmConnectionRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getEkmConnectionId().equals(other.getEkmConnectionId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getEkmConnectionId() + .equals(other.getEkmConnectionId())) return false; if (hasEkmConnection() != other.hasEkmConnection()) return false; if (hasEkmConnection()) { - if (!getEkmConnection().equals(other.getEkmConnection())) return false; + if (!getEkmConnection() + .equals(other.getEkmConnection())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -321,135 +279,129 @@ public int hashCode() { } public static com.google.cloud.kms.v1.CreateEkmConnectionRequest 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.kms.v1.CreateEkmConnectionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.CreateEkmConnectionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.CreateEkmConnectionRequest parseFrom( 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.kms.v1.CreateEkmConnectionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.CreateEkmConnectionRequest parseFrom( - byte[] data, com.google.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.kms.v1.CreateEkmConnectionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.CreateEkmConnectionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.CreateEkmConnectionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.CreateEkmConnectionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.CreateEkmConnectionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.CreateEkmConnectionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.CreateEkmConnectionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.CreateEkmConnectionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.CreateEkmConnectionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [KeyManagementService.CreateEkmConnection][].
    * 
* * Protobuf type {@code google.cloud.kms.v1.CreateEkmConnectionRequest} */ - public static final class Builder extends 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.kms.v1.CreateEkmConnectionRequest) com.google.cloud.kms.v1.CreateEkmConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.kms.v1.EkmServiceProto - .internal_static_google_cloud_kms_v1_CreateEkmConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_CreateEkmConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.v1.EkmServiceProto - .internal_static_google_cloud_kms_v1_CreateEkmConnectionRequest_fieldAccessorTable + return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_CreateEkmConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.v1.CreateEkmConnectionRequest.class, - com.google.cloud.kms.v1.CreateEkmConnectionRequest.Builder.class); + com.google.cloud.kms.v1.CreateEkmConnectionRequest.class, com.google.cloud.kms.v1.CreateEkmConnectionRequest.Builder.class); } // Construct using com.google.cloud.kms.v1.CreateEkmConnectionRequest.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 +419,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.kms.v1.EkmServiceProto - .internal_static_google_cloud_kms_v1_CreateEkmConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_CreateEkmConnectionRequest_descriptor; } @java.lang.Override @@ -488,8 +440,7 @@ public com.google.cloud.kms.v1.CreateEkmConnectionRequest build() { @java.lang.Override public com.google.cloud.kms.v1.CreateEkmConnectionRequest buildPartial() { - com.google.cloud.kms.v1.CreateEkmConnectionRequest result = - new com.google.cloud.kms.v1.CreateEkmConnectionRequest(this); + com.google.cloud.kms.v1.CreateEkmConnectionRequest result = new com.google.cloud.kms.v1.CreateEkmConnectionRequest(this); result.parent_ = parent_; result.ekmConnectionId_ = ekmConnectionId_; if (ekmConnectionBuilder_ == null) { @@ -505,39 +456,38 @@ public com.google.cloud.kms.v1.CreateEkmConnectionRequest 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.kms.v1.CreateEkmConnectionRequest) { - return mergeFrom((com.google.cloud.kms.v1.CreateEkmConnectionRequest) other); + return mergeFrom((com.google.cloud.kms.v1.CreateEkmConnectionRequest)other); } else { super.mergeFrom(other); return this; @@ -545,8 +495,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.kms.v1.CreateEkmConnectionRequest other) { - if (other == com.google.cloud.kms.v1.CreateEkmConnectionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.kms.v1.CreateEkmConnectionRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -584,31 +533,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - ekmConnectionId_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: { + ekmConnectionId_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: - { - input.readMessage(getEkmConnectionFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 18 + case 26: { + input.readMessage( + getEkmConnectionFieldBuilder().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,24 +568,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the location associated with the
      * [EkmConnection][google.cloud.kms.v1.EkmConnection], in the format
      * `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -647,25 +590,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [EkmConnection][google.cloud.kms.v1.EkmConnection], in the format
      * `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -673,73 +613,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [EkmConnection][google.cloud.kms.v1.EkmConnection], in the format
      * `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the location associated with the
      * [EkmConnection][google.cloud.kms.v1.EkmConnection], in the format
      * `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the location associated with the
      * [EkmConnection][google.cloud.kms.v1.EkmConnection], in the format
      * `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -747,21 +674,19 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object ekmConnectionId_ = ""; /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`.
      * 
* * string ekm_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The ekmConnectionId. */ public java.lang.String getEkmConnectionId() { java.lang.Object ref = ekmConnectionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ekmConnectionId_ = s; return s; @@ -770,22 +695,21 @@ public java.lang.String getEkmConnectionId() { } } /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`.
      * 
* * string ekm_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for ekmConnectionId. */ - public com.google.protobuf.ByteString getEkmConnectionIdBytes() { + public com.google.protobuf.ByteString + getEkmConnectionIdBytes() { java.lang.Object ref = ekmConnectionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ekmConnectionId_ = b; return b; } else { @@ -793,64 +717,57 @@ public com.google.protobuf.ByteString getEkmConnectionIdBytes() { } } /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`.
      * 
* * string ekm_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The ekmConnectionId to set. * @return This builder for chaining. */ - public Builder setEkmConnectionId(java.lang.String value) { + public Builder setEkmConnectionId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ekmConnectionId_ = value; onChanged(); return this; } /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`.
      * 
* * string ekm_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearEkmConnectionId() { - + ekmConnectionId_ = getDefaultInstance().getEkmConnectionId(); onChanged(); return this; } /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`.
      * 
* * string ekm_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for ekmConnectionId to set. * @return This builder for chaining. */ - public Builder setEkmConnectionIdBytes(com.google.protobuf.ByteString value) { + public Builder setEkmConnectionIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ekmConnectionId_ = value; onChanged(); return this; @@ -858,61 +775,42 @@ public Builder setEkmConnectionIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.kms.v1.EkmConnection ekmConnection_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.EkmConnection, - com.google.cloud.kms.v1.EkmConnection.Builder, - com.google.cloud.kms.v1.EkmConnectionOrBuilder> - ekmConnectionBuilder_; + com.google.cloud.kms.v1.EkmConnection, com.google.cloud.kms.v1.EkmConnection.Builder, com.google.cloud.kms.v1.EkmConnectionOrBuilder> ekmConnectionBuilder_; /** - * - * *
      * Required. An [EkmConnection][google.cloud.kms.v1.EkmConnection] with
      * initial field values.
      * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the ekmConnection field is set. */ public boolean hasEkmConnection() { return ekmConnectionBuilder_ != null || ekmConnection_ != null; } /** - * - * *
      * Required. An [EkmConnection][google.cloud.kms.v1.EkmConnection] with
      * initial field values.
      * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The ekmConnection. */ public com.google.cloud.kms.v1.EkmConnection getEkmConnection() { if (ekmConnectionBuilder_ == null) { - return ekmConnection_ == null - ? com.google.cloud.kms.v1.EkmConnection.getDefaultInstance() - : ekmConnection_; + return ekmConnection_ == null ? com.google.cloud.kms.v1.EkmConnection.getDefaultInstance() : ekmConnection_; } else { return ekmConnectionBuilder_.getMessage(); } } /** - * - * *
      * Required. An [EkmConnection][google.cloud.kms.v1.EkmConnection] with
      * initial field values.
      * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setEkmConnection(com.google.cloud.kms.v1.EkmConnection value) { if (ekmConnectionBuilder_ == null) { @@ -928,18 +826,15 @@ public Builder setEkmConnection(com.google.cloud.kms.v1.EkmConnection value) { return this; } /** - * - * *
      * Required. An [EkmConnection][google.cloud.kms.v1.EkmConnection] with
      * initial field values.
      * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setEkmConnection(com.google.cloud.kms.v1.EkmConnection.Builder builderForValue) { + public Builder setEkmConnection( + com.google.cloud.kms.v1.EkmConnection.Builder builderForValue) { if (ekmConnectionBuilder_ == null) { ekmConnection_ = builderForValue.build(); onChanged(); @@ -950,24 +845,18 @@ public Builder setEkmConnection(com.google.cloud.kms.v1.EkmConnection.Builder bu return this; } /** - * - * *
      * Required. An [EkmConnection][google.cloud.kms.v1.EkmConnection] with
      * initial field values.
      * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeEkmConnection(com.google.cloud.kms.v1.EkmConnection value) { if (ekmConnectionBuilder_ == null) { if (ekmConnection_ != null) { ekmConnection_ = - com.google.cloud.kms.v1.EkmConnection.newBuilder(ekmConnection_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.kms.v1.EkmConnection.newBuilder(ekmConnection_).mergeFrom(value).buildPartial(); } else { ekmConnection_ = value; } @@ -979,16 +868,12 @@ public Builder mergeEkmConnection(com.google.cloud.kms.v1.EkmConnection value) { return this; } /** - * - * *
      * Required. An [EkmConnection][google.cloud.kms.v1.EkmConnection] with
      * initial field values.
      * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearEkmConnection() { if (ekmConnectionBuilder_ == null) { @@ -1002,74 +887,58 @@ public Builder clearEkmConnection() { return this; } /** - * - * *
      * Required. An [EkmConnection][google.cloud.kms.v1.EkmConnection] with
      * initial field values.
      * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.kms.v1.EkmConnection.Builder getEkmConnectionBuilder() { - + onChanged(); return getEkmConnectionFieldBuilder().getBuilder(); } /** - * - * *
      * Required. An [EkmConnection][google.cloud.kms.v1.EkmConnection] with
      * initial field values.
      * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.kms.v1.EkmConnectionOrBuilder getEkmConnectionOrBuilder() { if (ekmConnectionBuilder_ != null) { return ekmConnectionBuilder_.getMessageOrBuilder(); } else { - return ekmConnection_ == null - ? com.google.cloud.kms.v1.EkmConnection.getDefaultInstance() - : ekmConnection_; + return ekmConnection_ == null ? + com.google.cloud.kms.v1.EkmConnection.getDefaultInstance() : ekmConnection_; } } /** - * - * *
      * Required. An [EkmConnection][google.cloud.kms.v1.EkmConnection] with
      * initial field values.
      * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.EkmConnection, - com.google.cloud.kms.v1.EkmConnection.Builder, - com.google.cloud.kms.v1.EkmConnectionOrBuilder> + com.google.cloud.kms.v1.EkmConnection, com.google.cloud.kms.v1.EkmConnection.Builder, com.google.cloud.kms.v1.EkmConnectionOrBuilder> getEkmConnectionFieldBuilder() { if (ekmConnectionBuilder_ == null) { - ekmConnectionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.EkmConnection, - com.google.cloud.kms.v1.EkmConnection.Builder, - com.google.cloud.kms.v1.EkmConnectionOrBuilder>( - getEkmConnection(), getParentForChildren(), isClean()); + ekmConnectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.kms.v1.EkmConnection, com.google.cloud.kms.v1.EkmConnection.Builder, com.google.cloud.kms.v1.EkmConnectionOrBuilder>( + getEkmConnection(), + getParentForChildren(), + isClean()); ekmConnection_ = null; } return ekmConnectionBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1079,12 +948,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.CreateEkmConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.CreateEkmConnectionRequest) private static final com.google.cloud.kms.v1.CreateEkmConnectionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.CreateEkmConnectionRequest(); } @@ -1093,27 +962,27 @@ public static com.google.cloud.kms.v1.CreateEkmConnectionRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateEkmConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateEkmConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1128,4 +997,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.kms.v1.CreateEkmConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateEkmConnectionRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateEkmConnectionRequestOrBuilder.java similarity index 58% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateEkmConnectionRequestOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateEkmConnectionRequestOrBuilder.java index d67120fc7dce..bd84d527b99c 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateEkmConnectionRequestOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateEkmConnectionRequestOrBuilder.java @@ -1,129 +1,85 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/v1/ekm_service.proto package com.google.cloud.kms.v1; -public interface CreateEkmConnectionRequestOrBuilder - extends +public interface CreateEkmConnectionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.CreateEkmConnectionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the location associated with the
    * [EkmConnection][google.cloud.kms.v1.EkmConnection], in the format
    * `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The resource name of the location associated with the
    * [EkmConnection][google.cloud.kms.v1.EkmConnection], in the format
    * `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`.
    * 
* * string ekm_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The ekmConnectionId. */ java.lang.String getEkmConnectionId(); /** - * - * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`.
    * 
* * string ekm_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for ekmConnectionId. */ - com.google.protobuf.ByteString getEkmConnectionIdBytes(); + com.google.protobuf.ByteString + getEkmConnectionIdBytes(); /** - * - * *
    * Required. An [EkmConnection][google.cloud.kms.v1.EkmConnection] with
    * initial field values.
    * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the ekmConnection field is set. */ boolean hasEkmConnection(); /** - * - * *
    * Required. An [EkmConnection][google.cloud.kms.v1.EkmConnection] with
    * initial field values.
    * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The ekmConnection. */ com.google.cloud.kms.v1.EkmConnection getEkmConnection(); /** - * - * *
    * Required. An [EkmConnection][google.cloud.kms.v1.EkmConnection] with
    * initial field values.
    * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.kms.v1.EkmConnectionOrBuilder getEkmConnectionOrBuilder(); } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateImportJobRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateImportJobRequest.java similarity index 66% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateImportJobRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateImportJobRequest.java index b4fe2cd9bb84..f4c033e65611 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateImportJobRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateImportJobRequest.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for
  * [KeyManagementService.CreateImportJob][google.cloud.kms.v1.KeyManagementService.CreateImportJob].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.CreateImportJobRequest}
  */
-public final class CreateImportJobRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateImportJobRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.CreateImportJobRequest)
     CreateImportJobRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateImportJobRequest.newBuilder() to construct.
   private CreateImportJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateImportJobRequest() {
     parent_ = "";
     importJobId_ = "";
@@ -45,45 +27,39 @@ private CreateImportJobRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateImportJobRequest();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_CreateImportJobRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_CreateImportJobRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_CreateImportJobRequest_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_CreateImportJobRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.CreateImportJobRequest.class,
-            com.google.cloud.kms.v1.CreateImportJobRequest.Builder.class);
+            com.google.cloud.kms.v1.CreateImportJobRequest.class, com.google.cloud.kms.v1.CreateImportJobRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
-   *
-   *
    * 
    * Required. The [name][google.cloud.kms.v1.KeyRing.name] of the
    * [KeyRing][google.cloud.kms.v1.KeyRing] associated with the
    * [ImportJobs][google.cloud.kms.v1.ImportJob].
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -92,33 +68,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 [name][google.cloud.kms.v1.KeyRing.name] of the
    * [KeyRing][google.cloud.kms.v1.KeyRing] associated with the
    * [ImportJobs][google.cloud.kms.v1.ImportJob].
    * 
* - * - * string parent = 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 { @@ -129,15 +103,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int IMPORT_JOB_ID_FIELD_NUMBER = 2; private volatile java.lang.Object importJobId_; /** - * - * *
    * Required. It must be unique within a KeyRing and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string import_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The importJobId. */ @java.lang.Override @@ -146,30 +117,30 @@ public java.lang.String getImportJobId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importJobId_ = s; return s; } } /** - * - * *
    * Required. It must be unique within a KeyRing and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string import_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for importJobId. */ @java.lang.Override - public com.google.protobuf.ByteString getImportJobIdBytes() { + public com.google.protobuf.ByteString + getImportJobIdBytes() { java.lang.Object ref = importJobId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); importJobId_ = b; return b; } else { @@ -180,16 +151,12 @@ public com.google.protobuf.ByteString getImportJobIdBytes() { public static final int IMPORT_JOB_FIELD_NUMBER = 3; private com.google.cloud.kms.v1.ImportJob importJob_; /** - * - * *
    * Required. An [ImportJob][google.cloud.kms.v1.ImportJob] with initial field
    * values.
    * 
* - * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the importJob field is set. */ @java.lang.Override @@ -197,16 +164,12 @@ public boolean hasImportJob() { return importJob_ != null; } /** - * - * *
    * Required. An [ImportJob][google.cloud.kms.v1.ImportJob] with initial field
    * values.
    * 
* - * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The importJob. */ @java.lang.Override @@ -214,15 +177,12 @@ public com.google.cloud.kms.v1.ImportJob getImportJob() { return importJob_ == null ? com.google.cloud.kms.v1.ImportJob.getDefaultInstance() : importJob_; } /** - * - * *
    * Required. An [ImportJob][google.cloud.kms.v1.ImportJob] with initial field
    * values.
    * 
* - * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.kms.v1.ImportJobOrBuilder getImportJobOrBuilder() { @@ -230,7 +190,6 @@ public com.google.cloud.kms.v1.ImportJobOrBuilder getImportJobOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,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_); } @@ -268,7 +228,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, importJobId_); } if (importJob_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImportJob()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getImportJob()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -278,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.kms.v1.CreateImportJobRequest)) { return super.equals(obj); } - com.google.cloud.kms.v1.CreateImportJobRequest other = - (com.google.cloud.kms.v1.CreateImportJobRequest) obj; + com.google.cloud.kms.v1.CreateImportJobRequest other = (com.google.cloud.kms.v1.CreateImportJobRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getImportJobId().equals(other.getImportJobId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getImportJobId() + .equals(other.getImportJobId())) return false; if (hasImportJob() != other.hasImportJob()) return false; if (hasImportJob()) { - if (!getImportJob().equals(other.getImportJob())) return false; + if (!getImportJob() + .equals(other.getImportJob())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -316,104 +279,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.CreateImportJobRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.CreateImportJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.CreateImportJobRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.CreateImportJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.CreateImportJobRequest parseFrom( 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.kms.v1.CreateImportJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.CreateImportJobRequest parseFrom( - byte[] data, com.google.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.kms.v1.CreateImportJobRequest parseFrom(java.io.InputStream input) 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.kms.v1.CreateImportJobRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.CreateImportJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.CreateImportJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.CreateImportJobRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.CreateImportJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.CreateImportJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.CreateImportJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for
    * [KeyManagementService.CreateImportJob][google.cloud.kms.v1.KeyManagementService.CreateImportJob].
@@ -421,32 +377,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.CreateImportJobRequest}
    */
-  public static final class Builder extends 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.kms.v1.CreateImportJobRequest)
       com.google.cloud.kms.v1.CreateImportJobRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_CreateImportJobRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_CreateImportJobRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_CreateImportJobRequest_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_CreateImportJobRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.CreateImportJobRequest.class,
-              com.google.cloud.kms.v1.CreateImportJobRequest.Builder.class);
+              com.google.cloud.kms.v1.CreateImportJobRequest.class, com.google.cloud.kms.v1.CreateImportJobRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.CreateImportJobRequest.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 +421,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_CreateImportJobRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_CreateImportJobRequest_descriptor;
     }
 
     @java.lang.Override
@@ -485,8 +442,7 @@ public com.google.cloud.kms.v1.CreateImportJobRequest build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.CreateImportJobRequest buildPartial() {
-      com.google.cloud.kms.v1.CreateImportJobRequest result =
-          new com.google.cloud.kms.v1.CreateImportJobRequest(this);
+      com.google.cloud.kms.v1.CreateImportJobRequest result = new com.google.cloud.kms.v1.CreateImportJobRequest(this);
       result.parent_ = parent_;
       result.importJobId_ = importJobId_;
       if (importJobBuilder_ == null) {
@@ -502,39 +458,38 @@ public com.google.cloud.kms.v1.CreateImportJobRequest 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.kms.v1.CreateImportJobRequest) {
-        return mergeFrom((com.google.cloud.kms.v1.CreateImportJobRequest) other);
+        return mergeFrom((com.google.cloud.kms.v1.CreateImportJobRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -580,31 +535,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 10
-            case 18:
-              {
-                importJobId_ = input.readStringRequireUtf8();
+              break;
+            } // case 10
+            case 18: {
+              importJobId_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getImportJobFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getImportJobFieldBuilder().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) {
@@ -617,24 +570,20 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The [name][google.cloud.kms.v1.KeyRing.name] of the
      * [KeyRing][google.cloud.kms.v1.KeyRing] associated with the
      * [ImportJobs][google.cloud.kms.v1.ImportJob].
      * 
* - * - * string parent = 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; @@ -643,25 +592,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The [name][google.cloud.kms.v1.KeyRing.name] of the
      * [KeyRing][google.cloud.kms.v1.KeyRing] associated with the
      * [ImportJobs][google.cloud.kms.v1.ImportJob].
      * 
* - * - * string parent = 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,73 +615,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The [name][google.cloud.kms.v1.KeyRing.name] of the
      * [KeyRing][google.cloud.kms.v1.KeyRing] associated with the
      * [ImportJobs][google.cloud.kms.v1.ImportJob].
      * 
* - * - * 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 [name][google.cloud.kms.v1.KeyRing.name] of the
      * [KeyRing][google.cloud.kms.v1.KeyRing] associated with the
      * [ImportJobs][google.cloud.kms.v1.ImportJob].
      * 
* - * - * string 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 [name][google.cloud.kms.v1.KeyRing.name] of the
      * [KeyRing][google.cloud.kms.v1.KeyRing] associated with the
      * [ImportJobs][google.cloud.kms.v1.ImportJob].
      * 
* - * - * 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; @@ -743,21 +676,19 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object importJobId_ = ""; /** - * - * *
      * Required. It must be unique within a KeyRing and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string import_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The importJobId. */ public java.lang.String getImportJobId() { java.lang.Object ref = importJobId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importJobId_ = s; return s; @@ -766,22 +697,21 @@ public java.lang.String getImportJobId() { } } /** - * - * *
      * Required. It must be unique within a KeyRing and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string import_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for importJobId. */ - public com.google.protobuf.ByteString getImportJobIdBytes() { + public com.google.protobuf.ByteString + getImportJobIdBytes() { java.lang.Object ref = importJobId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); importJobId_ = b; return b; } else { @@ -789,64 +719,57 @@ public com.google.protobuf.ByteString getImportJobIdBytes() { } } /** - * - * *
      * Required. It must be unique within a KeyRing and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string import_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The importJobId to set. * @return This builder for chaining. */ - public Builder setImportJobId(java.lang.String value) { + public Builder setImportJobId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + importJobId_ = value; onChanged(); return this; } /** - * - * *
      * Required. It must be unique within a KeyRing and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string import_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearImportJobId() { - + importJobId_ = getDefaultInstance().getImportJobId(); onChanged(); return this; } /** - * - * *
      * Required. It must be unique within a KeyRing and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string import_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for importJobId to set. * @return This builder for chaining. */ - public Builder setImportJobIdBytes(com.google.protobuf.ByteString value) { + public Builder setImportJobIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + importJobId_ = value; onChanged(); return this; @@ -854,61 +777,42 @@ public Builder setImportJobIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.kms.v1.ImportJob importJob_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.ImportJob, - com.google.cloud.kms.v1.ImportJob.Builder, - com.google.cloud.kms.v1.ImportJobOrBuilder> - importJobBuilder_; + com.google.cloud.kms.v1.ImportJob, com.google.cloud.kms.v1.ImportJob.Builder, com.google.cloud.kms.v1.ImportJobOrBuilder> importJobBuilder_; /** - * - * *
      * Required. An [ImportJob][google.cloud.kms.v1.ImportJob] with initial field
      * values.
      * 
* - * - * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the importJob field is set. */ public boolean hasImportJob() { return importJobBuilder_ != null || importJob_ != null; } /** - * - * *
      * Required. An [ImportJob][google.cloud.kms.v1.ImportJob] with initial field
      * values.
      * 
* - * - * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The importJob. */ public com.google.cloud.kms.v1.ImportJob getImportJob() { if (importJobBuilder_ == null) { - return importJob_ == null - ? com.google.cloud.kms.v1.ImportJob.getDefaultInstance() - : importJob_; + return importJob_ == null ? com.google.cloud.kms.v1.ImportJob.getDefaultInstance() : importJob_; } else { return importJobBuilder_.getMessage(); } } /** - * - * *
      * Required. An [ImportJob][google.cloud.kms.v1.ImportJob] with initial field
      * values.
      * 
* - * - * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setImportJob(com.google.cloud.kms.v1.ImportJob value) { if (importJobBuilder_ == null) { @@ -924,18 +828,15 @@ public Builder setImportJob(com.google.cloud.kms.v1.ImportJob value) { return this; } /** - * - * *
      * Required. An [ImportJob][google.cloud.kms.v1.ImportJob] with initial field
      * values.
      * 
* - * - * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setImportJob(com.google.cloud.kms.v1.ImportJob.Builder builderForValue) { + public Builder setImportJob( + com.google.cloud.kms.v1.ImportJob.Builder builderForValue) { if (importJobBuilder_ == null) { importJob_ = builderForValue.build(); onChanged(); @@ -946,24 +847,18 @@ public Builder setImportJob(com.google.cloud.kms.v1.ImportJob.Builder builderFor return this; } /** - * - * *
      * Required. An [ImportJob][google.cloud.kms.v1.ImportJob] with initial field
      * values.
      * 
* - * - * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeImportJob(com.google.cloud.kms.v1.ImportJob value) { if (importJobBuilder_ == null) { if (importJob_ != null) { importJob_ = - com.google.cloud.kms.v1.ImportJob.newBuilder(importJob_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.kms.v1.ImportJob.newBuilder(importJob_).mergeFrom(value).buildPartial(); } else { importJob_ = value; } @@ -975,16 +870,12 @@ public Builder mergeImportJob(com.google.cloud.kms.v1.ImportJob value) { return this; } /** - * - * *
      * Required. An [ImportJob][google.cloud.kms.v1.ImportJob] with initial field
      * values.
      * 
* - * - * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearImportJob() { if (importJobBuilder_ == null) { @@ -998,74 +889,58 @@ public Builder clearImportJob() { return this; } /** - * - * *
      * Required. An [ImportJob][google.cloud.kms.v1.ImportJob] with initial field
      * values.
      * 
* - * - * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.kms.v1.ImportJob.Builder getImportJobBuilder() { - + onChanged(); return getImportJobFieldBuilder().getBuilder(); } /** - * - * *
      * Required. An [ImportJob][google.cloud.kms.v1.ImportJob] with initial field
      * values.
      * 
* - * - * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.kms.v1.ImportJobOrBuilder getImportJobOrBuilder() { if (importJobBuilder_ != null) { return importJobBuilder_.getMessageOrBuilder(); } else { - return importJob_ == null - ? com.google.cloud.kms.v1.ImportJob.getDefaultInstance() - : importJob_; + return importJob_ == null ? + com.google.cloud.kms.v1.ImportJob.getDefaultInstance() : importJob_; } } /** - * - * *
      * Required. An [ImportJob][google.cloud.kms.v1.ImportJob] with initial field
      * values.
      * 
* - * - * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.ImportJob, - com.google.cloud.kms.v1.ImportJob.Builder, - com.google.cloud.kms.v1.ImportJobOrBuilder> + com.google.cloud.kms.v1.ImportJob, com.google.cloud.kms.v1.ImportJob.Builder, com.google.cloud.kms.v1.ImportJobOrBuilder> getImportJobFieldBuilder() { if (importJobBuilder_ == null) { - importJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.ImportJob, - com.google.cloud.kms.v1.ImportJob.Builder, - com.google.cloud.kms.v1.ImportJobOrBuilder>( - getImportJob(), getParentForChildren(), isClean()); + importJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.kms.v1.ImportJob, com.google.cloud.kms.v1.ImportJob.Builder, com.google.cloud.kms.v1.ImportJobOrBuilder>( + getImportJob(), + getParentForChildren(), + isClean()); importJob_ = null; } return importJobBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1075,12 +950,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.CreateImportJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.CreateImportJobRequest) private static final com.google.cloud.kms.v1.CreateImportJobRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.CreateImportJobRequest(); } @@ -1089,27 +964,27 @@ public static com.google.cloud.kms.v1.CreateImportJobRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateImportJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateImportJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1124,4 +999,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.CreateImportJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateImportJobRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateImportJobRequestOrBuilder.java similarity index 63% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateImportJobRequestOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateImportJobRequestOrBuilder.java index 7f362f9d073a..ab97a7ef7f19 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateImportJobRequestOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateImportJobRequestOrBuilder.java @@ -1,126 +1,85 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface CreateImportJobRequestOrBuilder - extends +public interface CreateImportJobRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.CreateImportJobRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The [name][google.cloud.kms.v1.KeyRing.name] of the
    * [KeyRing][google.cloud.kms.v1.KeyRing] associated with the
    * [ImportJobs][google.cloud.kms.v1.ImportJob].
    * 
* - * - * string parent = 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 [name][google.cloud.kms.v1.KeyRing.name] of the
    * [KeyRing][google.cloud.kms.v1.KeyRing] associated with the
    * [ImportJobs][google.cloud.kms.v1.ImportJob].
    * 
* - * - * string parent = 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. It must be unique within a KeyRing and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string import_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The importJobId. */ java.lang.String getImportJobId(); /** - * - * *
    * Required. It must be unique within a KeyRing and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string import_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for importJobId. */ - com.google.protobuf.ByteString getImportJobIdBytes(); + com.google.protobuf.ByteString + getImportJobIdBytes(); /** - * - * *
    * Required. An [ImportJob][google.cloud.kms.v1.ImportJob] with initial field
    * values.
    * 
* - * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the importJob field is set. */ boolean hasImportJob(); /** - * - * *
    * Required. An [ImportJob][google.cloud.kms.v1.ImportJob] with initial field
    * values.
    * 
* - * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The importJob. */ com.google.cloud.kms.v1.ImportJob getImportJob(); /** - * - * *
    * Required. An [ImportJob][google.cloud.kms.v1.ImportJob] with initial field
    * values.
    * 
* - * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.ImportJob import_job = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.kms.v1.ImportJobOrBuilder getImportJobOrBuilder(); } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateKeyRingRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateKeyRingRequest.java similarity index 68% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateKeyRingRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateKeyRingRequest.java index 232e1ab64bcd..4e6a9922b62c 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateKeyRingRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateKeyRingRequest.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for
  * [KeyManagementService.CreateKeyRing][google.cloud.kms.v1.KeyManagementService.CreateKeyRing].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.CreateKeyRingRequest}
  */
-public final class CreateKeyRingRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateKeyRingRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.CreateKeyRingRequest)
     CreateKeyRingRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateKeyRingRequest.newBuilder() to construct.
   private CreateKeyRingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateKeyRingRequest() {
     parent_ = "";
     keyRingId_ = "";
@@ -45,45 +27,39 @@ private CreateKeyRingRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateKeyRingRequest();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_CreateKeyRingRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_CreateKeyRingRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_CreateKeyRingRequest_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_CreateKeyRingRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.CreateKeyRingRequest.class,
-            com.google.cloud.kms.v1.CreateKeyRingRequest.Builder.class);
+            com.google.cloud.kms.v1.CreateKeyRingRequest.class, com.google.cloud.kms.v1.CreateKeyRingRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
-   *
-   *
    * 
    * Required. The resource name of the location associated with the
    * [KeyRings][google.cloud.kms.v1.KeyRing], in the format
    * `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -92,33 +68,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 resource name of the location associated with the
    * [KeyRings][google.cloud.kms.v1.KeyRing], in the format
    * `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -129,15 +103,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int KEY_RING_ID_FIELD_NUMBER = 2; private volatile java.lang.Object keyRingId_; /** - * - * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string key_ring_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The keyRingId. */ @java.lang.Override @@ -146,30 +117,30 @@ public java.lang.String getKeyRingId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keyRingId_ = s; return s; } } /** - * - * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string key_ring_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for keyRingId. */ @java.lang.Override - public com.google.protobuf.ByteString getKeyRingIdBytes() { + public com.google.protobuf.ByteString + getKeyRingIdBytes() { java.lang.Object ref = keyRingId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); keyRingId_ = b; return b; } else { @@ -180,16 +151,12 @@ public com.google.protobuf.ByteString getKeyRingIdBytes() { public static final int KEY_RING_FIELD_NUMBER = 3; private com.google.cloud.kms.v1.KeyRing keyRing_; /** - * - * *
    * Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field
    * values.
    * 
* - * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the keyRing field is set. */ @java.lang.Override @@ -197,16 +164,12 @@ public boolean hasKeyRing() { return keyRing_ != null; } /** - * - * *
    * Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field
    * values.
    * 
* - * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The keyRing. */ @java.lang.Override @@ -214,15 +177,12 @@ public com.google.cloud.kms.v1.KeyRing getKeyRing() { return keyRing_ == null ? com.google.cloud.kms.v1.KeyRing.getDefaultInstance() : keyRing_; } /** - * - * *
    * Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field
    * values.
    * 
* - * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.kms.v1.KeyRingOrBuilder getKeyRingOrBuilder() { @@ -230,7 +190,6 @@ public com.google.cloud.kms.v1.KeyRingOrBuilder getKeyRingOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,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_); } @@ -268,7 +228,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, keyRingId_); } if (keyRing_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getKeyRing()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getKeyRing()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -278,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.kms.v1.CreateKeyRingRequest)) { return super.equals(obj); } - com.google.cloud.kms.v1.CreateKeyRingRequest other = - (com.google.cloud.kms.v1.CreateKeyRingRequest) obj; + com.google.cloud.kms.v1.CreateKeyRingRequest other = (com.google.cloud.kms.v1.CreateKeyRingRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getKeyRingId().equals(other.getKeyRingId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getKeyRingId() + .equals(other.getKeyRingId())) return false; if (hasKeyRing() != other.hasKeyRing()) return false; if (hasKeyRing()) { - if (!getKeyRing().equals(other.getKeyRing())) return false; + if (!getKeyRing() + .equals(other.getKeyRing())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -316,104 +279,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.CreateKeyRingRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.CreateKeyRingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.CreateKeyRingRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.CreateKeyRingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.CreateKeyRingRequest parseFrom( 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.kms.v1.CreateKeyRingRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.CreateKeyRingRequest parseFrom( - byte[] data, com.google.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.kms.v1.CreateKeyRingRequest parseFrom(java.io.InputStream input) 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.kms.v1.CreateKeyRingRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.CreateKeyRingRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.CreateKeyRingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.CreateKeyRingRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.CreateKeyRingRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.CreateKeyRingRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.CreateKeyRingRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for
    * [KeyManagementService.CreateKeyRing][google.cloud.kms.v1.KeyManagementService.CreateKeyRing].
@@ -421,32 +377,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.CreateKeyRingRequest}
    */
-  public static final class Builder extends 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.kms.v1.CreateKeyRingRequest)
       com.google.cloud.kms.v1.CreateKeyRingRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_CreateKeyRingRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_CreateKeyRingRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_CreateKeyRingRequest_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_CreateKeyRingRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.CreateKeyRingRequest.class,
-              com.google.cloud.kms.v1.CreateKeyRingRequest.Builder.class);
+              com.google.cloud.kms.v1.CreateKeyRingRequest.class, com.google.cloud.kms.v1.CreateKeyRingRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.CreateKeyRingRequest.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 +421,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_CreateKeyRingRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_CreateKeyRingRequest_descriptor;
     }
 
     @java.lang.Override
@@ -485,8 +442,7 @@ public com.google.cloud.kms.v1.CreateKeyRingRequest build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.CreateKeyRingRequest buildPartial() {
-      com.google.cloud.kms.v1.CreateKeyRingRequest result =
-          new com.google.cloud.kms.v1.CreateKeyRingRequest(this);
+      com.google.cloud.kms.v1.CreateKeyRingRequest result = new com.google.cloud.kms.v1.CreateKeyRingRequest(this);
       result.parent_ = parent_;
       result.keyRingId_ = keyRingId_;
       if (keyRingBuilder_ == null) {
@@ -502,39 +458,38 @@ public com.google.cloud.kms.v1.CreateKeyRingRequest 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.kms.v1.CreateKeyRingRequest) {
-        return mergeFrom((com.google.cloud.kms.v1.CreateKeyRingRequest) other);
+        return mergeFrom((com.google.cloud.kms.v1.CreateKeyRingRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -580,31 +535,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 10
-            case 18:
-              {
-                keyRingId_ = input.readStringRequireUtf8();
+              break;
+            } // case 10
+            case 18: {
+              keyRingId_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getKeyRingFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getKeyRingFieldBuilder().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) {
@@ -617,24 +570,20 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the location associated with the
      * [KeyRings][google.cloud.kms.v1.KeyRing], in the format
      * `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -643,25 +592,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [KeyRings][google.cloud.kms.v1.KeyRing], in the format
      * `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -669,73 +615,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [KeyRings][google.cloud.kms.v1.KeyRing], in the format
      * `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the location associated with the
      * [KeyRings][google.cloud.kms.v1.KeyRing], in the format
      * `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the location associated with the
      * [KeyRings][google.cloud.kms.v1.KeyRing], in the format
      * `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -743,21 +676,19 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object keyRingId_ = ""; /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string key_ring_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The keyRingId. */ public java.lang.String getKeyRingId() { java.lang.Object ref = keyRingId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keyRingId_ = s; return s; @@ -766,22 +697,21 @@ public java.lang.String getKeyRingId() { } } /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string key_ring_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for keyRingId. */ - public com.google.protobuf.ByteString getKeyRingIdBytes() { + public com.google.protobuf.ByteString + getKeyRingIdBytes() { java.lang.Object ref = keyRingId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); keyRingId_ = b; return b; } else { @@ -789,64 +719,57 @@ public com.google.protobuf.ByteString getKeyRingIdBytes() { } } /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string key_ring_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The keyRingId to set. * @return This builder for chaining. */ - public Builder setKeyRingId(java.lang.String value) { + public Builder setKeyRingId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + keyRingId_ = value; onChanged(); return this; } /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string key_ring_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearKeyRingId() { - + keyRingId_ = getDefaultInstance().getKeyRingId(); onChanged(); return this; } /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string key_ring_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for keyRingId to set. * @return This builder for chaining. */ - public Builder setKeyRingIdBytes(com.google.protobuf.ByteString value) { + public Builder setKeyRingIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + keyRingId_ = value; onChanged(); return this; @@ -854,37 +777,26 @@ public Builder setKeyRingIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.kms.v1.KeyRing keyRing_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.KeyRing, - com.google.cloud.kms.v1.KeyRing.Builder, - com.google.cloud.kms.v1.KeyRingOrBuilder> - keyRingBuilder_; + com.google.cloud.kms.v1.KeyRing, com.google.cloud.kms.v1.KeyRing.Builder, com.google.cloud.kms.v1.KeyRingOrBuilder> keyRingBuilder_; /** - * - * *
      * Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field
      * values.
      * 
* - * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the keyRing field is set. */ public boolean hasKeyRing() { return keyRingBuilder_ != null || keyRing_ != null; } /** - * - * *
      * Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field
      * values.
      * 
* - * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The keyRing. */ public com.google.cloud.kms.v1.KeyRing getKeyRing() { @@ -895,15 +807,12 @@ public com.google.cloud.kms.v1.KeyRing getKeyRing() { } } /** - * - * *
      * Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field
      * values.
      * 
* - * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setKeyRing(com.google.cloud.kms.v1.KeyRing value) { if (keyRingBuilder_ == null) { @@ -919,17 +828,15 @@ public Builder setKeyRing(com.google.cloud.kms.v1.KeyRing value) { return this; } /** - * - * *
      * Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field
      * values.
      * 
* - * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setKeyRing(com.google.cloud.kms.v1.KeyRing.Builder builderForValue) { + public Builder setKeyRing( + com.google.cloud.kms.v1.KeyRing.Builder builderForValue) { if (keyRingBuilder_ == null) { keyRing_ = builderForValue.build(); onChanged(); @@ -940,21 +847,18 @@ public Builder setKeyRing(com.google.cloud.kms.v1.KeyRing.Builder builderForValu return this; } /** - * - * *
      * Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field
      * values.
      * 
* - * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeKeyRing(com.google.cloud.kms.v1.KeyRing value) { if (keyRingBuilder_ == null) { if (keyRing_ != null) { keyRing_ = - com.google.cloud.kms.v1.KeyRing.newBuilder(keyRing_).mergeFrom(value).buildPartial(); + com.google.cloud.kms.v1.KeyRing.newBuilder(keyRing_).mergeFrom(value).buildPartial(); } else { keyRing_ = value; } @@ -966,15 +870,12 @@ public Builder mergeKeyRing(com.google.cloud.kms.v1.KeyRing value) { return this; } /** - * - * *
      * Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field
      * values.
      * 
* - * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearKeyRing() { if (keyRingBuilder_ == null) { @@ -988,69 +889,58 @@ public Builder clearKeyRing() { return this; } /** - * - * *
      * Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field
      * values.
      * 
* - * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.kms.v1.KeyRing.Builder getKeyRingBuilder() { - + onChanged(); return getKeyRingFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field
      * values.
      * 
* - * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.kms.v1.KeyRingOrBuilder getKeyRingOrBuilder() { if (keyRingBuilder_ != null) { return keyRingBuilder_.getMessageOrBuilder(); } else { - return keyRing_ == null ? com.google.cloud.kms.v1.KeyRing.getDefaultInstance() : keyRing_; + return keyRing_ == null ? + com.google.cloud.kms.v1.KeyRing.getDefaultInstance() : keyRing_; } } /** - * - * *
      * Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field
      * values.
      * 
* - * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.KeyRing, - com.google.cloud.kms.v1.KeyRing.Builder, - com.google.cloud.kms.v1.KeyRingOrBuilder> + com.google.cloud.kms.v1.KeyRing, com.google.cloud.kms.v1.KeyRing.Builder, com.google.cloud.kms.v1.KeyRingOrBuilder> getKeyRingFieldBuilder() { if (keyRingBuilder_ == null) { - keyRingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.KeyRing, - com.google.cloud.kms.v1.KeyRing.Builder, - com.google.cloud.kms.v1.KeyRingOrBuilder>( - getKeyRing(), getParentForChildren(), isClean()); + keyRingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.kms.v1.KeyRing, com.google.cloud.kms.v1.KeyRing.Builder, com.google.cloud.kms.v1.KeyRingOrBuilder>( + getKeyRing(), + getParentForChildren(), + isClean()); keyRing_ = null; } return keyRingBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1060,12 +950,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.CreateKeyRingRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.CreateKeyRingRequest) private static final com.google.cloud.kms.v1.CreateKeyRingRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.CreateKeyRingRequest(); } @@ -1074,27 +964,27 @@ public static com.google.cloud.kms.v1.CreateKeyRingRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateKeyRingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateKeyRingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1109,4 +999,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.CreateKeyRingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateKeyRingRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateKeyRingRequestOrBuilder.java similarity index 63% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateKeyRingRequestOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateKeyRingRequestOrBuilder.java index f3c3c3267b24..270ec9cde962 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateKeyRingRequestOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CreateKeyRingRequestOrBuilder.java @@ -1,126 +1,85 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface CreateKeyRingRequestOrBuilder - extends +public interface CreateKeyRingRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.CreateKeyRingRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the location associated with the
    * [KeyRings][google.cloud.kms.v1.KeyRing], in the format
    * `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The resource name of the location associated with the
    * [KeyRings][google.cloud.kms.v1.KeyRing], in the format
    * `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string key_ring_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The keyRingId. */ java.lang.String getKeyRingId(); /** - * - * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string key_ring_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for keyRingId. */ - com.google.protobuf.ByteString getKeyRingIdBytes(); + com.google.protobuf.ByteString + getKeyRingIdBytes(); /** - * - * *
    * Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field
    * values.
    * 
* - * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the keyRing field is set. */ boolean hasKeyRing(); /** - * - * *
    * Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field
    * values.
    * 
* - * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The keyRing. */ com.google.cloud.kms.v1.KeyRing getKeyRing(); /** - * - * *
    * Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field
    * values.
    * 
* - * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.kms.v1.KeyRingOrBuilder getKeyRingOrBuilder(); } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKey.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKey.java similarity index 76% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKey.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKey.java index a57677f9a712..4c233debd270 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKey.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKey.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/kms/v1/resources.proto package com.google.cloud.kms.v1; /** - * - * *
  * A [CryptoKey][google.cloud.kms.v1.CryptoKey] represents a logical key that
  * can be used for cryptographic operations.
@@ -31,16 +14,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.CryptoKey}
  */
-public final class CryptoKey extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CryptoKey extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.CryptoKey)
     CryptoKeyOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CryptoKey.newBuilder() to construct.
   private CryptoKey(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CryptoKey() {
     name_ = "";
     purpose_ = 0;
@@ -49,44 +31,42 @@ private CryptoKey() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CryptoKey();
   }
 
   @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.kms.v1.KmsResourcesProto
-        .internal_static_google_cloud_kms_v1_CryptoKey_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_CryptoKey_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 10:
         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.kms.v1.KmsResourcesProto
-        .internal_static_google_cloud_kms_v1_CryptoKey_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_CryptoKey_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.CryptoKey.class,
-            com.google.cloud.kms.v1.CryptoKey.Builder.class);
+            com.google.cloud.kms.v1.CryptoKey.class, com.google.cloud.kms.v1.CryptoKey.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * [CryptoKeyPurpose][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose]
    * describes the cryptographic capabilities of a
@@ -97,10 +77,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    *
    * Protobuf enum {@code google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose}
    */
-  public enum CryptoKeyPurpose implements com.google.protobuf.ProtocolMessageEnum {
+  public enum CryptoKeyPurpose
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Not specified.
      * 
@@ -109,8 +88,6 @@ public enum CryptoKeyPurpose implements com.google.protobuf.ProtocolMessageEnum */ CRYPTO_KEY_PURPOSE_UNSPECIFIED(0), /** - * - * *
      * [CryptoKeys][google.cloud.kms.v1.CryptoKey] with this purpose may be used
      * with [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt] and
@@ -121,8 +98,6 @@ public enum CryptoKeyPurpose implements com.google.protobuf.ProtocolMessageEnum
      */
     ENCRYPT_DECRYPT(1),
     /**
-     *
-     *
      * 
      * [CryptoKeys][google.cloud.kms.v1.CryptoKey] with this purpose may be used
      * with
@@ -135,8 +110,6 @@ public enum CryptoKeyPurpose implements com.google.protobuf.ProtocolMessageEnum
      */
     ASYMMETRIC_SIGN(5),
     /**
-     *
-     *
      * 
      * [CryptoKeys][google.cloud.kms.v1.CryptoKey] with this purpose may be used
      * with
@@ -149,8 +122,6 @@ public enum CryptoKeyPurpose implements com.google.protobuf.ProtocolMessageEnum
      */
     ASYMMETRIC_DECRYPT(6),
     /**
-     *
-     *
      * 
      * [CryptoKeys][google.cloud.kms.v1.CryptoKey] with this purpose may be used
      * with [MacSign][google.cloud.kms.v1.KeyManagementService.MacSign].
@@ -163,8 +134,6 @@ public enum CryptoKeyPurpose implements com.google.protobuf.ProtocolMessageEnum
     ;
 
     /**
-     *
-     *
      * 
      * Not specified.
      * 
@@ -173,8 +142,6 @@ public enum CryptoKeyPurpose implements com.google.protobuf.ProtocolMessageEnum */ public static final int CRYPTO_KEY_PURPOSE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * [CryptoKeys][google.cloud.kms.v1.CryptoKey] with this purpose may be used
      * with [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt] and
@@ -185,8 +152,6 @@ public enum CryptoKeyPurpose implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int ENCRYPT_DECRYPT_VALUE = 1;
     /**
-     *
-     *
      * 
      * [CryptoKeys][google.cloud.kms.v1.CryptoKey] with this purpose may be used
      * with
@@ -199,8 +164,6 @@ public enum CryptoKeyPurpose implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int ASYMMETRIC_SIGN_VALUE = 5;
     /**
-     *
-     *
      * 
      * [CryptoKeys][google.cloud.kms.v1.CryptoKey] with this purpose may be used
      * with
@@ -213,8 +176,6 @@ public enum CryptoKeyPurpose implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int ASYMMETRIC_DECRYPT_VALUE = 6;
     /**
-     *
-     *
      * 
      * [CryptoKeys][google.cloud.kms.v1.CryptoKey] with this purpose may be used
      * with [MacSign][google.cloud.kms.v1.KeyManagementService.MacSign].
@@ -224,6 +185,7 @@ public enum CryptoKeyPurpose implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int MAC_VALUE = 9;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -248,46 +210,41 @@ public static CryptoKeyPurpose valueOf(int value) {
      */
     public static CryptoKeyPurpose forNumber(int value) {
       switch (value) {
-        case 0:
-          return CRYPTO_KEY_PURPOSE_UNSPECIFIED;
-        case 1:
-          return ENCRYPT_DECRYPT;
-        case 5:
-          return ASYMMETRIC_SIGN;
-        case 6:
-          return ASYMMETRIC_DECRYPT;
-        case 9:
-          return MAC;
-        default:
-          return null;
+        case 0: return CRYPTO_KEY_PURPOSE_UNSPECIFIED;
+        case 1: return ENCRYPT_DECRYPT;
+        case 5: return ASYMMETRIC_SIGN;
+        case 6: return ASYMMETRIC_DECRYPT;
+        case 9: return MAC;
+        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<
+        CryptoKeyPurpose> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public CryptoKeyPurpose findValueByNumber(int number) {
+              return CryptoKeyPurpose.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public CryptoKeyPurpose findValueByNumber(int number) {
-                return CryptoKeyPurpose.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.kms.v1.CryptoKey.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -296,7 +253,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static CryptoKeyPurpose 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;
@@ -315,15 +273,12 @@ private CryptoKeyPurpose(int value) {
 
   private int rotationScheduleCase_ = 0;
   private java.lang.Object rotationSchedule_;
-
   public enum RotationScheduleCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     ROTATION_PERIOD(8),
     ROTATIONSCHEDULE_NOT_SET(0);
     private final int value;
-
     private RotationScheduleCase(int value) {
       this.value = value;
     }
@@ -339,29 +294,25 @@ public static RotationScheduleCase valueOf(int value) {
 
     public static RotationScheduleCase forNumber(int value) {
       switch (value) {
-        case 8:
-          return ROTATION_PERIOD;
-        case 0:
-          return ROTATIONSCHEDULE_NOT_SET;
-        default:
-          return null;
+        case 8: return ROTATION_PERIOD;
+        case 0: return ROTATIONSCHEDULE_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public RotationScheduleCase getRotationScheduleCase() {
-    return RotationScheduleCase.forNumber(rotationScheduleCase_);
+  public RotationScheduleCase
+  getRotationScheduleCase() {
+    return RotationScheduleCase.forNumber(
+        rotationScheduleCase_);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Output only. The resource name for this
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] in the format
@@ -369,7 +320,6 @@ public RotationScheduleCase getRotationScheduleCase() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -378,15 +328,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; } } /** - * - * *
    * Output only. The resource name for this
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] in the format
@@ -394,15 +343,16 @@ public java.lang.String getName() {
    * 
* * 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 { @@ -413,8 +363,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PRIMARY_FIELD_NUMBER = 2; private com.google.cloud.kms.v1.CryptoKeyVersion primary_; /** - * - * *
    * Output only. A copy of the "primary"
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that will be used
@@ -429,10 +377,7 @@ public com.google.protobuf.ByteString getNameBytes() {
    * may have a primary. For other keys, this field will be omitted.
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the primary field is set. */ @java.lang.Override @@ -440,8 +385,6 @@ public boolean hasPrimary() { return primary_ != null; } /** - * - * *
    * Output only. A copy of the "primary"
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that will be used
@@ -456,21 +399,14 @@ public boolean hasPrimary() {
    * may have a primary. For other keys, this field will be omitted.
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The primary. */ @java.lang.Override public com.google.cloud.kms.v1.CryptoKeyVersion getPrimary() { - return primary_ == null - ? com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance() - : primary_; + return primary_ == null ? com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance() : primary_; } /** - * - * *
    * Output only. A copy of the "primary"
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that will be used
@@ -485,9 +421,7 @@ public com.google.cloud.kms.v1.CryptoKeyVersion getPrimary() {
    * may have a primary. For other keys, this field will be omitted.
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder getPrimaryOrBuilder() { @@ -497,60 +431,41 @@ public com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder getPrimaryOrBuilder() { public static final int PURPOSE_FIELD_NUMBER = 3; private int purpose_; /** - * - * *
    * Immutable. The immutable purpose of this
    * [CryptoKey][google.cloud.kms.v1.CryptoKey].
    * 
* - * - * .google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose purpose = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose purpose = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for purpose. */ - @java.lang.Override - public int getPurposeValue() { + @java.lang.Override public int getPurposeValue() { return purpose_; } /** - * - * *
    * Immutable. The immutable purpose of this
    * [CryptoKey][google.cloud.kms.v1.CryptoKey].
    * 
* - * - * .google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose purpose = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose purpose = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The purpose. */ - @java.lang.Override - public com.google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose getPurpose() { + @java.lang.Override public com.google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose getPurpose() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose result = - com.google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.valueOf(purpose_); - return result == null - ? com.google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.UNRECOGNIZED - : result; + com.google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose result = com.google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.valueOf(purpose_); + return result == null ? com.google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time at which this
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -558,16 +473,12 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time at which this
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -575,15 +486,12 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time at which this
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -593,8 +501,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int NEXT_ROTATION_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp nextRotationTime_; /** - * - * *
    * At [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time],
    * the Key Management Service will automatically:
@@ -612,7 +518,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp next_rotation_time = 7; - * * @return Whether the nextRotationTime field is set. */ @java.lang.Override @@ -620,8 +525,6 @@ public boolean hasNextRotationTime() { return nextRotationTime_ != null; } /** - * - * *
    * At [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time],
    * the Key Management Service will automatically:
@@ -639,18 +542,13 @@ public boolean hasNextRotationTime() {
    * 
* * .google.protobuf.Timestamp next_rotation_time = 7; - * * @return The nextRotationTime. */ @java.lang.Override public com.google.protobuf.Timestamp getNextRotationTime() { - return nextRotationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : nextRotationTime_; + return nextRotationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextRotationTime_; } /** - * - * *
    * At [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time],
    * the Key Management Service will automatically:
@@ -676,8 +574,6 @@ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() {
 
   public static final int ROTATION_PERIOD_FIELD_NUMBER = 8;
   /**
-   *
-   *
    * 
    * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]
    * will be advanced by this period when the service automatically rotates a
@@ -692,7 +588,6 @@ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() {
    * 
* * .google.protobuf.Duration rotation_period = 8; - * * @return Whether the rotationPeriod field is set. */ @java.lang.Override @@ -700,8 +595,6 @@ public boolean hasRotationPeriod() { return rotationScheduleCase_ == 8; } /** - * - * *
    * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]
    * will be advanced by this period when the service automatically rotates a
@@ -716,19 +609,16 @@ public boolean hasRotationPeriod() {
    * 
* * .google.protobuf.Duration rotation_period = 8; - * * @return The rotationPeriod. */ @java.lang.Override public com.google.protobuf.Duration getRotationPeriod() { if (rotationScheduleCase_ == 8) { - return (com.google.protobuf.Duration) rotationSchedule_; + return (com.google.protobuf.Duration) rotationSchedule_; } return com.google.protobuf.Duration.getDefaultInstance(); } /** - * - * *
    * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]
    * will be advanced by this period when the service automatically rotates a
@@ -747,7 +637,7 @@ public com.google.protobuf.Duration getRotationPeriod() {
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() {
     if (rotationScheduleCase_ == 8) {
-      return (com.google.protobuf.Duration) rotationSchedule_;
+       return (com.google.protobuf.Duration) rotationSchedule_;
     }
     return com.google.protobuf.Duration.getDefaultInstance();
   }
@@ -755,8 +645,6 @@ public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() {
   public static final int VERSION_TEMPLATE_FIELD_NUMBER = 11;
   private com.google.cloud.kms.v1.CryptoKeyVersionTemplate versionTemplate_;
   /**
-   *
-   *
    * 
    * A template describing settings for new
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances. The
@@ -767,7 +655,6 @@ public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() {
    * 
* * .google.cloud.kms.v1.CryptoKeyVersionTemplate version_template = 11; - * * @return Whether the versionTemplate field is set. */ @java.lang.Override @@ -775,8 +662,6 @@ public boolean hasVersionTemplate() { return versionTemplate_ != null; } /** - * - * *
    * A template describing settings for new
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances. The
@@ -787,18 +672,13 @@ public boolean hasVersionTemplate() {
    * 
* * .google.cloud.kms.v1.CryptoKeyVersionTemplate version_template = 11; - * * @return The versionTemplate. */ @java.lang.Override public com.google.cloud.kms.v1.CryptoKeyVersionTemplate getVersionTemplate() { - return versionTemplate_ == null - ? com.google.cloud.kms.v1.CryptoKeyVersionTemplate.getDefaultInstance() - : versionTemplate_; + return versionTemplate_ == null ? com.google.cloud.kms.v1.CryptoKeyVersionTemplate.getDefaultInstance() : versionTemplate_; } /** - * - * *
    * A template describing settings for new
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances. The
@@ -816,23 +696,24 @@ public com.google.cloud.kms.v1.CryptoKeyVersionTemplateOrBuilder getVersionTempl
   }
 
   public static final int LABELS_FIELD_NUMBER = 10;
-
   private static final class LabelsDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry defaultEntry =
-        com.google.protobuf.MapEntry.newDefaultInstance(
-            com.google.cloud.kms.v1.KmsResourcesProto
-                .internal_static_google_cloud_kms_v1_CryptoKey_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.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_CryptoKey_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_;
   }
@@ -841,8 +722,6 @@ public int getLabelsCount() {
     return internalGetLabels().getMap().size();
   }
   /**
-   *
-   *
    * 
    * Labels with user-defined metadata. For more information, see
    * [Labeling Keys](https://cloud.google.com/kms/docs/labeling-keys).
@@ -850,22 +729,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 10;
    */
+
   @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();
   }
   /**
-   *
-   *
    * 
    * Labels with user-defined metadata. For more information, see
    * [Labeling Keys](https://cloud.google.com/kms/docs/labeling-keys).
@@ -874,12 +753,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 10;
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Labels with user-defined metadata. For more information, see
    * [Labeling Keys](https://cloud.google.com/kms/docs/labeling-keys).
@@ -888,16 +766,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 10;
    */
   @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;
   }
   /**
-   *
-   *
    * 
    * Labels with user-defined metadata. For more information, see
    * [Labeling Keys](https://cloud.google.com/kms/docs/labeling-keys).
@@ -906,11 +784,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 10;
    */
   @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();
     }
@@ -920,14 +799,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int IMPORT_ONLY_FIELD_NUMBER = 13;
   private boolean importOnly_;
   /**
-   *
-   *
    * 
    * Immutable. Whether this key may contain imported versions only.
    * 
* * bool import_only = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The importOnly. */ @java.lang.Override @@ -938,8 +814,6 @@ public boolean getImportOnly() { public static final int DESTROY_SCHEDULED_DURATION_FIELD_NUMBER = 14; private com.google.protobuf.Duration destroyScheduledDuration_; /** - * - * *
    * Immutable. The period of time that versions of this key spend in the
    * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]
@@ -948,10 +822,7 @@ public boolean getImportOnly() {
    * If not specified at creation time, the default duration is 24 hours.
    * 
* - * - * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the destroyScheduledDuration field is set. */ @java.lang.Override @@ -959,8 +830,6 @@ public boolean hasDestroyScheduledDuration() { return destroyScheduledDuration_ != null; } /** - * - * *
    * Immutable. The period of time that versions of this key spend in the
    * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]
@@ -969,21 +838,14 @@ public boolean hasDestroyScheduledDuration() {
    * If not specified at creation time, the default duration is 24 hours.
    * 
* - * - * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; * @return The destroyScheduledDuration. */ @java.lang.Override public com.google.protobuf.Duration getDestroyScheduledDuration() { - return destroyScheduledDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : destroyScheduledDuration_; + return destroyScheduledDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : destroyScheduledDuration_; } /** - * - * *
    * Immutable. The period of time that versions of this key spend in the
    * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]
@@ -992,9 +854,7 @@ public com.google.protobuf.Duration getDestroyScheduledDuration() {
    * If not specified at creation time, the default duration is 24 hours.
    * 
* - * - * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDestroyScheduledDurationOrBuilder() { @@ -1004,8 +864,6 @@ public com.google.protobuf.DurationOrBuilder getDestroyScheduledDurationOrBuilde public static final int CRYPTO_KEY_BACKEND_FIELD_NUMBER = 15; private volatile java.lang.Object cryptoKeyBackend_; /** - * - * *
    * Immutable. The resource name of the backend environment where the key
    * material for all [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion]
@@ -1019,10 +877,7 @@ public com.google.protobuf.DurationOrBuilder getDestroyScheduledDurationOrBuilde
    * [ProtectionLevels][google.cloud.kms.v1.ProtectionLevel] in the future.
    * 
* - * - * string crypto_key_backend = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string crypto_key_backend = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The cryptoKeyBackend. */ @java.lang.Override @@ -1031,15 +886,14 @@ public java.lang.String getCryptoKeyBackend() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cryptoKeyBackend_ = s; return s; } } /** - * - * *
    * Immutable. The resource name of the backend environment where the key
    * material for all [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion]
@@ -1053,18 +907,17 @@ public java.lang.String getCryptoKeyBackend() {
    * [ProtectionLevels][google.cloud.kms.v1.ProtectionLevel] in the future.
    * 
* - * - * string crypto_key_backend = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string crypto_key_backend = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for cryptoKeyBackend. */ @java.lang.Override - public com.google.protobuf.ByteString getCryptoKeyBackendBytes() { + public com.google.protobuf.ByteString + getCryptoKeyBackendBytes() { java.lang.Object ref = cryptoKeyBackend_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cryptoKeyBackend_ = b; return b; } else { @@ -1073,7 +926,6 @@ public com.google.protobuf.ByteString getCryptoKeyBackendBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1085,16 +937,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (primary_ != null) { output.writeMessage(2, getPrimary()); } - if (purpose_ - != com.google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.CRYPTO_KEY_PURPOSE_UNSPECIFIED - .getNumber()) { + if (purpose_ != com.google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.CRYPTO_KEY_PURPOSE_UNSPECIFIED.getNumber()) { output.writeEnum(3, purpose_); } if (createTime_ != null) { @@ -1106,8 +957,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (rotationScheduleCase_ == 8) { output.writeMessage(8, (com.google.protobuf.Duration) rotationSchedule_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 10); if (versionTemplate_ != null) { output.writeMessage(11, getVersionTemplate()); } @@ -1133,44 +988,46 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (primary_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPrimary()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPrimary()); } - if (purpose_ - != com.google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.CRYPTO_KEY_PURPOSE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, purpose_); + if (purpose_ != com.google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.CRYPTO_KEY_PURPOSE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, purpose_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCreateTime()); } if (nextRotationTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getNextRotationTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getNextRotationTime()); } if (rotationScheduleCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, (com.google.protobuf.Duration) rotationSchedule_); - } - 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(10, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.protobuf.Duration) rotationSchedule_); + } + 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(10, labels__); } if (versionTemplate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getVersionTemplate()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getVersionTemplate()); } if (importOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, importOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, importOnly_); } if (destroyScheduledDuration_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 14, getDestroyScheduledDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getDestroyScheduledDuration()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cryptoKeyBackend_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, cryptoKeyBackend_); @@ -1183,42 +1040,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.kms.v1.CryptoKey)) { return super.equals(obj); } com.google.cloud.kms.v1.CryptoKey other = (com.google.cloud.kms.v1.CryptoKey) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasPrimary() != other.hasPrimary()) return false; if (hasPrimary()) { - if (!getPrimary().equals(other.getPrimary())) return false; + if (!getPrimary() + .equals(other.getPrimary())) return false; } if (purpose_ != other.purpose_) 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 (hasNextRotationTime() != other.hasNextRotationTime()) return false; if (hasNextRotationTime()) { - if (!getNextRotationTime().equals(other.getNextRotationTime())) return false; + if (!getNextRotationTime() + .equals(other.getNextRotationTime())) return false; } if (hasVersionTemplate() != other.hasVersionTemplate()) return false; if (hasVersionTemplate()) { - if (!getVersionTemplate().equals(other.getVersionTemplate())) return false; + if (!getVersionTemplate() + .equals(other.getVersionTemplate())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (getImportOnly() != other.getImportOnly()) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (getImportOnly() + != other.getImportOnly()) return false; if (hasDestroyScheduledDuration() != other.hasDestroyScheduledDuration()) return false; if (hasDestroyScheduledDuration()) { - if (!getDestroyScheduledDuration().equals(other.getDestroyScheduledDuration())) return false; + if (!getDestroyScheduledDuration() + .equals(other.getDestroyScheduledDuration())) return false; } - if (!getCryptoKeyBackend().equals(other.getCryptoKeyBackend())) return false; + if (!getCryptoKeyBackend() + .equals(other.getCryptoKeyBackend())) return false; if (!getRotationScheduleCase().equals(other.getRotationScheduleCase())) return false; switch (rotationScheduleCase_) { case 8: - if (!getRotationPeriod().equals(other.getRotationPeriod())) return false; + if (!getRotationPeriod() + .equals(other.getRotationPeriod())) return false; break; case 0: default: @@ -1259,7 +1126,8 @@ public int hashCode() { hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + IMPORT_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getImportOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getImportOnly()); if (hasDestroyScheduledDuration()) { hash = (37 * hash) + DESTROY_SCHEDULED_DURATION_FIELD_NUMBER; hash = (53 * hash) + getDestroyScheduledDuration().hashCode(); @@ -1279,103 +1147,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.CryptoKey parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.CryptoKey parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.CryptoKey parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.CryptoKey parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.kms.v1.CryptoKey parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.CryptoKey parseFrom( 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.kms.v1.CryptoKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.CryptoKey parseFrom( - byte[] data, com.google.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.kms.v1.CryptoKey parseFrom(java.io.InputStream input) 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.kms.v1.CryptoKey parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.CryptoKey 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.kms.v1.CryptoKey parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.CryptoKey parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.CryptoKey parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.CryptoKey prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CryptoKey][google.cloud.kms.v1.CryptoKey] represents a logical key that
    * can be used for cryptographic operations.
@@ -1386,52 +1248,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.CryptoKey}
    */
-  public static final class Builder extends 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.kms.v1.CryptoKey)
       com.google.cloud.kms.v1.CryptoKeyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsResourcesProto
-          .internal_static_google_cloud_kms_v1_CryptoKey_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_CryptoKey_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 10:
           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 10:
           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.kms.v1.KmsResourcesProto
-          .internal_static_google_cloud_kms_v1_CryptoKey_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_CryptoKey_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.CryptoKey.class,
-              com.google.cloud.kms.v1.CryptoKey.Builder.class);
+              com.google.cloud.kms.v1.CryptoKey.class, com.google.cloud.kms.v1.CryptoKey.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.CryptoKey.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();
@@ -1483,9 +1348,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsResourcesProto
-          .internal_static_google_cloud_kms_v1_CryptoKey_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_CryptoKey_descriptor;
     }
 
     @java.lang.Override
@@ -1553,39 +1418,38 @@ public com.google.cloud.kms.v1.CryptoKey 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.kms.v1.CryptoKey) {
-        return mergeFrom((com.google.cloud.kms.v1.CryptoKey) other);
+        return mergeFrom((com.google.cloud.kms.v1.CryptoKey)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1613,7 +1477,8 @@ public Builder mergeFrom(com.google.cloud.kms.v1.CryptoKey other) {
       if (other.hasVersionTemplate()) {
         mergeVersionTemplate(other.getVersionTemplate());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       if (other.getImportOnly() != false) {
         setImportOnly(other.getImportOnly());
       }
@@ -1625,15 +1490,13 @@ public Builder mergeFrom(com.google.cloud.kms.v1.CryptoKey other) {
         onChanged();
       }
       switch (other.getRotationScheduleCase()) {
-        case ROTATION_PERIOD:
-          {
-            mergeRotationPeriod(other.getRotationPeriod());
-            break;
-          }
-        case ROTATIONSCHEDULE_NOT_SET:
-          {
-            break;
-          }
+        case ROTATION_PERIOD: {
+          mergeRotationPeriod(other.getRotationPeriod());
+          break;
+        }
+        case ROTATIONSCHEDULE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1661,86 +1524,82 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getPrimaryFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 18
-            case 24:
-              {
-                purpose_ = input.readEnum();
-
-                break;
-              } // case 24
-            case 42:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 42
-            case 58:
-              {
-                input.readMessage(
-                    getNextRotationTimeFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(getRotationPeriodFieldBuilder().getBuilder(), extensionRegistry);
-                rotationScheduleCase_ = 8;
-                break;
-              } // case 66
-            case 82:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                break;
-              } // case 82
-            case 90:
-              {
-                input.readMessage(getVersionTemplateFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 90
-            case 104:
-              {
-                importOnly_ = input.readBool();
-
-                break;
-              } // case 104
-            case 114:
-              {
-                input.readMessage(
-                    getDestroyScheduledDurationFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 114
-            case 122:
-              {
-                cryptoKeyBackend_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 122
-            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: {
+              input.readMessage(
+                  getPrimaryFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 18
+            case 24: {
+              purpose_ = input.readEnum();
+
+              break;
+            } // case 24
+            case 42: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 42
+            case 58: {
+              input.readMessage(
+                  getNextRotationTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getRotationPeriodFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              rotationScheduleCase_ = 8;
+              break;
+            } // case 66
+            case 82: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              break;
+            } // case 82
+            case 90: {
+              input.readMessage(
+                  getVersionTemplateFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 90
+            case 104: {
+              importOnly_ = input.readBool();
+
+              break;
+            } // case 104
+            case 114: {
+              input.readMessage(
+                  getDestroyScheduledDurationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 114
+            case 122: {
+              cryptoKeyBackend_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 122
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1750,12 +1609,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int rotationScheduleCase_ = 0;
     private java.lang.Object rotationSchedule_;
-
-    public RotationScheduleCase getRotationScheduleCase() {
-      return RotationScheduleCase.forNumber(rotationScheduleCase_);
+    public RotationScheduleCase
+        getRotationScheduleCase() {
+      return RotationScheduleCase.forNumber(
+          rotationScheduleCase_);
     }
 
     public Builder clearRotationSchedule() {
@@ -1769,8 +1628,6 @@ public Builder clearRotationSchedule() {
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource name for this
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] in the format
@@ -1778,13 +1635,13 @@ public Builder clearRotationSchedule() {
      * 
* * 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; @@ -1793,8 +1650,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name for this
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] in the format
@@ -1802,14 +1657,15 @@ public java.lang.String getName() {
      * 
* * 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 { @@ -1817,8 +1673,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name for this
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] in the format
@@ -1826,22 +1680,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * 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 for this
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] in the format
@@ -1849,18 +1701,15 @@ public Builder setName(java.lang.String value) {
      * 
* * 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 for this
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] in the format
@@ -1868,16 +1717,16 @@ public Builder clearName() {
      * 
* * 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; @@ -1885,13 +1734,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.kms.v1.CryptoKeyVersion primary_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.CryptoKeyVersion, - com.google.cloud.kms.v1.CryptoKeyVersion.Builder, - com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder> - primaryBuilder_; + com.google.cloud.kms.v1.CryptoKeyVersion, com.google.cloud.kms.v1.CryptoKeyVersion.Builder, com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder> primaryBuilder_; /** - * - * *
      * Output only. A copy of the "primary"
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that will be used
@@ -1906,18 +1750,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * may have a primary. For other keys, this field will be omitted.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the primary field is set. */ public boolean hasPrimary() { return primaryBuilder_ != null || primary_ != null; } /** - * - * *
      * Output only. A copy of the "primary"
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that will be used
@@ -1932,24 +1771,17 @@ public boolean hasPrimary() {
      * may have a primary. For other keys, this field will be omitted.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The primary. */ public com.google.cloud.kms.v1.CryptoKeyVersion getPrimary() { if (primaryBuilder_ == null) { - return primary_ == null - ? com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance() - : primary_; + return primary_ == null ? com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance() : primary_; } else { return primaryBuilder_.getMessage(); } } /** - * - * *
      * Output only. A copy of the "primary"
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that will be used
@@ -1964,9 +1796,7 @@ public com.google.cloud.kms.v1.CryptoKeyVersion getPrimary() {
      * may have a primary. For other keys, this field will be omitted.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setPrimary(com.google.cloud.kms.v1.CryptoKeyVersion value) { if (primaryBuilder_ == null) { @@ -1982,8 +1812,6 @@ public Builder setPrimary(com.google.cloud.kms.v1.CryptoKeyVersion value) { return this; } /** - * - * *
      * Output only. A copy of the "primary"
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that will be used
@@ -1998,11 +1826,10 @@ public Builder setPrimary(com.google.cloud.kms.v1.CryptoKeyVersion value) {
      * may have a primary. For other keys, this field will be omitted.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setPrimary(com.google.cloud.kms.v1.CryptoKeyVersion.Builder builderForValue) { + public Builder setPrimary( + com.google.cloud.kms.v1.CryptoKeyVersion.Builder builderForValue) { if (primaryBuilder_ == null) { primary_ = builderForValue.build(); onChanged(); @@ -2013,8 +1840,6 @@ public Builder setPrimary(com.google.cloud.kms.v1.CryptoKeyVersion.Builder build return this; } /** - * - * *
      * Output only. A copy of the "primary"
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that will be used
@@ -2029,17 +1854,13 @@ public Builder setPrimary(com.google.cloud.kms.v1.CryptoKeyVersion.Builder build
      * may have a primary. For other keys, this field will be omitted.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergePrimary(com.google.cloud.kms.v1.CryptoKeyVersion value) { if (primaryBuilder_ == null) { if (primary_ != null) { primary_ = - com.google.cloud.kms.v1.CryptoKeyVersion.newBuilder(primary_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.kms.v1.CryptoKeyVersion.newBuilder(primary_).mergeFrom(value).buildPartial(); } else { primary_ = value; } @@ -2051,8 +1872,6 @@ public Builder mergePrimary(com.google.cloud.kms.v1.CryptoKeyVersion value) { return this; } /** - * - * *
      * Output only. A copy of the "primary"
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that will be used
@@ -2067,9 +1886,7 @@ public Builder mergePrimary(com.google.cloud.kms.v1.CryptoKeyVersion value) {
      * may have a primary. For other keys, this field will be omitted.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearPrimary() { if (primaryBuilder_ == null) { @@ -2083,8 +1900,6 @@ public Builder clearPrimary() { return this; } /** - * - * *
      * Output only. A copy of the "primary"
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that will be used
@@ -2099,18 +1914,14 @@ public Builder clearPrimary() {
      * may have a primary. For other keys, this field will be omitted.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.kms.v1.CryptoKeyVersion.Builder getPrimaryBuilder() { - + onChanged(); return getPrimaryFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. A copy of the "primary"
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that will be used
@@ -2125,22 +1936,17 @@ public com.google.cloud.kms.v1.CryptoKeyVersion.Builder getPrimaryBuilder() {
      * may have a primary. For other keys, this field will be omitted.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder getPrimaryOrBuilder() { if (primaryBuilder_ != null) { return primaryBuilder_.getMessageOrBuilder(); } else { - return primary_ == null - ? com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance() - : primary_; + return primary_ == null ? + com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance() : primary_; } } /** - * - * *
      * Output only. A copy of the "primary"
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that will be used
@@ -2155,22 +1961,17 @@ public com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder getPrimaryOrBuilder() {
      * may have a primary. For other keys, this field will be omitted.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.CryptoKeyVersion, - com.google.cloud.kms.v1.CryptoKeyVersion.Builder, - com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder> + com.google.cloud.kms.v1.CryptoKeyVersion, com.google.cloud.kms.v1.CryptoKeyVersion.Builder, com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder> getPrimaryFieldBuilder() { if (primaryBuilder_ == null) { - primaryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.CryptoKeyVersion, - com.google.cloud.kms.v1.CryptoKeyVersion.Builder, - com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder>( - getPrimary(), getParentForChildren(), isClean()); + primaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.kms.v1.CryptoKeyVersion, com.google.cloud.kms.v1.CryptoKeyVersion.Builder, com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder>( + getPrimary(), + getParentForChildren(), + isClean()); primary_ = null; } return primaryBuilder_; @@ -2178,79 +1979,55 @@ public com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder getPrimaryOrBuilder() { private int purpose_ = 0; /** - * - * *
      * Immutable. The immutable purpose of this
      * [CryptoKey][google.cloud.kms.v1.CryptoKey].
      * 
* - * - * .google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose purpose = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose purpose = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for purpose. */ - @java.lang.Override - public int getPurposeValue() { + @java.lang.Override public int getPurposeValue() { return purpose_; } /** - * - * *
      * Immutable. The immutable purpose of this
      * [CryptoKey][google.cloud.kms.v1.CryptoKey].
      * 
* - * - * .google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose purpose = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose purpose = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The enum numeric value on the wire for purpose to set. * @return This builder for chaining. */ public Builder setPurposeValue(int value) { - + purpose_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. The immutable purpose of this
      * [CryptoKey][google.cloud.kms.v1.CryptoKey].
      * 
* - * - * .google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose purpose = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose purpose = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The purpose. */ @java.lang.Override public com.google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose getPurpose() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose result = - com.google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.valueOf(purpose_); - return result == null - ? com.google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.UNRECOGNIZED - : result; + com.google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose result = com.google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.valueOf(purpose_); + return result == null ? com.google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.UNRECOGNIZED : result; } /** - * - * *
      * Immutable. The immutable purpose of this
      * [CryptoKey][google.cloud.kms.v1.CryptoKey].
      * 
* - * - * .google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose purpose = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose purpose = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The purpose to set. * @return This builder for chaining. */ @@ -2258,27 +2035,22 @@ public Builder setPurpose(com.google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose val if (value == null) { throw new NullPointerException(); } - + purpose_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Immutable. The immutable purpose of this
      * [CryptoKey][google.cloud.kms.v1.CryptoKey].
      * 
* - * - * .google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose purpose = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose purpose = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearPurpose() { - + purpose_ = 0; onChanged(); return this; @@ -2286,61 +2058,42 @@ public Builder clearPurpose() { 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 at which this
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.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 at which this
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.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 at which this
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2356,18 +2109,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.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(); @@ -2378,22 +2128,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.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; } @@ -2405,16 +2151,12 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2428,67 +2170,51 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time at which this
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.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 at which this
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 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_; @@ -2496,13 +2222,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp nextRotationTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - nextRotationTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> nextRotationTimeBuilder_; /** - * - * *
      * At [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time],
      * the Key Management Service will automatically:
@@ -2520,15 +2241,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp next_rotation_time = 7; - * * @return Whether the nextRotationTime field is set. */ public boolean hasNextRotationTime() { return nextRotationTimeBuilder_ != null || nextRotationTime_ != null; } /** - * - * *
      * At [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time],
      * the Key Management Service will automatically:
@@ -2546,21 +2264,16 @@ public boolean hasNextRotationTime() {
      * 
* * .google.protobuf.Timestamp next_rotation_time = 7; - * * @return The nextRotationTime. */ public com.google.protobuf.Timestamp getNextRotationTime() { if (nextRotationTimeBuilder_ == null) { - return nextRotationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : nextRotationTime_; + return nextRotationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextRotationTime_; } else { return nextRotationTimeBuilder_.getMessage(); } } /** - * - * *
      * At [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time],
      * the Key Management Service will automatically:
@@ -2593,8 +2306,6 @@ public Builder setNextRotationTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * At [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time],
      * the Key Management Service will automatically:
@@ -2613,7 +2324,8 @@ public Builder setNextRotationTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp next_rotation_time = 7;
      */
-    public Builder setNextRotationTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setNextRotationTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (nextRotationTimeBuilder_ == null) {
         nextRotationTime_ = builderForValue.build();
         onChanged();
@@ -2624,8 +2336,6 @@ public Builder setNextRotationTime(com.google.protobuf.Timestamp.Builder builder
       return this;
     }
     /**
-     *
-     *
      * 
      * At [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time],
      * the Key Management Service will automatically:
@@ -2648,9 +2358,7 @@ public Builder mergeNextRotationTime(com.google.protobuf.Timestamp value) {
       if (nextRotationTimeBuilder_ == null) {
         if (nextRotationTime_ != null) {
           nextRotationTime_ =
-              com.google.protobuf.Timestamp.newBuilder(nextRotationTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(nextRotationTime_).mergeFrom(value).buildPartial();
         } else {
           nextRotationTime_ = value;
         }
@@ -2662,8 +2370,6 @@ public Builder mergeNextRotationTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * At [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time],
      * the Key Management Service will automatically:
@@ -2694,8 +2400,6 @@ public Builder clearNextRotationTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * At [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time],
      * the Key Management Service will automatically:
@@ -2715,13 +2419,11 @@ public Builder clearNextRotationTime() {
      * .google.protobuf.Timestamp next_rotation_time = 7;
      */
     public com.google.protobuf.Timestamp.Builder getNextRotationTimeBuilder() {
-
+      
       onChanged();
       return getNextRotationTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * At [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time],
      * the Key Management Service will automatically:
@@ -2744,14 +2446,11 @@ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() {
       if (nextRotationTimeBuilder_ != null) {
         return nextRotationTimeBuilder_.getMessageOrBuilder();
       } else {
-        return nextRotationTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : nextRotationTime_;
+        return nextRotationTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : nextRotationTime_;
       }
     }
     /**
-     *
-     *
      * 
      * At [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time],
      * the Key Management Service will automatically:
@@ -2771,30 +2470,22 @@ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() {
      * .google.protobuf.Timestamp next_rotation_time = 7;
      */
     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> 
         getNextRotationTimeFieldBuilder() {
       if (nextRotationTimeBuilder_ == null) {
-        nextRotationTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getNextRotationTime(), getParentForChildren(), isClean());
+        nextRotationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getNextRotationTime(),
+                getParentForChildren(),
+                isClean());
         nextRotationTime_ = null;
       }
       return nextRotationTimeBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        rotationPeriodBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> rotationPeriodBuilder_;
     /**
-     *
-     *
      * 
      * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]
      * will be advanced by this period when the service automatically rotates a
@@ -2809,7 +2500,6 @@ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() {
      * 
* * .google.protobuf.Duration rotation_period = 8; - * * @return Whether the rotationPeriod field is set. */ @java.lang.Override @@ -2817,8 +2507,6 @@ public boolean hasRotationPeriod() { return rotationScheduleCase_ == 8; } /** - * - * *
      * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]
      * will be advanced by this period when the service automatically rotates a
@@ -2833,7 +2521,6 @@ public boolean hasRotationPeriod() {
      * 
* * .google.protobuf.Duration rotation_period = 8; - * * @return The rotationPeriod. */ @java.lang.Override @@ -2851,8 +2538,6 @@ public com.google.protobuf.Duration getRotationPeriod() { } } /** - * - * *
      * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]
      * will be advanced by this period when the service automatically rotates a
@@ -2882,8 +2567,6 @@ public Builder setRotationPeriod(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]
      * will be advanced by this period when the service automatically rotates a
@@ -2899,7 +2582,8 @@ public Builder setRotationPeriod(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration rotation_period = 8;
      */
-    public Builder setRotationPeriod(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setRotationPeriod(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (rotationPeriodBuilder_ == null) {
         rotationSchedule_ = builderForValue.build();
         onChanged();
@@ -2910,8 +2594,6 @@ public Builder setRotationPeriod(com.google.protobuf.Duration.Builder builderFor
       return this;
     }
     /**
-     *
-     *
      * 
      * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]
      * will be advanced by this period when the service automatically rotates a
@@ -2929,13 +2611,10 @@ public Builder setRotationPeriod(com.google.protobuf.Duration.Builder builderFor
      */
     public Builder mergeRotationPeriod(com.google.protobuf.Duration value) {
       if (rotationPeriodBuilder_ == null) {
-        if (rotationScheduleCase_ == 8
-            && rotationSchedule_ != com.google.protobuf.Duration.getDefaultInstance()) {
-          rotationSchedule_ =
-              com.google.protobuf.Duration.newBuilder(
-                      (com.google.protobuf.Duration) rotationSchedule_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (rotationScheduleCase_ == 8 &&
+            rotationSchedule_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          rotationSchedule_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) rotationSchedule_)
+              .mergeFrom(value).buildPartial();
         } else {
           rotationSchedule_ = value;
         }
@@ -2951,8 +2630,6 @@ public Builder mergeRotationPeriod(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]
      * will be advanced by this period when the service automatically rotates a
@@ -2985,8 +2662,6 @@ public Builder clearRotationPeriod() {
       return this;
     }
     /**
-     *
-     *
      * 
      * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]
      * will be advanced by this period when the service automatically rotates a
@@ -3006,8 +2681,6 @@ public com.google.protobuf.Duration.Builder getRotationPeriodBuilder() {
       return getRotationPeriodFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]
      * will be advanced by this period when the service automatically rotates a
@@ -3035,8 +2708,6 @@ public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]
      * will be advanced by this period when the service automatically rotates a
@@ -3053,39 +2724,28 @@ public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() {
      * .google.protobuf.Duration rotation_period = 8;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getRotationPeriodFieldBuilder() {
       if (rotationPeriodBuilder_ == null) {
         if (!(rotationScheduleCase_ == 8)) {
           rotationSchedule_ = com.google.protobuf.Duration.getDefaultInstance();
         }
-        rotationPeriodBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
+        rotationPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
                 (com.google.protobuf.Duration) rotationSchedule_,
                 getParentForChildren(),
                 isClean());
         rotationSchedule_ = null;
       }
       rotationScheduleCase_ = 8;
-      onChanged();
-      ;
+      onChanged();;
       return rotationPeriodBuilder_;
     }
 
     private com.google.cloud.kms.v1.CryptoKeyVersionTemplate versionTemplate_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.kms.v1.CryptoKeyVersionTemplate,
-            com.google.cloud.kms.v1.CryptoKeyVersionTemplate.Builder,
-            com.google.cloud.kms.v1.CryptoKeyVersionTemplateOrBuilder>
-        versionTemplateBuilder_;
+        com.google.cloud.kms.v1.CryptoKeyVersionTemplate, com.google.cloud.kms.v1.CryptoKeyVersionTemplate.Builder, com.google.cloud.kms.v1.CryptoKeyVersionTemplateOrBuilder> versionTemplateBuilder_;
     /**
-     *
-     *
      * 
      * A template describing settings for new
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances. The
@@ -3096,15 +2756,12 @@ public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() {
      * 
* * .google.cloud.kms.v1.CryptoKeyVersionTemplate version_template = 11; - * * @return Whether the versionTemplate field is set. */ public boolean hasVersionTemplate() { return versionTemplateBuilder_ != null || versionTemplate_ != null; } /** - * - * *
      * A template describing settings for new
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances. The
@@ -3115,21 +2772,16 @@ public boolean hasVersionTemplate() {
      * 
* * .google.cloud.kms.v1.CryptoKeyVersionTemplate version_template = 11; - * * @return The versionTemplate. */ public com.google.cloud.kms.v1.CryptoKeyVersionTemplate getVersionTemplate() { if (versionTemplateBuilder_ == null) { - return versionTemplate_ == null - ? com.google.cloud.kms.v1.CryptoKeyVersionTemplate.getDefaultInstance() - : versionTemplate_; + return versionTemplate_ == null ? com.google.cloud.kms.v1.CryptoKeyVersionTemplate.getDefaultInstance() : versionTemplate_; } else { return versionTemplateBuilder_.getMessage(); } } /** - * - * *
      * A template describing settings for new
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances. The
@@ -3155,8 +2807,6 @@ public Builder setVersionTemplate(com.google.cloud.kms.v1.CryptoKeyVersionTempla
       return this;
     }
     /**
-     *
-     *
      * 
      * A template describing settings for new
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances. The
@@ -3180,8 +2830,6 @@ public Builder setVersionTemplate(
       return this;
     }
     /**
-     *
-     *
      * 
      * A template describing settings for new
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances. The
@@ -3197,9 +2845,7 @@ public Builder mergeVersionTemplate(com.google.cloud.kms.v1.CryptoKeyVersionTemp
       if (versionTemplateBuilder_ == null) {
         if (versionTemplate_ != null) {
           versionTemplate_ =
-              com.google.cloud.kms.v1.CryptoKeyVersionTemplate.newBuilder(versionTemplate_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.kms.v1.CryptoKeyVersionTemplate.newBuilder(versionTemplate_).mergeFrom(value).buildPartial();
         } else {
           versionTemplate_ = value;
         }
@@ -3211,8 +2857,6 @@ public Builder mergeVersionTemplate(com.google.cloud.kms.v1.CryptoKeyVersionTemp
       return this;
     }
     /**
-     *
-     *
      * 
      * A template describing settings for new
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances. The
@@ -3236,8 +2880,6 @@ public Builder clearVersionTemplate() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A template describing settings for new
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances. The
@@ -3250,13 +2892,11 @@ public Builder clearVersionTemplate() {
      * .google.cloud.kms.v1.CryptoKeyVersionTemplate version_template = 11;
      */
     public com.google.cloud.kms.v1.CryptoKeyVersionTemplate.Builder getVersionTemplateBuilder() {
-
+      
       onChanged();
       return getVersionTemplateFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A template describing settings for new
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances. The
@@ -3272,14 +2912,11 @@ public com.google.cloud.kms.v1.CryptoKeyVersionTemplateOrBuilder getVersionTempl
       if (versionTemplateBuilder_ != null) {
         return versionTemplateBuilder_.getMessageOrBuilder();
       } else {
-        return versionTemplate_ == null
-            ? com.google.cloud.kms.v1.CryptoKeyVersionTemplate.getDefaultInstance()
-            : versionTemplate_;
+        return versionTemplate_ == null ?
+            com.google.cloud.kms.v1.CryptoKeyVersionTemplate.getDefaultInstance() : versionTemplate_;
       }
     }
     /**
-     *
-     *
      * 
      * A template describing settings for new
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances. The
@@ -3292,37 +2929,35 @@ public com.google.cloud.kms.v1.CryptoKeyVersionTemplateOrBuilder getVersionTempl
      * .google.cloud.kms.v1.CryptoKeyVersionTemplate version_template = 11;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.kms.v1.CryptoKeyVersionTemplate,
-            com.google.cloud.kms.v1.CryptoKeyVersionTemplate.Builder,
-            com.google.cloud.kms.v1.CryptoKeyVersionTemplateOrBuilder>
+        com.google.cloud.kms.v1.CryptoKeyVersionTemplate, com.google.cloud.kms.v1.CryptoKeyVersionTemplate.Builder, com.google.cloud.kms.v1.CryptoKeyVersionTemplateOrBuilder> 
         getVersionTemplateFieldBuilder() {
       if (versionTemplateBuilder_ == null) {
-        versionTemplateBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.kms.v1.CryptoKeyVersionTemplate,
-                com.google.cloud.kms.v1.CryptoKeyVersionTemplate.Builder,
-                com.google.cloud.kms.v1.CryptoKeyVersionTemplateOrBuilder>(
-                getVersionTemplate(), getParentForChildren(), isClean());
+        versionTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.kms.v1.CryptoKeyVersionTemplate, com.google.cloud.kms.v1.CryptoKeyVersionTemplate.Builder, com.google.cloud.kms.v1.CryptoKeyVersionTemplateOrBuilder>(
+                getVersionTemplate(),
+                getParentForChildren(),
+                isClean());
         versionTemplate_ = null;
       }
       return versionTemplateBuilder_;
     }
 
-    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();
@@ -3334,8 +2969,6 @@ public int getLabelsCount() {
       return internalGetLabels().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Labels with user-defined metadata. For more information, see
      * [Labeling Keys](https://cloud.google.com/kms/docs/labeling-keys).
@@ -3343,22 +2976,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 10;
      */
+
     @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();
     }
     /**
-     *
-     *
      * 
      * Labels with user-defined metadata. For more information, see
      * [Labeling Keys](https://cloud.google.com/kms/docs/labeling-keys).
@@ -3367,12 +3000,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 10;
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Labels with user-defined metadata. For more information, see
      * [Labeling Keys](https://cloud.google.com/kms/docs/labeling-keys).
@@ -3381,17 +3013,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 10;
      */
     @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;
     }
     /**
-     *
-     *
      * 
      * Labels with user-defined metadata. For more information, see
      * [Labeling Keys](https://cloud.google.com/kms/docs/labeling-keys).
@@ -3400,11 +3031,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 10;
      */
     @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();
       }
@@ -3412,12 +3044,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Labels with user-defined metadata. For more information, see
      * [Labeling Keys](https://cloud.google.com/kms/docs/labeling-keys).
@@ -3425,21 +3056,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 10;
      */
-    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();
     }
     /**
-     *
-     *
      * 
      * Labels with user-defined metadata. For more information, see
      * [Labeling Keys](https://cloud.google.com/kms/docs/labeling-keys).
@@ -3447,20 +3080,19 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 10;
      */
-    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;
     }
     /**
-     *
-     *
      * 
      * Labels with user-defined metadata. For more information, see
      * [Labeling Keys](https://cloud.google.com/kms/docs/labeling-keys).
@@ -3468,21 +3100,21 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 10;
      */
-    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 boolean importOnly_;
+    private boolean importOnly_ ;
     /**
-     *
-     *
      * 
      * Immutable. Whether this key may contain imported versions only.
      * 
* * bool import_only = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The importOnly. */ @java.lang.Override @@ -3490,36 +3122,30 @@ public boolean getImportOnly() { return importOnly_; } /** - * - * *
      * Immutable. Whether this key may contain imported versions only.
      * 
* * bool import_only = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The importOnly to set. * @return This builder for chaining. */ public Builder setImportOnly(boolean value) { - + importOnly_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. Whether this key may contain imported versions only.
      * 
* * bool import_only = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearImportOnly() { - + importOnly_ = false; onChanged(); return this; @@ -3527,13 +3153,8 @@ public Builder clearImportOnly() { private com.google.protobuf.Duration destroyScheduledDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - destroyScheduledDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> destroyScheduledDurationBuilder_; /** - * - * *
      * Immutable. The period of time that versions of this key spend in the
      * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]
@@ -3542,18 +3163,13 @@ public Builder clearImportOnly() {
      * If not specified at creation time, the default duration is 24 hours.
      * 
* - * - * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the destroyScheduledDuration field is set. */ public boolean hasDestroyScheduledDuration() { return destroyScheduledDurationBuilder_ != null || destroyScheduledDuration_ != null; } /** - * - * *
      * Immutable. The period of time that versions of this key spend in the
      * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]
@@ -3562,24 +3178,17 @@ public boolean hasDestroyScheduledDuration() {
      * If not specified at creation time, the default duration is 24 hours.
      * 
* - * - * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; * @return The destroyScheduledDuration. */ public com.google.protobuf.Duration getDestroyScheduledDuration() { if (destroyScheduledDurationBuilder_ == null) { - return destroyScheduledDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : destroyScheduledDuration_; + return destroyScheduledDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : destroyScheduledDuration_; } else { return destroyScheduledDurationBuilder_.getMessage(); } } /** - * - * *
      * Immutable. The period of time that versions of this key spend in the
      * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]
@@ -3588,9 +3197,7 @@ public com.google.protobuf.Duration getDestroyScheduledDuration() {
      * If not specified at creation time, the default duration is 24 hours.
      * 
* - * - * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setDestroyScheduledDuration(com.google.protobuf.Duration value) { if (destroyScheduledDurationBuilder_ == null) { @@ -3606,8 +3213,6 @@ public Builder setDestroyScheduledDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Immutable. The period of time that versions of this key spend in the
      * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]
@@ -3616,9 +3221,7 @@ public Builder setDestroyScheduledDuration(com.google.protobuf.Duration value) {
      * If not specified at creation time, the default duration is 24 hours.
      * 
* - * - * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setDestroyScheduledDuration( com.google.protobuf.Duration.Builder builderForValue) { @@ -3632,8 +3235,6 @@ public Builder setDestroyScheduledDuration( return this; } /** - * - * *
      * Immutable. The period of time that versions of this key spend in the
      * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]
@@ -3642,17 +3243,13 @@ public Builder setDestroyScheduledDuration(
      * If not specified at creation time, the default duration is 24 hours.
      * 
* - * - * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder mergeDestroyScheduledDuration(com.google.protobuf.Duration value) { if (destroyScheduledDurationBuilder_ == null) { if (destroyScheduledDuration_ != null) { destroyScheduledDuration_ = - com.google.protobuf.Duration.newBuilder(destroyScheduledDuration_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Duration.newBuilder(destroyScheduledDuration_).mergeFrom(value).buildPartial(); } else { destroyScheduledDuration_ = value; } @@ -3664,8 +3261,6 @@ public Builder mergeDestroyScheduledDuration(com.google.protobuf.Duration value) return this; } /** - * - * *
      * Immutable. The period of time that versions of this key spend in the
      * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]
@@ -3674,9 +3269,7 @@ public Builder mergeDestroyScheduledDuration(com.google.protobuf.Duration value)
      * If not specified at creation time, the default duration is 24 hours.
      * 
* - * - * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearDestroyScheduledDuration() { if (destroyScheduledDurationBuilder_ == null) { @@ -3690,8 +3283,6 @@ public Builder clearDestroyScheduledDuration() { return this; } /** - * - * *
      * Immutable. The period of time that versions of this key spend in the
      * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]
@@ -3700,18 +3291,14 @@ public Builder clearDestroyScheduledDuration() {
      * If not specified at creation time, the default duration is 24 hours.
      * 
* - * - * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; */ public com.google.protobuf.Duration.Builder getDestroyScheduledDurationBuilder() { - + onChanged(); return getDestroyScheduledDurationFieldBuilder().getBuilder(); } /** - * - * *
      * Immutable. The period of time that versions of this key spend in the
      * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]
@@ -3720,22 +3307,17 @@ public com.google.protobuf.Duration.Builder getDestroyScheduledDurationBuilder()
      * If not specified at creation time, the default duration is 24 hours.
      * 
* - * - * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; */ public com.google.protobuf.DurationOrBuilder getDestroyScheduledDurationOrBuilder() { if (destroyScheduledDurationBuilder_ != null) { return destroyScheduledDurationBuilder_.getMessageOrBuilder(); } else { - return destroyScheduledDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : destroyScheduledDuration_; + return destroyScheduledDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : destroyScheduledDuration_; } } /** - * - * *
      * Immutable. The period of time that versions of this key spend in the
      * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]
@@ -3744,22 +3326,17 @@ public com.google.protobuf.DurationOrBuilder getDestroyScheduledDurationOrBuilde
      * If not specified at creation time, the default duration is 24 hours.
      * 
* - * - * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getDestroyScheduledDurationFieldBuilder() { if (destroyScheduledDurationBuilder_ == null) { - destroyScheduledDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getDestroyScheduledDuration(), getParentForChildren(), isClean()); + destroyScheduledDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDestroyScheduledDuration(), + getParentForChildren(), + isClean()); destroyScheduledDuration_ = null; } return destroyScheduledDurationBuilder_; @@ -3767,8 +3344,6 @@ public com.google.protobuf.DurationOrBuilder getDestroyScheduledDurationOrBuilde private java.lang.Object cryptoKeyBackend_ = ""; /** - * - * *
      * Immutable. The resource name of the backend environment where the key
      * material for all [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion]
@@ -3782,16 +3357,14 @@ public com.google.protobuf.DurationOrBuilder getDestroyScheduledDurationOrBuilde
      * [ProtectionLevels][google.cloud.kms.v1.ProtectionLevel] in the future.
      * 
* - * - * string crypto_key_backend = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string crypto_key_backend = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The cryptoKeyBackend. */ public java.lang.String getCryptoKeyBackend() { java.lang.Object ref = cryptoKeyBackend_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cryptoKeyBackend_ = s; return s; @@ -3800,8 +3373,6 @@ public java.lang.String getCryptoKeyBackend() { } } /** - * - * *
      * Immutable. The resource name of the backend environment where the key
      * material for all [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion]
@@ -3815,17 +3386,16 @@ public java.lang.String getCryptoKeyBackend() {
      * [ProtectionLevels][google.cloud.kms.v1.ProtectionLevel] in the future.
      * 
* - * - * string crypto_key_backend = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string crypto_key_backend = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for cryptoKeyBackend. */ - public com.google.protobuf.ByteString getCryptoKeyBackendBytes() { + public com.google.protobuf.ByteString + getCryptoKeyBackendBytes() { java.lang.Object ref = cryptoKeyBackend_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cryptoKeyBackend_ = b; return b; } else { @@ -3833,8 +3403,6 @@ public com.google.protobuf.ByteString getCryptoKeyBackendBytes() { } } /** - * - * *
      * Immutable. The resource name of the backend environment where the key
      * material for all [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion]
@@ -3848,25 +3416,21 @@ public com.google.protobuf.ByteString getCryptoKeyBackendBytes() {
      * [ProtectionLevels][google.cloud.kms.v1.ProtectionLevel] in the future.
      * 
* - * - * string crypto_key_backend = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string crypto_key_backend = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The cryptoKeyBackend to set. * @return This builder for chaining. */ - public Builder setCryptoKeyBackend(java.lang.String value) { + public Builder setCryptoKeyBackend( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cryptoKeyBackend_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. The resource name of the backend environment where the key
      * material for all [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion]
@@ -3880,21 +3444,16 @@ public Builder setCryptoKeyBackend(java.lang.String value) {
      * [ProtectionLevels][google.cloud.kms.v1.ProtectionLevel] in the future.
      * 
* - * - * string crypto_key_backend = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string crypto_key_backend = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearCryptoKeyBackend() { - + cryptoKeyBackend_ = getDefaultInstance().getCryptoKeyBackend(); onChanged(); return this; } /** - * - * *
      * Immutable. The resource name of the backend environment where the key
      * material for all [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion]
@@ -3908,26 +3467,24 @@ public Builder clearCryptoKeyBackend() {
      * [ProtectionLevels][google.cloud.kms.v1.ProtectionLevel] in the future.
      * 
* - * - * string crypto_key_backend = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string crypto_key_backend = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The bytes for cryptoKeyBackend to set. * @return This builder for chaining. */ - public Builder setCryptoKeyBackendBytes(com.google.protobuf.ByteString value) { + public Builder setCryptoKeyBackendBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cryptoKeyBackend_ = 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); } @@ -3937,12 +3494,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.CryptoKey) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.CryptoKey) private static final com.google.cloud.kms.v1.CryptoKey DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.CryptoKey(); } @@ -3951,27 +3508,27 @@ public static com.google.cloud.kms.v1.CryptoKey getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CryptoKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CryptoKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3986,4 +3543,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.CryptoKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyName.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyName.java similarity index 98% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyName.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyName.java index ce54ab8f611e..335628166a21 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyName.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyName.java @@ -17,6 +17,7 @@ package com.google.cloud.kms.v1; import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableMap; import java.util.ArrayList; @@ -27,7 +28,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. @Generated("by gapic-generator-java") -public class CryptoKeyName extends KeyName { +public class CryptoKeyName implements ResourceName { private static final PathTemplate PROJECT_LOCATION_KEY_RING_CRYPTO_KEY = PathTemplate.createWithoutUrlEncoding( "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}"); diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyOrBuilder.java similarity index 85% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyOrBuilder.java index 0fa161f2b2dd..65d6d4bc03c0 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyOrBuilder.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/kms/v1/resources.proto package com.google.cloud.kms.v1; -public interface CryptoKeyOrBuilder - extends +public interface CryptoKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.CryptoKey) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name for this
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] in the format
@@ -33,13 +15,10 @@ public interface CryptoKeyOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name for this
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] in the format
@@ -47,14 +26,12 @@ public interface CryptoKeyOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. A copy of the "primary"
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that will be used
@@ -69,16 +46,11 @@ public interface CryptoKeyOrBuilder
    * may have a primary. For other keys, this field will be omitted.
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the primary field is set. */ boolean hasPrimary(); /** - * - * *
    * Output only. A copy of the "primary"
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that will be used
@@ -93,16 +65,11 @@ public interface CryptoKeyOrBuilder
    * may have a primary. For other keys, this field will be omitted.
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The primary. */ com.google.cloud.kms.v1.CryptoKeyVersion getPrimary(); /** - * - * *
    * Output only. A copy of the "primary"
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that will be used
@@ -117,87 +84,62 @@ public interface CryptoKeyOrBuilder
    * may have a primary. For other keys, this field will be omitted.
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.CryptoKeyVersion primary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder getPrimaryOrBuilder(); /** - * - * *
    * Immutable. The immutable purpose of this
    * [CryptoKey][google.cloud.kms.v1.CryptoKey].
    * 
* - * - * .google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose purpose = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose purpose = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for purpose. */ int getPurposeValue(); /** - * - * *
    * Immutable. The immutable purpose of this
    * [CryptoKey][google.cloud.kms.v1.CryptoKey].
    * 
* - * - * .google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose purpose = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose purpose = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The purpose. */ com.google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose getPurpose(); /** - * - * *
    * Output only. The time at which this
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time at which this
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time at which this
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * At [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time],
    * the Key Management Service will automatically:
@@ -215,13 +157,10 @@ public interface CryptoKeyOrBuilder
    * 
* * .google.protobuf.Timestamp next_rotation_time = 7; - * * @return Whether the nextRotationTime field is set. */ boolean hasNextRotationTime(); /** - * - * *
    * At [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time],
    * the Key Management Service will automatically:
@@ -239,13 +178,10 @@ public interface CryptoKeyOrBuilder
    * 
* * .google.protobuf.Timestamp next_rotation_time = 7; - * * @return The nextRotationTime. */ com.google.protobuf.Timestamp getNextRotationTime(); /** - * - * *
    * At [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time],
    * the Key Management Service will automatically:
@@ -267,8 +203,6 @@ public interface CryptoKeyOrBuilder
   com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]
    * will be advanced by this period when the service automatically rotates a
@@ -283,13 +217,10 @@ public interface CryptoKeyOrBuilder
    * 
* * .google.protobuf.Duration rotation_period = 8; - * * @return Whether the rotationPeriod field is set. */ boolean hasRotationPeriod(); /** - * - * *
    * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]
    * will be advanced by this period when the service automatically rotates a
@@ -304,13 +235,10 @@ public interface CryptoKeyOrBuilder
    * 
* * .google.protobuf.Duration rotation_period = 8; - * * @return The rotationPeriod. */ com.google.protobuf.Duration getRotationPeriod(); /** - * - * *
    * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]
    * will be advanced by this period when the service automatically rotates a
@@ -329,8 +257,6 @@ public interface CryptoKeyOrBuilder
   com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder();
 
   /**
-   *
-   *
    * 
    * A template describing settings for new
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances. The
@@ -341,13 +267,10 @@ public interface CryptoKeyOrBuilder
    * 
* * .google.cloud.kms.v1.CryptoKeyVersionTemplate version_template = 11; - * * @return Whether the versionTemplate field is set. */ boolean hasVersionTemplate(); /** - * - * *
    * A template describing settings for new
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances. The
@@ -358,13 +281,10 @@ public interface CryptoKeyOrBuilder
    * 
* * .google.cloud.kms.v1.CryptoKeyVersionTemplate version_template = 11; - * * @return The versionTemplate. */ com.google.cloud.kms.v1.CryptoKeyVersionTemplate getVersionTemplate(); /** - * - * *
    * A template describing settings for new
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances. The
@@ -379,8 +299,6 @@ public interface CryptoKeyOrBuilder
   com.google.cloud.kms.v1.CryptoKeyVersionTemplateOrBuilder getVersionTemplateOrBuilder();
 
   /**
-   *
-   *
    * 
    * Labels with user-defined metadata. For more information, see
    * [Labeling Keys](https://cloud.google.com/kms/docs/labeling-keys).
@@ -390,8 +308,6 @@ public interface CryptoKeyOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Labels with user-defined metadata. For more information, see
    * [Labeling Keys](https://cloud.google.com/kms/docs/labeling-keys).
@@ -399,13 +315,15 @@ public interface CryptoKeyOrBuilder
    *
    * map<string, string> labels = 10;
    */
-  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();
   /**
-   *
-   *
    * 
    * Labels with user-defined metadata. For more information, see
    * [Labeling Keys](https://cloud.google.com/kms/docs/labeling-keys).
@@ -413,10 +331,9 @@ public interface CryptoKeyOrBuilder
    *
    * map<string, string> labels = 10;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Labels with user-defined metadata. For more information, see
    * [Labeling Keys](https://cloud.google.com/kms/docs/labeling-keys).
@@ -426,13 +343,11 @@ public interface CryptoKeyOrBuilder
    */
 
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Labels with user-defined metadata. For more information, see
    * [Labeling Keys](https://cloud.google.com/kms/docs/labeling-keys).
@@ -440,24 +355,21 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 10;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Immutable. Whether this key may contain imported versions only.
    * 
* * bool import_only = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The importOnly. */ boolean getImportOnly(); /** - * - * *
    * Immutable. The period of time that versions of this key spend in the
    * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]
@@ -466,16 +378,11 @@ java.lang.String getLabelsOrDefault(
    * If not specified at creation time, the default duration is 24 hours.
    * 
* - * - * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the destroyScheduledDuration field is set. */ boolean hasDestroyScheduledDuration(); /** - * - * *
    * Immutable. The period of time that versions of this key spend in the
    * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]
@@ -484,16 +391,11 @@ java.lang.String getLabelsOrDefault(
    * If not specified at creation time, the default duration is 24 hours.
    * 
* - * - * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; * @return The destroyScheduledDuration. */ com.google.protobuf.Duration getDestroyScheduledDuration(); /** - * - * *
    * Immutable. The period of time that versions of this key spend in the
    * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]
@@ -502,15 +404,11 @@ java.lang.String getLabelsOrDefault(
    * If not specified at creation time, the default duration is 24 hours.
    * 
* - * - * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration destroy_scheduled_duration = 14 [(.google.api.field_behavior) = IMMUTABLE]; */ com.google.protobuf.DurationOrBuilder getDestroyScheduledDurationOrBuilder(); /** - * - * *
    * Immutable. The resource name of the backend environment where the key
    * material for all [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion]
@@ -524,16 +422,11 @@ java.lang.String getLabelsOrDefault(
    * [ProtectionLevels][google.cloud.kms.v1.ProtectionLevel] in the future.
    * 
* - * - * string crypto_key_backend = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string crypto_key_backend = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The cryptoKeyBackend. */ java.lang.String getCryptoKeyBackend(); /** - * - * *
    * Immutable. The resource name of the backend environment where the key
    * material for all [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion]
@@ -547,13 +440,11 @@ java.lang.String getLabelsOrDefault(
    * [ProtectionLevels][google.cloud.kms.v1.ProtectionLevel] in the future.
    * 
* - * - * string crypto_key_backend = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string crypto_key_backend = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for cryptoKeyBackend. */ - com.google.protobuf.ByteString getCryptoKeyBackendBytes(); + com.google.protobuf.ByteString + getCryptoKeyBackendBytes(); public com.google.cloud.kms.v1.CryptoKey.RotationScheduleCase getRotationScheduleCase(); } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersion.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersion.java similarity index 72% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersion.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersion.java index c2556a3ef9fe..9360ffc6d9c5 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersion.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersion.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/kms/v1/resources.proto package com.google.cloud.kms.v1; /** - * - * *
  * A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents an
  * individual cryptographic key, and the associated key material.
@@ -35,16 +18,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.CryptoKeyVersion}
  */
-public final class CryptoKeyVersion extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CryptoKeyVersion extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.CryptoKeyVersion)
     CryptoKeyVersionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CryptoKeyVersion.newBuilder() to construct.
   private CryptoKeyVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CryptoKeyVersion() {
     name_ = "";
     state_ = 0;
@@ -56,33 +38,30 @@ private CryptoKeyVersion() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CryptoKeyVersion();
   }
 
   @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.kms.v1.KmsResourcesProto
-        .internal_static_google_cloud_kms_v1_CryptoKeyVersion_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_CryptoKeyVersion_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsResourcesProto
-        .internal_static_google_cloud_kms_v1_CryptoKeyVersion_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_CryptoKeyVersion_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.CryptoKeyVersion.class,
-            com.google.cloud.kms.v1.CryptoKeyVersion.Builder.class);
+            com.google.cloud.kms.v1.CryptoKeyVersion.class, com.google.cloud.kms.v1.CryptoKeyVersion.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The algorithm of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion], indicating what
@@ -122,10 +101,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm}
    */
-  public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMessageEnum {
+  public enum CryptoKeyVersionAlgorithm
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Not specified.
      * 
@@ -134,8 +112,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED(0), /** - * - * *
      * Creates symmetric encryption keys.
      * 
@@ -144,8 +120,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ GOOGLE_SYMMETRIC_ENCRYPTION(1), /** - * - * *
      * RSASSA-PSS 2048 bit key with a SHA256 digest.
      * 
@@ -154,8 +128,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ RSA_SIGN_PSS_2048_SHA256(2), /** - * - * *
      * RSASSA-PSS 3072 bit key with a SHA256 digest.
      * 
@@ -164,8 +136,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ RSA_SIGN_PSS_3072_SHA256(3), /** - * - * *
      * RSASSA-PSS 4096 bit key with a SHA256 digest.
      * 
@@ -174,8 +144,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ RSA_SIGN_PSS_4096_SHA256(4), /** - * - * *
      * RSASSA-PSS 4096 bit key with a SHA512 digest.
      * 
@@ -184,8 +152,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ RSA_SIGN_PSS_4096_SHA512(15), /** - * - * *
      * RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.
      * 
@@ -194,8 +160,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ RSA_SIGN_PKCS1_2048_SHA256(5), /** - * - * *
      * RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.
      * 
@@ -204,8 +168,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ RSA_SIGN_PKCS1_3072_SHA256(6), /** - * - * *
      * RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.
      * 
@@ -214,8 +176,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ RSA_SIGN_PKCS1_4096_SHA256(7), /** - * - * *
      * RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.
      * 
@@ -224,8 +184,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ RSA_SIGN_PKCS1_4096_SHA512(16), /** - * - * *
      * RSASSA-PKCS1-v1_5 signing without encoding, with a 2048 bit key.
      * 
@@ -234,8 +192,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ RSA_SIGN_RAW_PKCS1_2048(28), /** - * - * *
      * RSASSA-PKCS1-v1_5 signing without encoding, with a 3072 bit key.
      * 
@@ -244,8 +200,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ RSA_SIGN_RAW_PKCS1_3072(29), /** - * - * *
      * RSASSA-PKCS1-v1_5 signing without encoding, with a 4096 bit key.
      * 
@@ -254,8 +208,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ RSA_SIGN_RAW_PKCS1_4096(30), /** - * - * *
      * RSAES-OAEP 2048 bit key with a SHA256 digest.
      * 
@@ -264,8 +216,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ RSA_DECRYPT_OAEP_2048_SHA256(8), /** - * - * *
      * RSAES-OAEP 3072 bit key with a SHA256 digest.
      * 
@@ -274,8 +224,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ RSA_DECRYPT_OAEP_3072_SHA256(9), /** - * - * *
      * RSAES-OAEP 4096 bit key with a SHA256 digest.
      * 
@@ -284,8 +232,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ RSA_DECRYPT_OAEP_4096_SHA256(10), /** - * - * *
      * RSAES-OAEP 4096 bit key with a SHA512 digest.
      * 
@@ -294,8 +240,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ RSA_DECRYPT_OAEP_4096_SHA512(17), /** - * - * *
      * RSAES-OAEP 2048 bit key with a SHA1 digest.
      * 
@@ -304,8 +248,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ RSA_DECRYPT_OAEP_2048_SHA1(37), /** - * - * *
      * RSAES-OAEP 3072 bit key with a SHA1 digest.
      * 
@@ -314,8 +256,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ RSA_DECRYPT_OAEP_3072_SHA1(38), /** - * - * *
      * RSAES-OAEP 4096 bit key with a SHA1 digest.
      * 
@@ -324,8 +264,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ RSA_DECRYPT_OAEP_4096_SHA1(39), /** - * - * *
      * ECDSA on the NIST P-256 curve with a SHA256 digest.
      * 
@@ -334,8 +272,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ EC_SIGN_P256_SHA256(12), /** - * - * *
      * ECDSA on the NIST P-384 curve with a SHA384 digest.
      * 
@@ -344,8 +280,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ EC_SIGN_P384_SHA384(13), /** - * - * *
      * ECDSA on the non-NIST secp256k1 curve. This curve is only supported for
      * HSM protection level.
@@ -355,8 +289,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes
      */
     EC_SIGN_SECP256K1_SHA256(31),
     /**
-     *
-     *
      * 
      * HMAC-SHA256 signing with a 256 bit key.
      * 
@@ -365,8 +297,38 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ HMAC_SHA256(32), /** + *
+     * HMAC-SHA1 signing with a 160 bit key.
+     * 
+ * + * HMAC_SHA1 = 33; + */ + HMAC_SHA1(33), + /** + *
+     * HMAC-SHA384 signing with a 384 bit key.
+     * 
+ * + * HMAC_SHA384 = 34; + */ + HMAC_SHA384(34), + /** + *
+     * HMAC-SHA512 signing with a 512 bit key.
+     * 
* + * HMAC_SHA512 = 35; + */ + HMAC_SHA512(35), + /** + *
+     * HMAC-SHA224 signing with a 224 bit key.
+     * 
* + * HMAC_SHA224 = 36; + */ + HMAC_SHA224(36), + /** *
      * Algorithm representing symmetric encryption by an external key manager.
      * 
@@ -378,8 +340,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes ; /** - * - * *
      * Not specified.
      * 
@@ -388,8 +348,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ public static final int CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Creates symmetric encryption keys.
      * 
@@ -398,8 +356,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ public static final int GOOGLE_SYMMETRIC_ENCRYPTION_VALUE = 1; /** - * - * *
      * RSASSA-PSS 2048 bit key with a SHA256 digest.
      * 
@@ -408,8 +364,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ public static final int RSA_SIGN_PSS_2048_SHA256_VALUE = 2; /** - * - * *
      * RSASSA-PSS 3072 bit key with a SHA256 digest.
      * 
@@ -418,8 +372,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ public static final int RSA_SIGN_PSS_3072_SHA256_VALUE = 3; /** - * - * *
      * RSASSA-PSS 4096 bit key with a SHA256 digest.
      * 
@@ -428,8 +380,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ public static final int RSA_SIGN_PSS_4096_SHA256_VALUE = 4; /** - * - * *
      * RSASSA-PSS 4096 bit key with a SHA512 digest.
      * 
@@ -438,8 +388,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ public static final int RSA_SIGN_PSS_4096_SHA512_VALUE = 15; /** - * - * *
      * RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.
      * 
@@ -448,8 +396,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ public static final int RSA_SIGN_PKCS1_2048_SHA256_VALUE = 5; /** - * - * *
      * RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.
      * 
@@ -458,8 +404,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ public static final int RSA_SIGN_PKCS1_3072_SHA256_VALUE = 6; /** - * - * *
      * RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.
      * 
@@ -468,8 +412,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ public static final int RSA_SIGN_PKCS1_4096_SHA256_VALUE = 7; /** - * - * *
      * RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.
      * 
@@ -478,8 +420,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ public static final int RSA_SIGN_PKCS1_4096_SHA512_VALUE = 16; /** - * - * *
      * RSASSA-PKCS1-v1_5 signing without encoding, with a 2048 bit key.
      * 
@@ -488,8 +428,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ public static final int RSA_SIGN_RAW_PKCS1_2048_VALUE = 28; /** - * - * *
      * RSASSA-PKCS1-v1_5 signing without encoding, with a 3072 bit key.
      * 
@@ -498,8 +436,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ public static final int RSA_SIGN_RAW_PKCS1_3072_VALUE = 29; /** - * - * *
      * RSASSA-PKCS1-v1_5 signing without encoding, with a 4096 bit key.
      * 
@@ -508,8 +444,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ public static final int RSA_SIGN_RAW_PKCS1_4096_VALUE = 30; /** - * - * *
      * RSAES-OAEP 2048 bit key with a SHA256 digest.
      * 
@@ -518,8 +452,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ public static final int RSA_DECRYPT_OAEP_2048_SHA256_VALUE = 8; /** - * - * *
      * RSAES-OAEP 3072 bit key with a SHA256 digest.
      * 
@@ -528,8 +460,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ public static final int RSA_DECRYPT_OAEP_3072_SHA256_VALUE = 9; /** - * - * *
      * RSAES-OAEP 4096 bit key with a SHA256 digest.
      * 
@@ -538,8 +468,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ public static final int RSA_DECRYPT_OAEP_4096_SHA256_VALUE = 10; /** - * - * *
      * RSAES-OAEP 4096 bit key with a SHA512 digest.
      * 
@@ -548,8 +476,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ public static final int RSA_DECRYPT_OAEP_4096_SHA512_VALUE = 17; /** - * - * *
      * RSAES-OAEP 2048 bit key with a SHA1 digest.
      * 
@@ -558,8 +484,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ public static final int RSA_DECRYPT_OAEP_2048_SHA1_VALUE = 37; /** - * - * *
      * RSAES-OAEP 3072 bit key with a SHA1 digest.
      * 
@@ -568,8 +492,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ public static final int RSA_DECRYPT_OAEP_3072_SHA1_VALUE = 38; /** - * - * *
      * RSAES-OAEP 4096 bit key with a SHA1 digest.
      * 
@@ -578,8 +500,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ public static final int RSA_DECRYPT_OAEP_4096_SHA1_VALUE = 39; /** - * - * *
      * ECDSA on the NIST P-256 curve with a SHA256 digest.
      * 
@@ -588,8 +508,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ public static final int EC_SIGN_P256_SHA256_VALUE = 12; /** - * - * *
      * ECDSA on the NIST P-384 curve with a SHA384 digest.
      * 
@@ -598,8 +516,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ public static final int EC_SIGN_P384_SHA384_VALUE = 13; /** - * - * *
      * ECDSA on the non-NIST secp256k1 curve. This curve is only supported for
      * HSM protection level.
@@ -609,8 +525,6 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes
      */
     public static final int EC_SIGN_SECP256K1_SHA256_VALUE = 31;
     /**
-     *
-     *
      * 
      * HMAC-SHA256 signing with a 256 bit key.
      * 
@@ -619,8 +533,38 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ public static final int HMAC_SHA256_VALUE = 32; /** + *
+     * HMAC-SHA1 signing with a 160 bit key.
+     * 
+ * + * HMAC_SHA1 = 33; + */ + public static final int HMAC_SHA1_VALUE = 33; + /** + *
+     * HMAC-SHA384 signing with a 384 bit key.
+     * 
+ * + * HMAC_SHA384 = 34; + */ + public static final int HMAC_SHA384_VALUE = 34; + /** + *
+     * HMAC-SHA512 signing with a 512 bit key.
+     * 
* + * HMAC_SHA512 = 35; + */ + public static final int HMAC_SHA512_VALUE = 35; + /** + *
+     * HMAC-SHA224 signing with a 224 bit key.
+     * 
* + * HMAC_SHA224 = 36; + */ + public static final int HMAC_SHA224_VALUE = 36; + /** *
      * Algorithm representing symmetric encryption by an external key manager.
      * 
@@ -629,6 +573,7 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes */ public static final int EXTERNAL_SYMMETRIC_ENCRYPTION_VALUE = 18; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -653,58 +598,36 @@ public static CryptoKeyVersionAlgorithm valueOf(int value) { */ public static CryptoKeyVersionAlgorithm forNumber(int value) { switch (value) { - case 0: - return CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED; - case 1: - return GOOGLE_SYMMETRIC_ENCRYPTION; - case 2: - return RSA_SIGN_PSS_2048_SHA256; - case 3: - return RSA_SIGN_PSS_3072_SHA256; - case 4: - return RSA_SIGN_PSS_4096_SHA256; - case 15: - return RSA_SIGN_PSS_4096_SHA512; - case 5: - return RSA_SIGN_PKCS1_2048_SHA256; - case 6: - return RSA_SIGN_PKCS1_3072_SHA256; - case 7: - return RSA_SIGN_PKCS1_4096_SHA256; - case 16: - return RSA_SIGN_PKCS1_4096_SHA512; - case 28: - return RSA_SIGN_RAW_PKCS1_2048; - case 29: - return RSA_SIGN_RAW_PKCS1_3072; - case 30: - return RSA_SIGN_RAW_PKCS1_4096; - case 8: - return RSA_DECRYPT_OAEP_2048_SHA256; - case 9: - return RSA_DECRYPT_OAEP_3072_SHA256; - case 10: - return RSA_DECRYPT_OAEP_4096_SHA256; - case 17: - return RSA_DECRYPT_OAEP_4096_SHA512; - case 37: - return RSA_DECRYPT_OAEP_2048_SHA1; - case 38: - return RSA_DECRYPT_OAEP_3072_SHA1; - case 39: - return RSA_DECRYPT_OAEP_4096_SHA1; - case 12: - return EC_SIGN_P256_SHA256; - case 13: - return EC_SIGN_P384_SHA384; - case 31: - return EC_SIGN_SECP256K1_SHA256; - case 32: - return HMAC_SHA256; - case 18: - return EXTERNAL_SYMMETRIC_ENCRYPTION; - default: - return null; + case 0: return CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED; + case 1: return GOOGLE_SYMMETRIC_ENCRYPTION; + case 2: return RSA_SIGN_PSS_2048_SHA256; + case 3: return RSA_SIGN_PSS_3072_SHA256; + case 4: return RSA_SIGN_PSS_4096_SHA256; + case 15: return RSA_SIGN_PSS_4096_SHA512; + case 5: return RSA_SIGN_PKCS1_2048_SHA256; + case 6: return RSA_SIGN_PKCS1_3072_SHA256; + case 7: return RSA_SIGN_PKCS1_4096_SHA256; + case 16: return RSA_SIGN_PKCS1_4096_SHA512; + case 28: return RSA_SIGN_RAW_PKCS1_2048; + case 29: return RSA_SIGN_RAW_PKCS1_3072; + case 30: return RSA_SIGN_RAW_PKCS1_4096; + case 8: return RSA_DECRYPT_OAEP_2048_SHA256; + case 9: return RSA_DECRYPT_OAEP_3072_SHA256; + case 10: return RSA_DECRYPT_OAEP_4096_SHA256; + case 17: return RSA_DECRYPT_OAEP_4096_SHA512; + case 37: return RSA_DECRYPT_OAEP_2048_SHA1; + case 38: return RSA_DECRYPT_OAEP_3072_SHA1; + case 39: return RSA_DECRYPT_OAEP_4096_SHA1; + case 12: return EC_SIGN_P256_SHA256; + case 13: return EC_SIGN_P384_SHA384; + case 31: return EC_SIGN_SECP256K1_SHA256; + case 32: return HMAC_SHA256; + case 33: return HMAC_SHA1; + case 34: return HMAC_SHA384; + case 35: return HMAC_SHA512; + case 36: return HMAC_SHA224; + case 18: return EXTERNAL_SYMMETRIC_ENCRYPTION; + default: return null; } } @@ -712,28 +635,28 @@ public static CryptoKeyVersionAlgorithm forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + CryptoKeyVersionAlgorithm> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CryptoKeyVersionAlgorithm findValueByNumber(int number) { + return CryptoKeyVersionAlgorithm.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CryptoKeyVersionAlgorithm findValueByNumber(int number) { - return CryptoKeyVersionAlgorithm.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.kms.v1.CryptoKeyVersion.getDescriptor().getEnumTypes().get(0); } @@ -742,7 +665,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static CryptoKeyVersionAlgorithm 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; @@ -760,8 +684,6 @@ private CryptoKeyVersionAlgorithm(int value) { } /** - * - * *
    * The state of a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion],
    * indicating if it can be used.
@@ -769,10 +691,9 @@ private CryptoKeyVersionAlgorithm(int value) {
    *
    * Protobuf enum {@code google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState}
    */
-  public enum CryptoKeyVersionState implements com.google.protobuf.ProtocolMessageEnum {
+  public enum CryptoKeyVersionState
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Not specified.
      * 
@@ -781,8 +702,6 @@ public enum CryptoKeyVersionState implements com.google.protobuf.ProtocolMessage */ CRYPTO_KEY_VERSION_STATE_UNSPECIFIED(0), /** - * - * *
      * This version is still being generated. It may not be used, enabled,
      * disabled, or destroyed yet. Cloud KMS will automatically mark this
@@ -795,8 +714,6 @@ public enum CryptoKeyVersionState implements com.google.protobuf.ProtocolMessage
      */
     PENDING_GENERATION(5),
     /**
-     *
-     *
      * 
      * This version may be used for cryptographic operations.
      * 
@@ -805,8 +722,6 @@ public enum CryptoKeyVersionState implements com.google.protobuf.ProtocolMessage */ ENABLED(1), /** - * - * *
      * This version may not be used, but the key material is still available,
      * and the version can be placed back into the
@@ -818,8 +733,6 @@ public enum CryptoKeyVersionState implements com.google.protobuf.ProtocolMessage
      */
     DISABLED(2),
     /**
-     *
-     *
      * 
      * This version is destroyed, and the key material is no longer stored.
      * This version may only become
@@ -834,8 +747,6 @@ public enum CryptoKeyVersionState implements com.google.protobuf.ProtocolMessage
      */
     DESTROYED(3),
     /**
-     *
-     *
      * 
      * This version is scheduled for destruction, and will be destroyed soon.
      * Call
@@ -849,8 +760,6 @@ public enum CryptoKeyVersionState implements com.google.protobuf.ProtocolMessage
      */
     DESTROY_SCHEDULED(4),
     /**
-     *
-     *
      * 
      * This version is still being imported. It may not be used, enabled,
      * disabled, or destroyed yet. Cloud KMS will automatically mark this
@@ -863,8 +772,6 @@ public enum CryptoKeyVersionState implements com.google.protobuf.ProtocolMessage
      */
     PENDING_IMPORT(6),
     /**
-     *
-     *
      * 
      * This version was not imported successfully. It may not be used, enabled,
      * disabled, or destroyed. The submitted key material has been discarded.
@@ -879,8 +786,6 @@ public enum CryptoKeyVersionState implements com.google.protobuf.ProtocolMessage
     ;
 
     /**
-     *
-     *
      * 
      * Not specified.
      * 
@@ -889,8 +794,6 @@ public enum CryptoKeyVersionState implements com.google.protobuf.ProtocolMessage */ public static final int CRYPTO_KEY_VERSION_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * This version is still being generated. It may not be used, enabled,
      * disabled, or destroyed yet. Cloud KMS will automatically mark this
@@ -903,8 +806,6 @@ public enum CryptoKeyVersionState implements com.google.protobuf.ProtocolMessage
      */
     public static final int PENDING_GENERATION_VALUE = 5;
     /**
-     *
-     *
      * 
      * This version may be used for cryptographic operations.
      * 
@@ -913,8 +814,6 @@ public enum CryptoKeyVersionState implements com.google.protobuf.ProtocolMessage */ public static final int ENABLED_VALUE = 1; /** - * - * *
      * This version may not be used, but the key material is still available,
      * and the version can be placed back into the
@@ -926,8 +825,6 @@ public enum CryptoKeyVersionState implements com.google.protobuf.ProtocolMessage
      */
     public static final int DISABLED_VALUE = 2;
     /**
-     *
-     *
      * 
      * This version is destroyed, and the key material is no longer stored.
      * This version may only become
@@ -942,8 +839,6 @@ public enum CryptoKeyVersionState implements com.google.protobuf.ProtocolMessage
      */
     public static final int DESTROYED_VALUE = 3;
     /**
-     *
-     *
      * 
      * This version is scheduled for destruction, and will be destroyed soon.
      * Call
@@ -957,8 +852,6 @@ public enum CryptoKeyVersionState implements com.google.protobuf.ProtocolMessage
      */
     public static final int DESTROY_SCHEDULED_VALUE = 4;
     /**
-     *
-     *
      * 
      * This version is still being imported. It may not be used, enabled,
      * disabled, or destroyed yet. Cloud KMS will automatically mark this
@@ -971,8 +864,6 @@ public enum CryptoKeyVersionState implements com.google.protobuf.ProtocolMessage
      */
     public static final int PENDING_IMPORT_VALUE = 6;
     /**
-     *
-     *
      * 
      * This version was not imported successfully. It may not be used, enabled,
      * disabled, or destroyed. The submitted key material has been discarded.
@@ -984,6 +875,7 @@ public enum CryptoKeyVersionState implements com.google.protobuf.ProtocolMessage
      */
     public static final int IMPORT_FAILED_VALUE = 7;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -1008,24 +900,15 @@ public static CryptoKeyVersionState valueOf(int value) {
      */
     public static CryptoKeyVersionState forNumber(int value) {
       switch (value) {
-        case 0:
-          return CRYPTO_KEY_VERSION_STATE_UNSPECIFIED;
-        case 5:
-          return PENDING_GENERATION;
-        case 1:
-          return ENABLED;
-        case 2:
-          return DISABLED;
-        case 3:
-          return DESTROYED;
-        case 4:
-          return DESTROY_SCHEDULED;
-        case 6:
-          return PENDING_IMPORT;
-        case 7:
-          return IMPORT_FAILED;
-        default:
-          return null;
+        case 0: return CRYPTO_KEY_VERSION_STATE_UNSPECIFIED;
+        case 5: return PENDING_GENERATION;
+        case 1: return ENABLED;
+        case 2: return DISABLED;
+        case 3: return DESTROYED;
+        case 4: return DESTROY_SCHEDULED;
+        case 6: return PENDING_IMPORT;
+        case 7: return IMPORT_FAILED;
+        default: return null;
       }
     }
 
@@ -1033,28 +916,28 @@ public static CryptoKeyVersionState forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        CryptoKeyVersionState> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public CryptoKeyVersionState findValueByNumber(int number) {
+              return CryptoKeyVersionState.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public CryptoKeyVersionState findValueByNumber(int number) {
-                return CryptoKeyVersionState.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.kms.v1.CryptoKeyVersion.getDescriptor().getEnumTypes().get(1);
     }
 
@@ -1063,7 +946,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static CryptoKeyVersionState 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;
@@ -1081,8 +965,6 @@ private CryptoKeyVersionState(int value) {
   }
 
   /**
-   *
-   *
    * 
    * A view for [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]s.
    * Controls the level of detail returned for
@@ -1094,10 +976,9 @@ private CryptoKeyVersionState(int value) {
    *
    * Protobuf enum {@code google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView}
    */
-  public enum CryptoKeyVersionView implements com.google.protobuf.ProtocolMessageEnum {
+  public enum CryptoKeyVersionView
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Default view for each
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Does not
@@ -1109,8 +990,6 @@ public enum CryptoKeyVersionView implements com.google.protobuf.ProtocolMessageE
      */
     CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * Provides all fields in each
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion], including the
@@ -1124,8 +1003,6 @@ public enum CryptoKeyVersionView implements com.google.protobuf.ProtocolMessageE
     ;
 
     /**
-     *
-     *
      * 
      * Default view for each
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Does not
@@ -1137,8 +1014,6 @@ public enum CryptoKeyVersionView implements com.google.protobuf.ProtocolMessageE
      */
     public static final int CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * Provides all fields in each
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion], including the
@@ -1149,6 +1024,7 @@ public enum CryptoKeyVersionView implements com.google.protobuf.ProtocolMessageE
      */
     public static final int FULL_VALUE = 1;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -1173,12 +1049,9 @@ public static CryptoKeyVersionView valueOf(int value) {
      */
     public static CryptoKeyVersionView forNumber(int value) {
       switch (value) {
-        case 0:
-          return CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED;
-        case 1:
-          return FULL;
-        default:
-          return null;
+        case 0: return CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED;
+        case 1: return FULL;
+        default: return null;
       }
     }
 
@@ -1186,28 +1059,28 @@ public static CryptoKeyVersionView forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        CryptoKeyVersionView> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public CryptoKeyVersionView findValueByNumber(int number) {
+              return CryptoKeyVersionView.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public CryptoKeyVersionView findValueByNumber(int number) {
-                return CryptoKeyVersionView.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.kms.v1.CryptoKeyVersion.getDescriptor().getEnumTypes().get(2);
     }
 
@@ -1216,7 +1089,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static CryptoKeyVersionView 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;
@@ -1236,8 +1110,6 @@ private CryptoKeyVersionView(int value) {
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Output only. The resource name for this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the format
@@ -1245,7 +1117,6 @@ private CryptoKeyVersionView(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -1254,15 +1125,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; } } /** - * - * *
    * Output only. The resource name for this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the format
@@ -1270,15 +1140,16 @@ public java.lang.String getName() {
    * 
* * 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 { @@ -1289,92 +1160,66 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int STATE_FIELD_NUMBER = 3; private int state_; /** - * - * *
    * The current state of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
    * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState state = 3; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The current state of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
    * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState state = 3; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState getState() { + @java.lang.Override public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState getState() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState result = - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.valueOf(state_); - return result == null - ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.UNRECOGNIZED - : result; + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState result = com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.valueOf(state_); + return result == null ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.UNRECOGNIZED : result; } public static final int PROTECTION_LEVEL_FIELD_NUMBER = 7; private int protectionLevel_; /** - * - * *
    * Output only. The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel]
    * describing how crypto operations are performed with this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
    * 
* - * - * .google.cloud.kms.v1.ProtectionLevel protection_level = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for protectionLevel. */ - @java.lang.Override - public int getProtectionLevelValue() { + @java.lang.Override public int getProtectionLevelValue() { return protectionLevel_; } /** - * - * *
    * Output only. The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel]
    * describing how crypto operations are performed with this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
    * 
* - * - * .google.cloud.kms.v1.ProtectionLevel protection_level = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The protectionLevel. */ - @java.lang.Override - public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { + @java.lang.Override public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.ProtectionLevel result = - com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); + com.google.cloud.kms.v1.ProtectionLevel result = com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); return result == null ? com.google.cloud.kms.v1.ProtectionLevel.UNRECOGNIZED : result; } public static final int ALGORITHM_FIELD_NUMBER = 10; private int algorithm_; /** - * - * *
    * Output only. The
    * [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -1382,19 +1227,13 @@ public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() {
    * supports.
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for algorithm. */ - @java.lang.Override - public int getAlgorithmValue() { + @java.lang.Override public int getAlgorithmValue() { return algorithm_; } /** - * - * *
    * Output only. The
    * [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -1402,27 +1241,18 @@ public int getAlgorithmValue() {
    * supports.
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The algorithm. */ - @java.lang.Override - public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm() { + @java.lang.Override public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm result = - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.valueOf(algorithm_); - return result == null - ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.UNRECOGNIZED - : result; + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm result = com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.valueOf(algorithm_); + return result == null ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.UNRECOGNIZED : result; } public static final int ATTESTATION_FIELD_NUMBER = 8; private com.google.cloud.kms.v1.KeyOperationAttestation attestation_; /** - * - * *
    * Output only. Statement that was generated and signed by the HSM at key
    * creation time. Use this statement to verify attributes of the key as stored
@@ -1431,10 +1261,7 @@ public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlg
    * [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
    * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the attestation field is set. */ @java.lang.Override @@ -1442,8 +1269,6 @@ public boolean hasAttestation() { return attestation_ != null; } /** - * - * *
    * Output only. Statement that was generated and signed by the HSM at key
    * creation time. Use this statement to verify attributes of the key as stored
@@ -1452,21 +1277,14 @@ public boolean hasAttestation() {
    * [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
    * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The attestation. */ @java.lang.Override public com.google.cloud.kms.v1.KeyOperationAttestation getAttestation() { - return attestation_ == null - ? com.google.cloud.kms.v1.KeyOperationAttestation.getDefaultInstance() - : attestation_; + return attestation_ == null ? com.google.cloud.kms.v1.KeyOperationAttestation.getDefaultInstance() : attestation_; } /** - * - * *
    * Output only. Statement that was generated and signed by the HSM at key
    * creation time. Use this statement to verify attributes of the key as stored
@@ -1475,9 +1293,7 @@ public com.google.cloud.kms.v1.KeyOperationAttestation getAttestation() {
    * [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
    * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder getAttestationOrBuilder() { @@ -1487,16 +1303,12 @@ public com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder getAttestationOr public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time at which this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] 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 @@ -1504,16 +1316,12 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time at which this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] 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 @@ -1521,15 +1329,12 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time at which this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] 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() { @@ -1539,18 +1344,13 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int GENERATE_TIME_FIELD_NUMBER = 11; private com.google.protobuf.Timestamp generateTime_; /** - * - * *
    * Output only. The time this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
    * generated.
    * 
* - * - * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the generateTime field is set. */ @java.lang.Override @@ -1558,38 +1358,27 @@ public boolean hasGenerateTime() { return generateTime_ != null; } /** - * - * *
    * Output only. The time this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
    * generated.
    * 
* - * - * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The generateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getGenerateTime() { - return generateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : generateTime_; + return generateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : generateTime_; } /** - * - * *
    * Output only. The time this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
    * generated.
    * 
* - * - * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getGenerateTimeOrBuilder() { @@ -1599,8 +1388,6 @@ public com.google.protobuf.TimestampOrBuilder getGenerateTimeOrBuilder() { public static final int DESTROY_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp destroyTime_; /** - * - * *
    * Output only. The time this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material is
@@ -1609,9 +1396,7 @@ public com.google.protobuf.TimestampOrBuilder getGenerateTimeOrBuilder() {
    * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED].
    * 
* - * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the destroyTime field is set. */ @java.lang.Override @@ -1619,8 +1404,6 @@ public boolean hasDestroyTime() { return destroyTime_ != null; } /** - * - * *
    * Output only. The time this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material is
@@ -1629,9 +1412,7 @@ public boolean hasDestroyTime() {
    * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED].
    * 
* - * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The destroyTime. */ @java.lang.Override @@ -1639,8 +1420,6 @@ public com.google.protobuf.Timestamp getDestroyTime() { return destroyTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : destroyTime_; } /** - * - * *
    * Output only. The time this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material is
@@ -1649,8 +1428,7 @@ public com.google.protobuf.Timestamp getDestroyTime() {
    * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED].
    * 
* - * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDestroyTimeOrBuilder() { @@ -1660,8 +1438,6 @@ public com.google.protobuf.TimestampOrBuilder getDestroyTimeOrBuilder() { public static final int DESTROY_EVENT_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp destroyEventTime_; /** - * - * *
    * Output only. The time this CryptoKeyVersion's key material was
    * destroyed. Only present if
@@ -1669,10 +1445,7 @@ public com.google.protobuf.TimestampOrBuilder getDestroyTimeOrBuilder() {
    * [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED].
    * 
* - * - * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the destroyEventTime field is set. */ @java.lang.Override @@ -1680,8 +1453,6 @@ public boolean hasDestroyEventTime() { return destroyEventTime_ != null; } /** - * - * *
    * Output only. The time this CryptoKeyVersion's key material was
    * destroyed. Only present if
@@ -1689,21 +1460,14 @@ public boolean hasDestroyEventTime() {
    * [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED].
    * 
* - * - * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The destroyEventTime. */ @java.lang.Override public com.google.protobuf.Timestamp getDestroyEventTime() { - return destroyEventTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : destroyEventTime_; + return destroyEventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : destroyEventTime_; } /** - * - * *
    * Output only. The time this CryptoKeyVersion's key material was
    * destroyed. Only present if
@@ -1711,9 +1475,7 @@ public com.google.protobuf.Timestamp getDestroyEventTime() {
    * [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED].
    * 
* - * - * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDestroyEventTimeOrBuilder() { @@ -1723,8 +1485,6 @@ public com.google.protobuf.TimestampOrBuilder getDestroyEventTimeOrBuilder() { public static final int IMPORT_JOB_FIELD_NUMBER = 14; private volatile java.lang.Object importJob_; /** - * - * *
    * Output only. The name of the [ImportJob][google.cloud.kms.v1.ImportJob]
    * used in the most recent import of this
@@ -1733,7 +1493,6 @@ public com.google.protobuf.TimestampOrBuilder getDestroyEventTimeOrBuilder() {
    * 
* * string import_job = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The importJob. */ @java.lang.Override @@ -1742,15 +1501,14 @@ public java.lang.String getImportJob() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importJob_ = s; return s; } } /** - * - * *
    * Output only. The name of the [ImportJob][google.cloud.kms.v1.ImportJob]
    * used in the most recent import of this
@@ -1759,15 +1517,16 @@ public java.lang.String getImportJob() {
    * 
* * string import_job = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for importJob. */ @java.lang.Override - public com.google.protobuf.ByteString getImportJobBytes() { + public com.google.protobuf.ByteString + getImportJobBytes() { java.lang.Object ref = importJob_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); importJob_ = b; return b; } else { @@ -1778,17 +1537,13 @@ public com.google.protobuf.ByteString getImportJobBytes() { public static final int IMPORT_TIME_FIELD_NUMBER = 15; private com.google.protobuf.Timestamp importTime_; /** - * - * *
    * Output only. The time at which this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
    * most recently imported.
    * 
* - * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the importTime field is set. */ @java.lang.Override @@ -1796,17 +1551,13 @@ public boolean hasImportTime() { return importTime_ != null; } /** - * - * *
    * Output only. The time at which this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
    * most recently imported.
    * 
* - * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The importTime. */ @java.lang.Override @@ -1814,16 +1565,13 @@ public com.google.protobuf.Timestamp getImportTime() { return importTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : importTime_; } /** - * - * *
    * Output only. The time at which this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
    * most recently imported.
    * 
* - * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getImportTimeOrBuilder() { @@ -1833,8 +1581,6 @@ public com.google.protobuf.TimestampOrBuilder getImportTimeOrBuilder() { public static final int IMPORT_FAILURE_REASON_FIELD_NUMBER = 16; private volatile java.lang.Object importFailureReason_; /** - * - * *
    * Output only. The root cause of the most recent import failure. Only present
    * if [state][google.cloud.kms.v1.CryptoKeyVersion.state] is
@@ -1842,7 +1588,6 @@ public com.google.protobuf.TimestampOrBuilder getImportTimeOrBuilder() {
    * 
* * string import_failure_reason = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The importFailureReason. */ @java.lang.Override @@ -1851,15 +1596,14 @@ public java.lang.String getImportFailureReason() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importFailureReason_ = s; return s; } } /** - * - * *
    * Output only. The root cause of the most recent import failure. Only present
    * if [state][google.cloud.kms.v1.CryptoKeyVersion.state] is
@@ -1867,15 +1611,16 @@ public java.lang.String getImportFailureReason() {
    * 
* * string import_failure_reason = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for importFailureReason. */ @java.lang.Override - public com.google.protobuf.ByteString getImportFailureReasonBytes() { + public com.google.protobuf.ByteString + getImportFailureReasonBytes() { java.lang.Object ref = importFailureReason_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); importFailureReason_ = b; return b; } else { @@ -1886,8 +1631,6 @@ public com.google.protobuf.ByteString getImportFailureReasonBytes() { public static final int EXTERNAL_PROTECTION_LEVEL_OPTIONS_FIELD_NUMBER = 17; private com.google.cloud.kms.v1.ExternalProtectionLevelOptions externalProtectionLevelOptions_; /** - * - * *
    * ExternalProtectionLevelOptions stores a group of additional fields for
    * configuring a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that
@@ -1897,10 +1640,7 @@ public com.google.protobuf.ByteString getImportFailureReasonBytes() {
    * protection levels.
    * 
* - * - * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; - * - * + * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; * @return Whether the externalProtectionLevelOptions field is set. */ @java.lang.Override @@ -1908,8 +1648,6 @@ public boolean hasExternalProtectionLevelOptions() { return externalProtectionLevelOptions_ != null; } /** - * - * *
    * ExternalProtectionLevelOptions stores a group of additional fields for
    * configuring a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that
@@ -1919,22 +1657,14 @@ public boolean hasExternalProtectionLevelOptions() {
    * protection levels.
    * 
* - * - * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; - * - * + * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; * @return The externalProtectionLevelOptions. */ @java.lang.Override - public com.google.cloud.kms.v1.ExternalProtectionLevelOptions - getExternalProtectionLevelOptions() { - return externalProtectionLevelOptions_ == null - ? com.google.cloud.kms.v1.ExternalProtectionLevelOptions.getDefaultInstance() - : externalProtectionLevelOptions_; + public com.google.cloud.kms.v1.ExternalProtectionLevelOptions getExternalProtectionLevelOptions() { + return externalProtectionLevelOptions_ == null ? com.google.cloud.kms.v1.ExternalProtectionLevelOptions.getDefaultInstance() : externalProtectionLevelOptions_; } /** - * - * *
    * ExternalProtectionLevelOptions stores a group of additional fields for
    * configuring a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that
@@ -1944,21 +1674,16 @@ public boolean hasExternalProtectionLevelOptions() {
    * protection levels.
    * 
* - * - * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; - * + * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; */ @java.lang.Override - public com.google.cloud.kms.v1.ExternalProtectionLevelOptionsOrBuilder - getExternalProtectionLevelOptionsOrBuilder() { + public com.google.cloud.kms.v1.ExternalProtectionLevelOptionsOrBuilder getExternalProtectionLevelOptionsOrBuilder() { return getExternalProtectionLevelOptions(); } public static final int REIMPORT_ELIGIBLE_FIELD_NUMBER = 18; private boolean reimportEligible_; /** - * - * *
    * Output only. Whether or not this key version is eligible for reimport, by
    * being specified as a target in
@@ -1966,7 +1691,6 @@ public boolean hasExternalProtectionLevelOptions() {
    * 
* * bool reimport_eligible = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reimportEligible. */ @java.lang.Override @@ -1975,7 +1699,6 @@ public boolean getReimportEligible() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1987,14 +1710,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (state_ - != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState - .CRYPTO_KEY_VERSION_STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.CRYPTO_KEY_VERSION_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, state_); } if (createTime_ != null) { @@ -2006,17 +1727,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (destroyEventTime_ != null) { output.writeMessage(6, getDestroyEventTime()); } - if (protectionLevel_ - != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { + if (protectionLevel_ != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(7, protectionLevel_); } if (attestation_ != null) { output.writeMessage(8, getAttestation()); } - if (algorithm_ - != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm - .CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED - .getNumber()) { + if (algorithm_ != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED.getNumber()) { output.writeEnum(10, algorithm_); } if (generateTime_ != null) { @@ -2049,53 +1766,55 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ - != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState - .CRYPTO_KEY_VERSION_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + if (state_ != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.CRYPTO_KEY_VERSION_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCreateTime()); } if (destroyTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDestroyTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getDestroyTime()); } if (destroyEventTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDestroyEventTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getDestroyEventTime()); } - if (protectionLevel_ - != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, protectionLevel_); + if (protectionLevel_ != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, protectionLevel_); } if (attestation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getAttestation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getAttestation()); } - if (algorithm_ - != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm - .CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, algorithm_); + if (algorithm_ != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, algorithm_); } if (generateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getGenerateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getGenerateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(importJob_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, importJob_); } if (importTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getImportTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getImportTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(importFailureReason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, importFailureReason_); } if (externalProtectionLevelOptions_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 17, getExternalProtectionLevelOptions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getExternalProtectionLevelOptions()); } if (reimportEligible_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, reimportEligible_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(18, reimportEligible_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2105,50 +1824,59 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.kms.v1.CryptoKeyVersion)) { return super.equals(obj); } com.google.cloud.kms.v1.CryptoKeyVersion other = (com.google.cloud.kms.v1.CryptoKeyVersion) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (state_ != other.state_) return false; if (protectionLevel_ != other.protectionLevel_) return false; if (algorithm_ != other.algorithm_) return false; if (hasAttestation() != other.hasAttestation()) return false; if (hasAttestation()) { - if (!getAttestation().equals(other.getAttestation())) return false; + if (!getAttestation() + .equals(other.getAttestation())) 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 (hasGenerateTime() != other.hasGenerateTime()) return false; if (hasGenerateTime()) { - if (!getGenerateTime().equals(other.getGenerateTime())) return false; + if (!getGenerateTime() + .equals(other.getGenerateTime())) return false; } if (hasDestroyTime() != other.hasDestroyTime()) return false; if (hasDestroyTime()) { - if (!getDestroyTime().equals(other.getDestroyTime())) return false; + if (!getDestroyTime() + .equals(other.getDestroyTime())) return false; } if (hasDestroyEventTime() != other.hasDestroyEventTime()) return false; if (hasDestroyEventTime()) { - if (!getDestroyEventTime().equals(other.getDestroyEventTime())) return false; + if (!getDestroyEventTime() + .equals(other.getDestroyEventTime())) return false; } - if (!getImportJob().equals(other.getImportJob())) return false; + if (!getImportJob() + .equals(other.getImportJob())) return false; if (hasImportTime() != other.hasImportTime()) return false; if (hasImportTime()) { - if (!getImportTime().equals(other.getImportTime())) return false; + if (!getImportTime() + .equals(other.getImportTime())) return false; } - if (!getImportFailureReason().equals(other.getImportFailureReason())) return false; - if (hasExternalProtectionLevelOptions() != other.hasExternalProtectionLevelOptions()) - return false; + if (!getImportFailureReason() + .equals(other.getImportFailureReason())) return false; + if (hasExternalProtectionLevelOptions() != other.hasExternalProtectionLevelOptions()) return false; if (hasExternalProtectionLevelOptions()) { - if (!getExternalProtectionLevelOptions().equals(other.getExternalProtectionLevelOptions())) - return false; + if (!getExternalProtectionLevelOptions() + .equals(other.getExternalProtectionLevelOptions())) return false; } - if (getReimportEligible() != other.getReimportEligible()) return false; + if (getReimportEligible() + != other.getReimportEligible()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2201,110 +1929,104 @@ public int hashCode() { hash = (53 * hash) + getExternalProtectionLevelOptions().hashCode(); } hash = (37 * hash) + REIMPORT_ELIGIBLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReimportEligible()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReimportEligible()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.kms.v1.CryptoKeyVersion parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.CryptoKeyVersion parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.CryptoKeyVersion parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.CryptoKeyVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.CryptoKeyVersion parseFrom( 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.kms.v1.CryptoKeyVersion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.CryptoKeyVersion parseFrom( - byte[] data, com.google.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.kms.v1.CryptoKeyVersion parseFrom(java.io.InputStream input) 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.kms.v1.CryptoKeyVersion parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.CryptoKeyVersion parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.CryptoKeyVersion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.CryptoKeyVersion parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.CryptoKeyVersion parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.CryptoKeyVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.CryptoKeyVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents an
    * individual cryptographic key, and the associated key material.
@@ -2319,32 +2041,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.CryptoKeyVersion}
    */
-  public static final class Builder extends 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.kms.v1.CryptoKeyVersion)
       com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsResourcesProto
-          .internal_static_google_cloud_kms_v1_CryptoKeyVersion_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_CryptoKeyVersion_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsResourcesProto
-          .internal_static_google_cloud_kms_v1_CryptoKeyVersion_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_CryptoKeyVersion_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.CryptoKeyVersion.class,
-              com.google.cloud.kms.v1.CryptoKeyVersion.Builder.class);
+              com.google.cloud.kms.v1.CryptoKeyVersion.class, com.google.cloud.kms.v1.CryptoKeyVersion.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.CryptoKeyVersion.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();
@@ -2408,9 +2131,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsResourcesProto
-          .internal_static_google_cloud_kms_v1_CryptoKeyVersion_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_CryptoKeyVersion_descriptor;
     }
 
     @java.lang.Override
@@ -2429,8 +2152,7 @@ public com.google.cloud.kms.v1.CryptoKeyVersion build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.CryptoKeyVersion buildPartial() {
-      com.google.cloud.kms.v1.CryptoKeyVersion result =
-          new com.google.cloud.kms.v1.CryptoKeyVersion(this);
+      com.google.cloud.kms.v1.CryptoKeyVersion result = new com.google.cloud.kms.v1.CryptoKeyVersion(this);
       result.name_ = name_;
       result.state_ = state_;
       result.protectionLevel_ = protectionLevel_;
@@ -2481,39 +2203,38 @@ public com.google.cloud.kms.v1.CryptoKeyVersion 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.kms.v1.CryptoKeyVersion) {
-        return mergeFrom((com.google.cloud.kms.v1.CryptoKeyVersion) other);
+        return mergeFrom((com.google.cloud.kms.v1.CryptoKeyVersion)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2593,100 +2314,96 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 24:
-              {
-                state_ = input.readEnum();
-
-                break;
-              } // case 24
-            case 34:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 34
-            case 42:
-              {
-                input.readMessage(getDestroyTimeFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(
-                    getDestroyEventTimeFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 50
-            case 56:
-              {
-                protectionLevel_ = input.readEnum();
-
-                break;
-              } // case 56
-            case 66:
-              {
-                input.readMessage(getAttestationFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 66
-            case 80:
-              {
-                algorithm_ = input.readEnum();
-
-                break;
-              } // case 80
-            case 90:
-              {
-                input.readMessage(getGenerateTimeFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 90
-            case 114:
-              {
-                importJob_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 114
-            case 122:
-              {
-                input.readMessage(getImportTimeFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 122
-            case 130:
-              {
-                importFailureReason_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 130
-            case 138:
-              {
-                input.readMessage(
-                    getExternalProtectionLevelOptionsFieldBuilder().getBuilder(),
-                    extensionRegistry);
-
-                break;
-              } // case 138
-            case 144:
-              {
-                reimportEligible_ = input.readBool();
-
-                break;
-              } // case 144
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 24: {
+              state_ = input.readEnum();
+
+              break;
+            } // case 24
+            case 34: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 34
+            case 42: {
+              input.readMessage(
+                  getDestroyTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getDestroyEventTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 50
+            case 56: {
+              protectionLevel_ = input.readEnum();
+
+              break;
+            } // case 56
+            case 66: {
+              input.readMessage(
+                  getAttestationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 66
+            case 80: {
+              algorithm_ = input.readEnum();
+
+              break;
+            } // case 80
+            case 90: {
+              input.readMessage(
+                  getGenerateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 90
+            case 114: {
+              importJob_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 114
+            case 122: {
+              input.readMessage(
+                  getImportTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 122
+            case 130: {
+              importFailureReason_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 130
+            case 138: {
+              input.readMessage(
+                  getExternalProtectionLevelOptionsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 138
+            case 144: {
+              reimportEligible_ = input.readBool();
+
+              break;
+            } // case 144
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2699,8 +2416,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource name for this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the format
@@ -2708,13 +2423,13 @@ public Builder mergeFrom(
      * 
* * 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; @@ -2723,8 +2438,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name for this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the format
@@ -2732,14 +2445,15 @@ public java.lang.String getName() {
      * 
* * 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 { @@ -2747,8 +2461,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name for this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the format
@@ -2756,22 +2468,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * 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 for this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the format
@@ -2779,18 +2489,15 @@ public Builder setName(java.lang.String value) {
      * 
* * 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 for this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the format
@@ -2798,16 +2505,16 @@ public Builder clearName() {
      * 
* * 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; @@ -2815,71 +2522,55 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The current state of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
      * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState state = 3; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The current state of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
      * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState state = 3; - * * @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; } /** - * - * *
      * The current state of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
      * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState state = 3; - * * @return The state. */ @java.lang.Override public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState getState() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState result = - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.valueOf(state_); - return result == null - ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.UNRECOGNIZED - : result; + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState result = com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.valueOf(state_); + return result == null ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.UNRECOGNIZED : result; } /** - * - * *
      * The current state of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
      * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState state = 3; - * * @param value The state to set. * @return This builder for chaining. */ @@ -2887,25 +2578,22 @@ public Builder setState(com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersio if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The current state of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
      * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState state = 3; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2913,81 +2601,59 @@ public Builder clearState() { private int protectionLevel_ = 0; /** - * - * *
      * Output only. The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel]
      * describing how crypto operations are performed with this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
      * 
* - * - * .google.cloud.kms.v1.ProtectionLevel protection_level = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for protectionLevel. */ - @java.lang.Override - public int getProtectionLevelValue() { + @java.lang.Override public int getProtectionLevelValue() { return protectionLevel_; } /** - * - * *
      * Output only. The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel]
      * describing how crypto operations are performed with this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
      * 
* - * - * .google.cloud.kms.v1.ProtectionLevel protection_level = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for protectionLevel to set. * @return This builder for chaining. */ public Builder setProtectionLevelValue(int value) { - + protectionLevel_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel]
      * describing how crypto operations are performed with this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
      * 
* - * - * .google.cloud.kms.v1.ProtectionLevel protection_level = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The protectionLevel. */ @java.lang.Override public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.ProtectionLevel result = - com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); + com.google.cloud.kms.v1.ProtectionLevel result = com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); return result == null ? com.google.cloud.kms.v1.ProtectionLevel.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel]
      * describing how crypto operations are performed with this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
      * 
* - * - * .google.cloud.kms.v1.ProtectionLevel protection_level = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The protectionLevel to set. * @return This builder for chaining. */ @@ -2995,28 +2661,23 @@ public Builder setProtectionLevel(com.google.cloud.kms.v1.ProtectionLevel value) if (value == null) { throw new NullPointerException(); } - + protectionLevel_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel]
      * describing how crypto operations are performed with this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
      * 
* - * - * .google.cloud.kms.v1.ProtectionLevel protection_level = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearProtectionLevel() { - + protectionLevel_ = 0; onChanged(); return this; @@ -3024,8 +2685,6 @@ public Builder clearProtectionLevel() { private int algorithm_ = 0; /** - * - * *
      * Output only. The
      * [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -3033,19 +2692,13 @@ public Builder clearProtectionLevel() {
      * supports.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for algorithm. */ - @java.lang.Override - public int getAlgorithmValue() { + @java.lang.Override public int getAlgorithmValue() { return algorithm_; } /** - * - * *
      * Output only. The
      * [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -3053,22 +2706,17 @@ public int getAlgorithmValue() {
      * supports.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for algorithm to set. * @return This builder for chaining. */ public Builder setAlgorithmValue(int value) { - + algorithm_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The
      * [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -3076,24 +2724,16 @@ public Builder setAlgorithmValue(int value) {
      * supports.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The algorithm. */ @java.lang.Override public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm result = - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.valueOf(algorithm_); - return result == null - ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.UNRECOGNIZED - : result; + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm result = com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.valueOf(algorithm_); + return result == null ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The
      * [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -3101,26 +2741,20 @@ public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlg
      * supports.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The algorithm to set. * @return This builder for chaining. */ - public Builder setAlgorithm( - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm value) { + public Builder setAlgorithm(com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm value) { if (value == null) { throw new NullPointerException(); } - + algorithm_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The
      * [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -3128,14 +2762,11 @@ public Builder setAlgorithm(
      * supports.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearAlgorithm() { - + algorithm_ = 0; onChanged(); return this; @@ -3143,13 +2774,8 @@ public Builder clearAlgorithm() { private com.google.cloud.kms.v1.KeyOperationAttestation attestation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.KeyOperationAttestation, - com.google.cloud.kms.v1.KeyOperationAttestation.Builder, - com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder> - attestationBuilder_; + com.google.cloud.kms.v1.KeyOperationAttestation, com.google.cloud.kms.v1.KeyOperationAttestation.Builder, com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder> attestationBuilder_; /** - * - * *
      * Output only. Statement that was generated and signed by the HSM at key
      * creation time. Use this statement to verify attributes of the key as stored
@@ -3158,18 +2784,13 @@ public Builder clearAlgorithm() {
      * [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the attestation field is set. */ public boolean hasAttestation() { return attestationBuilder_ != null || attestation_ != null; } /** - * - * *
      * Output only. Statement that was generated and signed by the HSM at key
      * creation time. Use this statement to verify attributes of the key as stored
@@ -3178,24 +2799,17 @@ public boolean hasAttestation() {
      * [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The attestation. */ public com.google.cloud.kms.v1.KeyOperationAttestation getAttestation() { if (attestationBuilder_ == null) { - return attestation_ == null - ? com.google.cloud.kms.v1.KeyOperationAttestation.getDefaultInstance() - : attestation_; + return attestation_ == null ? com.google.cloud.kms.v1.KeyOperationAttestation.getDefaultInstance() : attestation_; } else { return attestationBuilder_.getMessage(); } } /** - * - * *
      * Output only. Statement that was generated and signed by the HSM at key
      * creation time. Use this statement to verify attributes of the key as stored
@@ -3204,9 +2818,7 @@ public com.google.cloud.kms.v1.KeyOperationAttestation getAttestation() {
      * [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAttestation(com.google.cloud.kms.v1.KeyOperationAttestation value) { if (attestationBuilder_ == null) { @@ -3222,8 +2834,6 @@ public Builder setAttestation(com.google.cloud.kms.v1.KeyOperationAttestation va return this; } /** - * - * *
      * Output only. Statement that was generated and signed by the HSM at key
      * creation time. Use this statement to verify attributes of the key as stored
@@ -3232,9 +2842,7 @@ public Builder setAttestation(com.google.cloud.kms.v1.KeyOperationAttestation va
      * [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAttestation( com.google.cloud.kms.v1.KeyOperationAttestation.Builder builderForValue) { @@ -3248,8 +2856,6 @@ public Builder setAttestation( return this; } /** - * - * *
      * Output only. Statement that was generated and signed by the HSM at key
      * creation time. Use this statement to verify attributes of the key as stored
@@ -3258,17 +2864,13 @@ public Builder setAttestation(
      * [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeAttestation(com.google.cloud.kms.v1.KeyOperationAttestation value) { if (attestationBuilder_ == null) { if (attestation_ != null) { attestation_ = - com.google.cloud.kms.v1.KeyOperationAttestation.newBuilder(attestation_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.kms.v1.KeyOperationAttestation.newBuilder(attestation_).mergeFrom(value).buildPartial(); } else { attestation_ = value; } @@ -3280,8 +2882,6 @@ public Builder mergeAttestation(com.google.cloud.kms.v1.KeyOperationAttestation return this; } /** - * - * *
      * Output only. Statement that was generated and signed by the HSM at key
      * creation time. Use this statement to verify attributes of the key as stored
@@ -3290,9 +2890,7 @@ public Builder mergeAttestation(com.google.cloud.kms.v1.KeyOperationAttestation
      * [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearAttestation() { if (attestationBuilder_ == null) { @@ -3306,8 +2904,6 @@ public Builder clearAttestation() { return this; } /** - * - * *
      * Output only. Statement that was generated and signed by the HSM at key
      * creation time. Use this statement to verify attributes of the key as stored
@@ -3316,18 +2912,14 @@ public Builder clearAttestation() {
      * [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.kms.v1.KeyOperationAttestation.Builder getAttestationBuilder() { - + onChanged(); return getAttestationFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Statement that was generated and signed by the HSM at key
      * creation time. Use this statement to verify attributes of the key as stored
@@ -3336,22 +2928,17 @@ public com.google.cloud.kms.v1.KeyOperationAttestation.Builder getAttestationBui
      * [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder getAttestationOrBuilder() { if (attestationBuilder_ != null) { return attestationBuilder_.getMessageOrBuilder(); } else { - return attestation_ == null - ? com.google.cloud.kms.v1.KeyOperationAttestation.getDefaultInstance() - : attestation_; + return attestation_ == null ? + com.google.cloud.kms.v1.KeyOperationAttestation.getDefaultInstance() : attestation_; } } /** - * - * *
      * Output only. Statement that was generated and signed by the HSM at key
      * creation time. Use this statement to verify attributes of the key as stored
@@ -3360,22 +2947,17 @@ public com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder getAttestationOr
      * [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.KeyOperationAttestation, - com.google.cloud.kms.v1.KeyOperationAttestation.Builder, - com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder> + com.google.cloud.kms.v1.KeyOperationAttestation, com.google.cloud.kms.v1.KeyOperationAttestation.Builder, com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder> getAttestationFieldBuilder() { if (attestationBuilder_ == null) { - attestationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.KeyOperationAttestation, - com.google.cloud.kms.v1.KeyOperationAttestation.Builder, - com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder>( - getAttestation(), getParentForChildren(), isClean()); + attestationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.kms.v1.KeyOperationAttestation, com.google.cloud.kms.v1.KeyOperationAttestation.Builder, com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder>( + getAttestation(), + getParentForChildren(), + isClean()); attestation_ = null; } return attestationBuilder_; @@ -3383,61 +2965,42 @@ public com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder getAttestationOr 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 at which this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] 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 at which this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] 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 at which this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] 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) { @@ -3453,18 +3016,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] 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(); @@ -3475,22 +3035,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] 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; } @@ -3502,16 +3058,12 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] 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) { @@ -3525,67 +3077,51 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time at which this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] 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 at which this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] 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 at which this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] 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_; @@ -3593,64 +3129,45 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp generateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - generateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> generateTimeBuilder_; /** - * - * *
      * Output only. The time this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
      * generated.
      * 
* - * - * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the generateTime field is set. */ public boolean hasGenerateTime() { return generateTimeBuilder_ != null || generateTime_ != null; } /** - * - * *
      * Output only. The time this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
      * generated.
      * 
* - * - * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The generateTime. */ public com.google.protobuf.Timestamp getGenerateTime() { if (generateTimeBuilder_ == null) { - return generateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : generateTime_; + return generateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : generateTime_; } else { return generateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
      * generated.
      * 
* - * - * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setGenerateTime(com.google.protobuf.Timestamp value) { if (generateTimeBuilder_ == null) { @@ -3666,19 +3183,16 @@ public Builder setGenerateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
      * generated.
      * 
* - * - * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setGenerateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setGenerateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (generateTimeBuilder_ == null) { generateTime_ = builderForValue.build(); onChanged(); @@ -3689,25 +3203,19 @@ public Builder setGenerateTime(com.google.protobuf.Timestamp.Builder builderForV return this; } /** - * - * *
      * Output only. The time this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
      * generated.
      * 
* - * - * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeGenerateTime(com.google.protobuf.Timestamp value) { if (generateTimeBuilder_ == null) { if (generateTime_ != null) { generateTime_ = - com.google.protobuf.Timestamp.newBuilder(generateTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(generateTime_).mergeFrom(value).buildPartial(); } else { generateTime_ = value; } @@ -3719,17 +3227,13 @@ public Builder mergeGenerateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
      * generated.
      * 
* - * - * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearGenerateTime() { if (generateTimeBuilder_ == null) { @@ -3743,70 +3247,54 @@ public Builder clearGenerateTime() { return this; } /** - * - * *
      * Output only. The time this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
      * generated.
      * 
* - * - * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getGenerateTimeBuilder() { - + onChanged(); return getGenerateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
      * generated.
      * 
* - * - * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getGenerateTimeOrBuilder() { if (generateTimeBuilder_ != null) { return generateTimeBuilder_.getMessageOrBuilder(); } else { - return generateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : generateTime_; + return generateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : generateTime_; } } /** - * - * *
      * Output only. The time this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
      * generated.
      * 
* - * - * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getGenerateTimeFieldBuilder() { if (generateTimeBuilder_ == null) { - generateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getGenerateTime(), getParentForChildren(), isClean()); + generateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getGenerateTime(), + getParentForChildren(), + isClean()); generateTime_ = null; } return generateTimeBuilder_; @@ -3814,13 +3302,8 @@ public com.google.protobuf.TimestampOrBuilder getGenerateTimeOrBuilder() { private com.google.protobuf.Timestamp destroyTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - destroyTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> destroyTimeBuilder_; /** - * - * *
      * Output only. The time this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material is
@@ -3829,18 +3312,13 @@ public com.google.protobuf.TimestampOrBuilder getGenerateTimeOrBuilder() {
      * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED].
      * 
* - * - * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the destroyTime field is set. */ public boolean hasDestroyTime() { return destroyTimeBuilder_ != null || destroyTime_ != null; } /** - * - * *
      * Output only. The time this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material is
@@ -3849,24 +3327,17 @@ public boolean hasDestroyTime() {
      * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED].
      * 
* - * - * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The destroyTime. */ public com.google.protobuf.Timestamp getDestroyTime() { if (destroyTimeBuilder_ == null) { - return destroyTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : destroyTime_; + return destroyTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : destroyTime_; } else { return destroyTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material is
@@ -3875,9 +3346,7 @@ public com.google.protobuf.Timestamp getDestroyTime() {
      * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED].
      * 
* - * - * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDestroyTime(com.google.protobuf.Timestamp value) { if (destroyTimeBuilder_ == null) { @@ -3893,8 +3362,6 @@ public Builder setDestroyTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material is
@@ -3903,11 +3370,10 @@ public Builder setDestroyTime(com.google.protobuf.Timestamp value) {
      * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED].
      * 
* - * - * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDestroyTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDestroyTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (destroyTimeBuilder_ == null) { destroyTime_ = builderForValue.build(); onChanged(); @@ -3918,8 +3384,6 @@ public Builder setDestroyTime(com.google.protobuf.Timestamp.Builder builderForVa return this; } /** - * - * *
      * Output only. The time this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material is
@@ -3928,17 +3392,13 @@ public Builder setDestroyTime(com.google.protobuf.Timestamp.Builder builderForVa
      * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED].
      * 
* - * - * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDestroyTime(com.google.protobuf.Timestamp value) { if (destroyTimeBuilder_ == null) { if (destroyTime_ != null) { destroyTime_ = - com.google.protobuf.Timestamp.newBuilder(destroyTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(destroyTime_).mergeFrom(value).buildPartial(); } else { destroyTime_ = value; } @@ -3950,8 +3410,6 @@ public Builder mergeDestroyTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material is
@@ -3960,9 +3418,7 @@ public Builder mergeDestroyTime(com.google.protobuf.Timestamp value) {
      * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED].
      * 
* - * - * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDestroyTime() { if (destroyTimeBuilder_ == null) { @@ -3976,8 +3432,6 @@ public Builder clearDestroyTime() { return this; } /** - * - * *
      * Output only. The time this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material is
@@ -3986,18 +3440,14 @@ public Builder clearDestroyTime() {
      * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED].
      * 
* - * - * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDestroyTimeBuilder() { - + onChanged(); return getDestroyTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material is
@@ -4006,22 +3456,17 @@ public com.google.protobuf.Timestamp.Builder getDestroyTimeBuilder() {
      * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED].
      * 
* - * - * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDestroyTimeOrBuilder() { if (destroyTimeBuilder_ != null) { return destroyTimeBuilder_.getMessageOrBuilder(); } else { - return destroyTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : destroyTime_; + return destroyTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : destroyTime_; } } /** - * - * *
      * Output only. The time this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material is
@@ -4030,22 +3475,17 @@ public com.google.protobuf.TimestampOrBuilder getDestroyTimeOrBuilder() {
      * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED].
      * 
* - * - * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getDestroyTimeFieldBuilder() { if (destroyTimeBuilder_ == null) { - destroyTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDestroyTime(), getParentForChildren(), isClean()); + destroyTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDestroyTime(), + getParentForChildren(), + isClean()); destroyTime_ = null; } return destroyTimeBuilder_; @@ -4053,13 +3493,8 @@ public com.google.protobuf.TimestampOrBuilder getDestroyTimeOrBuilder() { private com.google.protobuf.Timestamp destroyEventTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - destroyEventTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> destroyEventTimeBuilder_; /** - * - * *
      * Output only. The time this CryptoKeyVersion's key material was
      * destroyed. Only present if
@@ -4067,18 +3502,13 @@ public com.google.protobuf.TimestampOrBuilder getDestroyTimeOrBuilder() {
      * [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED].
      * 
* - * - * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the destroyEventTime field is set. */ public boolean hasDestroyEventTime() { return destroyEventTimeBuilder_ != null || destroyEventTime_ != null; } /** - * - * *
      * Output only. The time this CryptoKeyVersion's key material was
      * destroyed. Only present if
@@ -4086,24 +3516,17 @@ public boolean hasDestroyEventTime() {
      * [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED].
      * 
* - * - * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The destroyEventTime. */ public com.google.protobuf.Timestamp getDestroyEventTime() { if (destroyEventTimeBuilder_ == null) { - return destroyEventTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : destroyEventTime_; + return destroyEventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : destroyEventTime_; } else { return destroyEventTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time this CryptoKeyVersion's key material was
      * destroyed. Only present if
@@ -4111,9 +3534,7 @@ public com.google.protobuf.Timestamp getDestroyEventTime() {
      * [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED].
      * 
* - * - * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDestroyEventTime(com.google.protobuf.Timestamp value) { if (destroyEventTimeBuilder_ == null) { @@ -4129,8 +3550,6 @@ public Builder setDestroyEventTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time this CryptoKeyVersion's key material was
      * destroyed. Only present if
@@ -4138,11 +3557,10 @@ public Builder setDestroyEventTime(com.google.protobuf.Timestamp value) {
      * [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED].
      * 
* - * - * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDestroyEventTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDestroyEventTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (destroyEventTimeBuilder_ == null) { destroyEventTime_ = builderForValue.build(); onChanged(); @@ -4153,8 +3571,6 @@ public Builder setDestroyEventTime(com.google.protobuf.Timestamp.Builder builder return this; } /** - * - * *
      * Output only. The time this CryptoKeyVersion's key material was
      * destroyed. Only present if
@@ -4162,17 +3578,13 @@ public Builder setDestroyEventTime(com.google.protobuf.Timestamp.Builder builder
      * [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED].
      * 
* - * - * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDestroyEventTime(com.google.protobuf.Timestamp value) { if (destroyEventTimeBuilder_ == null) { if (destroyEventTime_ != null) { destroyEventTime_ = - com.google.protobuf.Timestamp.newBuilder(destroyEventTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(destroyEventTime_).mergeFrom(value).buildPartial(); } else { destroyEventTime_ = value; } @@ -4184,8 +3596,6 @@ public Builder mergeDestroyEventTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time this CryptoKeyVersion's key material was
      * destroyed. Only present if
@@ -4193,9 +3603,7 @@ public Builder mergeDestroyEventTime(com.google.protobuf.Timestamp value) {
      * [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED].
      * 
* - * - * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDestroyEventTime() { if (destroyEventTimeBuilder_ == null) { @@ -4209,8 +3617,6 @@ public Builder clearDestroyEventTime() { return this; } /** - * - * *
      * Output only. The time this CryptoKeyVersion's key material was
      * destroyed. Only present if
@@ -4218,18 +3624,14 @@ public Builder clearDestroyEventTime() {
      * [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED].
      * 
* - * - * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDestroyEventTimeBuilder() { - + onChanged(); return getDestroyEventTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time this CryptoKeyVersion's key material was
      * destroyed. Only present if
@@ -4237,22 +3639,17 @@ public com.google.protobuf.Timestamp.Builder getDestroyEventTimeBuilder() {
      * [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED].
      * 
* - * - * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDestroyEventTimeOrBuilder() { if (destroyEventTimeBuilder_ != null) { return destroyEventTimeBuilder_.getMessageOrBuilder(); } else { - return destroyEventTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : destroyEventTime_; + return destroyEventTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : destroyEventTime_; } } /** - * - * *
      * Output only. The time this CryptoKeyVersion's key material was
      * destroyed. Only present if
@@ -4260,22 +3657,17 @@ public com.google.protobuf.TimestampOrBuilder getDestroyEventTimeOrBuilder() {
      * [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED].
      * 
* - * - * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getDestroyEventTimeFieldBuilder() { if (destroyEventTimeBuilder_ == null) { - destroyEventTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDestroyEventTime(), getParentForChildren(), isClean()); + destroyEventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDestroyEventTime(), + getParentForChildren(), + isClean()); destroyEventTime_ = null; } return destroyEventTimeBuilder_; @@ -4283,8 +3675,6 @@ public com.google.protobuf.TimestampOrBuilder getDestroyEventTimeOrBuilder() { private java.lang.Object importJob_ = ""; /** - * - * *
      * Output only. The name of the [ImportJob][google.cloud.kms.v1.ImportJob]
      * used in the most recent import of this
@@ -4293,13 +3683,13 @@ public com.google.protobuf.TimestampOrBuilder getDestroyEventTimeOrBuilder() {
      * 
* * string import_job = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The importJob. */ public java.lang.String getImportJob() { java.lang.Object ref = importJob_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importJob_ = s; return s; @@ -4308,8 +3698,6 @@ public java.lang.String getImportJob() { } } /** - * - * *
      * Output only. The name of the [ImportJob][google.cloud.kms.v1.ImportJob]
      * used in the most recent import of this
@@ -4318,14 +3706,15 @@ public java.lang.String getImportJob() {
      * 
* * string import_job = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for importJob. */ - public com.google.protobuf.ByteString getImportJobBytes() { + public com.google.protobuf.ByteString + getImportJobBytes() { java.lang.Object ref = importJob_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); importJob_ = b; return b; } else { @@ -4333,8 +3722,6 @@ public com.google.protobuf.ByteString getImportJobBytes() { } } /** - * - * *
      * Output only. The name of the [ImportJob][google.cloud.kms.v1.ImportJob]
      * used in the most recent import of this
@@ -4343,22 +3730,20 @@ public com.google.protobuf.ByteString getImportJobBytes() {
      * 
* * string import_job = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The importJob to set. * @return This builder for chaining. */ - public Builder setImportJob(java.lang.String value) { + public Builder setImportJob( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + importJob_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The name of the [ImportJob][google.cloud.kms.v1.ImportJob]
      * used in the most recent import of this
@@ -4367,18 +3752,15 @@ public Builder setImportJob(java.lang.String value) {
      * 
* * string import_job = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearImportJob() { - + importJob_ = getDefaultInstance().getImportJob(); onChanged(); return this; } /** - * - * *
      * Output only. The name of the [ImportJob][google.cloud.kms.v1.ImportJob]
      * used in the most recent import of this
@@ -4387,16 +3769,16 @@ public Builder clearImportJob() {
      * 
* * string import_job = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for importJob to set. * @return This builder for chaining. */ - public Builder setImportJobBytes(com.google.protobuf.ByteString value) { + public Builder setImportJobBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + importJob_ = value; onChanged(); return this; @@ -4404,64 +3786,45 @@ public Builder setImportJobBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp importTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - importTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> importTimeBuilder_; /** - * - * *
      * Output only. The time at which this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
      * most recently imported.
      * 
* - * - * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the importTime field is set. */ public boolean hasImportTime() { return importTimeBuilder_ != null || importTime_ != null; } /** - * - * *
      * Output only. The time at which this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
      * most recently imported.
      * 
* - * - * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The importTime. */ public com.google.protobuf.Timestamp getImportTime() { if (importTimeBuilder_ == null) { - return importTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : importTime_; + return importTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : importTime_; } else { return importTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
      * most recently imported.
      * 
* - * - * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setImportTime(com.google.protobuf.Timestamp value) { if (importTimeBuilder_ == null) { @@ -4477,19 +3840,16 @@ public Builder setImportTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
      * most recently imported.
      * 
* - * - * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setImportTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setImportTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (importTimeBuilder_ == null) { importTime_ = builderForValue.build(); onChanged(); @@ -4500,23 +3860,19 @@ public Builder setImportTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
      * most recently imported.
      * 
* - * - * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeImportTime(com.google.protobuf.Timestamp value) { if (importTimeBuilder_ == null) { if (importTime_ != null) { importTime_ = - com.google.protobuf.Timestamp.newBuilder(importTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(importTime_).mergeFrom(value).buildPartial(); } else { importTime_ = value; } @@ -4528,17 +3884,13 @@ public Builder mergeImportTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
      * most recently imported.
      * 
* - * - * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearImportTime() { if (importTimeBuilder_ == null) { @@ -4552,70 +3904,54 @@ public Builder clearImportTime() { return this; } /** - * - * *
      * Output only. The time at which this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
      * most recently imported.
      * 
* - * - * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getImportTimeBuilder() { - + onChanged(); return getImportTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
      * most recently imported.
      * 
* - * - * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getImportTimeOrBuilder() { if (importTimeBuilder_ != null) { return importTimeBuilder_.getMessageOrBuilder(); } else { - return importTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : importTime_; + return importTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : importTime_; } } /** - * - * *
      * Output only. The time at which this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
      * most recently imported.
      * 
* - * - * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp import_time = 15 [(.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> getImportTimeFieldBuilder() { if (importTimeBuilder_ == null) { - importTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getImportTime(), getParentForChildren(), isClean()); + importTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getImportTime(), + getParentForChildren(), + isClean()); importTime_ = null; } return importTimeBuilder_; @@ -4623,8 +3959,6 @@ public com.google.protobuf.TimestampOrBuilder getImportTimeOrBuilder() { private java.lang.Object importFailureReason_ = ""; /** - * - * *
      * Output only. The root cause of the most recent import failure. Only present
      * if [state][google.cloud.kms.v1.CryptoKeyVersion.state] is
@@ -4632,13 +3966,13 @@ public com.google.protobuf.TimestampOrBuilder getImportTimeOrBuilder() {
      * 
* * string import_failure_reason = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The importFailureReason. */ public java.lang.String getImportFailureReason() { java.lang.Object ref = importFailureReason_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importFailureReason_ = s; return s; @@ -4647,8 +3981,6 @@ public java.lang.String getImportFailureReason() { } } /** - * - * *
      * Output only. The root cause of the most recent import failure. Only present
      * if [state][google.cloud.kms.v1.CryptoKeyVersion.state] is
@@ -4656,14 +3988,15 @@ public java.lang.String getImportFailureReason() {
      * 
* * string import_failure_reason = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for importFailureReason. */ - public com.google.protobuf.ByteString getImportFailureReasonBytes() { + public com.google.protobuf.ByteString + getImportFailureReasonBytes() { java.lang.Object ref = importFailureReason_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); importFailureReason_ = b; return b; } else { @@ -4671,8 +4004,6 @@ public com.google.protobuf.ByteString getImportFailureReasonBytes() { } } /** - * - * *
      * Output only. The root cause of the most recent import failure. Only present
      * if [state][google.cloud.kms.v1.CryptoKeyVersion.state] is
@@ -4680,22 +4011,20 @@ public com.google.protobuf.ByteString getImportFailureReasonBytes() {
      * 
* * string import_failure_reason = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The importFailureReason to set. * @return This builder for chaining. */ - public Builder setImportFailureReason(java.lang.String value) { + public Builder setImportFailureReason( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + importFailureReason_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The root cause of the most recent import failure. Only present
      * if [state][google.cloud.kms.v1.CryptoKeyVersion.state] is
@@ -4703,18 +4032,15 @@ public Builder setImportFailureReason(java.lang.String value) {
      * 
* * string import_failure_reason = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearImportFailureReason() { - + importFailureReason_ = getDefaultInstance().getImportFailureReason(); onChanged(); return this; } /** - * - * *
      * Output only. The root cause of the most recent import failure. Only present
      * if [state][google.cloud.kms.v1.CryptoKeyVersion.state] is
@@ -4722,16 +4048,16 @@ public Builder clearImportFailureReason() {
      * 
* * string import_failure_reason = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for importFailureReason to set. * @return This builder for chaining. */ - public Builder setImportFailureReasonBytes(com.google.protobuf.ByteString value) { + public Builder setImportFailureReasonBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + importFailureReason_ = value; onChanged(); return this; @@ -4739,13 +4065,8 @@ public Builder setImportFailureReasonBytes(com.google.protobuf.ByteString value) private com.google.cloud.kms.v1.ExternalProtectionLevelOptions externalProtectionLevelOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.ExternalProtectionLevelOptions, - com.google.cloud.kms.v1.ExternalProtectionLevelOptions.Builder, - com.google.cloud.kms.v1.ExternalProtectionLevelOptionsOrBuilder> - externalProtectionLevelOptionsBuilder_; + com.google.cloud.kms.v1.ExternalProtectionLevelOptions, com.google.cloud.kms.v1.ExternalProtectionLevelOptions.Builder, com.google.cloud.kms.v1.ExternalProtectionLevelOptionsOrBuilder> externalProtectionLevelOptionsBuilder_; /** - * - * *
      * ExternalProtectionLevelOptions stores a group of additional fields for
      * configuring a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that
@@ -4755,19 +4076,13 @@ public Builder setImportFailureReasonBytes(com.google.protobuf.ByteString value)
      * protection levels.
      * 
* - * - * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; - * - * + * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; * @return Whether the externalProtectionLevelOptions field is set. */ public boolean hasExternalProtectionLevelOptions() { - return externalProtectionLevelOptionsBuilder_ != null - || externalProtectionLevelOptions_ != null; + return externalProtectionLevelOptionsBuilder_ != null || externalProtectionLevelOptions_ != null; } /** - * - * *
      * ExternalProtectionLevelOptions stores a group of additional fields for
      * configuring a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that
@@ -4777,25 +4092,17 @@ public boolean hasExternalProtectionLevelOptions() {
      * protection levels.
      * 
* - * - * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; - * - * + * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; * @return The externalProtectionLevelOptions. */ - public com.google.cloud.kms.v1.ExternalProtectionLevelOptions - getExternalProtectionLevelOptions() { + public com.google.cloud.kms.v1.ExternalProtectionLevelOptions getExternalProtectionLevelOptions() { if (externalProtectionLevelOptionsBuilder_ == null) { - return externalProtectionLevelOptions_ == null - ? com.google.cloud.kms.v1.ExternalProtectionLevelOptions.getDefaultInstance() - : externalProtectionLevelOptions_; + return externalProtectionLevelOptions_ == null ? com.google.cloud.kms.v1.ExternalProtectionLevelOptions.getDefaultInstance() : externalProtectionLevelOptions_; } else { return externalProtectionLevelOptionsBuilder_.getMessage(); } } /** - * - * *
      * ExternalProtectionLevelOptions stores a group of additional fields for
      * configuring a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that
@@ -4805,12 +4112,9 @@ public boolean hasExternalProtectionLevelOptions() {
      * protection levels.
      * 
* - * - * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; - * + * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; */ - public Builder setExternalProtectionLevelOptions( - com.google.cloud.kms.v1.ExternalProtectionLevelOptions value) { + public Builder setExternalProtectionLevelOptions(com.google.cloud.kms.v1.ExternalProtectionLevelOptions value) { if (externalProtectionLevelOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4824,8 +4128,6 @@ public Builder setExternalProtectionLevelOptions( return this; } /** - * - * *
      * ExternalProtectionLevelOptions stores a group of additional fields for
      * configuring a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that
@@ -4835,9 +4137,7 @@ public Builder setExternalProtectionLevelOptions(
      * protection levels.
      * 
* - * - * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; - * + * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; */ public Builder setExternalProtectionLevelOptions( com.google.cloud.kms.v1.ExternalProtectionLevelOptions.Builder builderForValue) { @@ -4851,8 +4151,6 @@ public Builder setExternalProtectionLevelOptions( return this; } /** - * - * *
      * ExternalProtectionLevelOptions stores a group of additional fields for
      * configuring a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that
@@ -4862,19 +4160,13 @@ public Builder setExternalProtectionLevelOptions(
      * protection levels.
      * 
* - * - * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; - * + * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; */ - public Builder mergeExternalProtectionLevelOptions( - com.google.cloud.kms.v1.ExternalProtectionLevelOptions value) { + public Builder mergeExternalProtectionLevelOptions(com.google.cloud.kms.v1.ExternalProtectionLevelOptions value) { if (externalProtectionLevelOptionsBuilder_ == null) { if (externalProtectionLevelOptions_ != null) { externalProtectionLevelOptions_ = - com.google.cloud.kms.v1.ExternalProtectionLevelOptions.newBuilder( - externalProtectionLevelOptions_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.kms.v1.ExternalProtectionLevelOptions.newBuilder(externalProtectionLevelOptions_).mergeFrom(value).buildPartial(); } else { externalProtectionLevelOptions_ = value; } @@ -4886,8 +4178,6 @@ public Builder mergeExternalProtectionLevelOptions( return this; } /** - * - * *
      * ExternalProtectionLevelOptions stores a group of additional fields for
      * configuring a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that
@@ -4897,9 +4187,7 @@ public Builder mergeExternalProtectionLevelOptions(
      * protection levels.
      * 
* - * - * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; - * + * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; */ public Builder clearExternalProtectionLevelOptions() { if (externalProtectionLevelOptionsBuilder_ == null) { @@ -4913,8 +4201,6 @@ public Builder clearExternalProtectionLevelOptions() { return this; } /** - * - * *
      * ExternalProtectionLevelOptions stores a group of additional fields for
      * configuring a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that
@@ -4924,19 +4210,14 @@ public Builder clearExternalProtectionLevelOptions() {
      * protection levels.
      * 
* - * - * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; - * + * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; */ - public com.google.cloud.kms.v1.ExternalProtectionLevelOptions.Builder - getExternalProtectionLevelOptionsBuilder() { - + public com.google.cloud.kms.v1.ExternalProtectionLevelOptions.Builder getExternalProtectionLevelOptionsBuilder() { + onChanged(); return getExternalProtectionLevelOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * ExternalProtectionLevelOptions stores a group of additional fields for
      * configuring a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that
@@ -4946,23 +4227,17 @@ public Builder clearExternalProtectionLevelOptions() {
      * protection levels.
      * 
* - * - * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; - * + * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; */ - public com.google.cloud.kms.v1.ExternalProtectionLevelOptionsOrBuilder - getExternalProtectionLevelOptionsOrBuilder() { + public com.google.cloud.kms.v1.ExternalProtectionLevelOptionsOrBuilder getExternalProtectionLevelOptionsOrBuilder() { if (externalProtectionLevelOptionsBuilder_ != null) { return externalProtectionLevelOptionsBuilder_.getMessageOrBuilder(); } else { - return externalProtectionLevelOptions_ == null - ? com.google.cloud.kms.v1.ExternalProtectionLevelOptions.getDefaultInstance() - : externalProtectionLevelOptions_; + return externalProtectionLevelOptions_ == null ? + com.google.cloud.kms.v1.ExternalProtectionLevelOptions.getDefaultInstance() : externalProtectionLevelOptions_; } } /** - * - * *
      * ExternalProtectionLevelOptions stores a group of additional fields for
      * configuring a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that
@@ -4972,31 +4247,24 @@ public Builder clearExternalProtectionLevelOptions() {
      * protection levels.
      * 
* - * - * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; - * + * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.ExternalProtectionLevelOptions, - com.google.cloud.kms.v1.ExternalProtectionLevelOptions.Builder, - com.google.cloud.kms.v1.ExternalProtectionLevelOptionsOrBuilder> + com.google.cloud.kms.v1.ExternalProtectionLevelOptions, com.google.cloud.kms.v1.ExternalProtectionLevelOptions.Builder, com.google.cloud.kms.v1.ExternalProtectionLevelOptionsOrBuilder> getExternalProtectionLevelOptionsFieldBuilder() { if (externalProtectionLevelOptionsBuilder_ == null) { - externalProtectionLevelOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.ExternalProtectionLevelOptions, - com.google.cloud.kms.v1.ExternalProtectionLevelOptions.Builder, - com.google.cloud.kms.v1.ExternalProtectionLevelOptionsOrBuilder>( - getExternalProtectionLevelOptions(), getParentForChildren(), isClean()); + externalProtectionLevelOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.kms.v1.ExternalProtectionLevelOptions, com.google.cloud.kms.v1.ExternalProtectionLevelOptions.Builder, com.google.cloud.kms.v1.ExternalProtectionLevelOptionsOrBuilder>( + getExternalProtectionLevelOptions(), + getParentForChildren(), + isClean()); externalProtectionLevelOptions_ = null; } return externalProtectionLevelOptionsBuilder_; } - private boolean reimportEligible_; + private boolean reimportEligible_ ; /** - * - * *
      * Output only. Whether or not this key version is eligible for reimport, by
      * being specified as a target in
@@ -5004,7 +4272,6 @@ public Builder clearExternalProtectionLevelOptions() {
      * 
* * bool reimport_eligible = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reimportEligible. */ @java.lang.Override @@ -5012,8 +4279,6 @@ public boolean getReimportEligible() { return reimportEligible_; } /** - * - * *
      * Output only. Whether or not this key version is eligible for reimport, by
      * being specified as a target in
@@ -5021,19 +4286,16 @@ public boolean getReimportEligible() {
      * 
* * bool reimport_eligible = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The reimportEligible to set. * @return This builder for chaining. */ public Builder setReimportEligible(boolean value) { - + reimportEligible_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Whether or not this key version is eligible for reimport, by
      * being specified as a target in
@@ -5041,18 +4303,17 @@ public Builder setReimportEligible(boolean value) {
      * 
* * bool reimport_eligible = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearReimportEligible() { - + reimportEligible_ = 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); } @@ -5062,12 +4323,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.CryptoKeyVersion) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.CryptoKeyVersion) private static final com.google.cloud.kms.v1.CryptoKeyVersion DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.CryptoKeyVersion(); } @@ -5076,27 +4337,27 @@ public static com.google.cloud.kms.v1.CryptoKeyVersion getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CryptoKeyVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CryptoKeyVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5111,4 +4372,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.CryptoKeyVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionName.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionName.java similarity index 100% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionName.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionName.java diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionOrBuilder.java similarity index 77% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionOrBuilder.java index 6977a6e51cae..c0b556cd7c33 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionOrBuilder.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/kms/v1/resources.proto package com.google.cloud.kms.v1; -public interface CryptoKeyVersionOrBuilder - extends +public interface CryptoKeyVersionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.CryptoKeyVersion) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name for this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the format
@@ -33,13 +15,10 @@ public interface CryptoKeyVersionOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name for this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the format
@@ -47,74 +26,56 @@ public interface CryptoKeyVersionOrBuilder
    * 
* * 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 current state of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
    * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState state = 3; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The current state of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
    * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState state = 3; - * * @return The state. */ com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState getState(); /** - * - * *
    * Output only. The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel]
    * describing how crypto operations are performed with this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
    * 
* - * - * .google.cloud.kms.v1.ProtectionLevel protection_level = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for protectionLevel. */ int getProtectionLevelValue(); /** - * - * *
    * Output only. The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel]
    * describing how crypto operations are performed with this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
    * 
* - * - * .google.cloud.kms.v1.ProtectionLevel protection_level = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The protectionLevel. */ com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel(); /** - * - * *
    * Output only. The
    * [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -122,16 +83,11 @@ public interface CryptoKeyVersionOrBuilder
    * supports.
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for algorithm. */ int getAlgorithmValue(); /** - * - * *
    * Output only. The
    * [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -139,17 +95,12 @@ public interface CryptoKeyVersionOrBuilder
    * supports.
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The algorithm. */ com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm(); /** - * - * *
    * Output only. Statement that was generated and signed by the HSM at key
    * creation time. Use this statement to verify attributes of the key as stored
@@ -158,16 +109,11 @@ public interface CryptoKeyVersionOrBuilder
    * [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
    * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the attestation field is set. */ boolean hasAttestation(); /** - * - * *
    * Output only. Statement that was generated and signed by the HSM at key
    * creation time. Use this statement to verify attributes of the key as stored
@@ -176,16 +122,11 @@ public interface CryptoKeyVersionOrBuilder
    * [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
    * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The attestation. */ com.google.cloud.kms.v1.KeyOperationAttestation getAttestation(); /** - * - * *
    * Output only. Statement that was generated and signed by the HSM at key
    * creation time. Use this statement to verify attributes of the key as stored
@@ -194,103 +135,74 @@ public interface CryptoKeyVersionOrBuilder
    * [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
    * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder getAttestationOrBuilder(); /** - * - * *
    * Output only. The time at which this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] 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 at which this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] 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 at which this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] 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(); /** - * - * *
    * Output only. The time this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
    * generated.
    * 
* - * - * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the generateTime field is set. */ boolean hasGenerateTime(); /** - * - * *
    * Output only. The time this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
    * generated.
    * 
* - * - * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The generateTime. */ com.google.protobuf.Timestamp getGenerateTime(); /** - * - * *
    * Output only. The time this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
    * generated.
    * 
* - * - * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp generate_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getGenerateTimeOrBuilder(); /** - * - * *
    * Output only. The time this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material is
@@ -299,15 +211,11 @@ public interface CryptoKeyVersionOrBuilder
    * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED].
    * 
* - * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the destroyTime field is set. */ boolean hasDestroyTime(); /** - * - * *
    * Output only. The time this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material is
@@ -316,15 +224,11 @@ public interface CryptoKeyVersionOrBuilder
    * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED].
    * 
* - * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The destroyTime. */ com.google.protobuf.Timestamp getDestroyTime(); /** - * - * *
    * Output only. The time this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material is
@@ -333,14 +237,11 @@ public interface CryptoKeyVersionOrBuilder
    * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED].
    * 
* - * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp destroy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDestroyTimeOrBuilder(); /** - * - * *
    * Output only. The time this CryptoKeyVersion's key material was
    * destroyed. Only present if
@@ -348,16 +249,11 @@ public interface CryptoKeyVersionOrBuilder
    * [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED].
    * 
* - * - * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the destroyEventTime field is set. */ boolean hasDestroyEventTime(); /** - * - * *
    * Output only. The time this CryptoKeyVersion's key material was
    * destroyed. Only present if
@@ -365,16 +261,11 @@ public interface CryptoKeyVersionOrBuilder
    * [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED].
    * 
* - * - * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The destroyEventTime. */ com.google.protobuf.Timestamp getDestroyEventTime(); /** - * - * *
    * Output only. The time this CryptoKeyVersion's key material was
    * destroyed. Only present if
@@ -382,15 +273,11 @@ public interface CryptoKeyVersionOrBuilder
    * [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED].
    * 
* - * - * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp destroy_event_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDestroyEventTimeOrBuilder(); /** - * - * *
    * Output only. The name of the [ImportJob][google.cloud.kms.v1.ImportJob]
    * used in the most recent import of this
@@ -399,13 +286,10 @@ public interface CryptoKeyVersionOrBuilder
    * 
* * string import_job = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The importJob. */ java.lang.String getImportJob(); /** - * - * *
    * Output only. The name of the [ImportJob][google.cloud.kms.v1.ImportJob]
    * used in the most recent import of this
@@ -414,58 +298,45 @@ public interface CryptoKeyVersionOrBuilder
    * 
* * string import_job = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for importJob. */ - com.google.protobuf.ByteString getImportJobBytes(); + com.google.protobuf.ByteString + getImportJobBytes(); /** - * - * *
    * Output only. The time at which this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
    * most recently imported.
    * 
* - * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the importTime field is set. */ boolean hasImportTime(); /** - * - * *
    * Output only. The time at which this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
    * most recently imported.
    * 
* - * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The importTime. */ com.google.protobuf.Timestamp getImportTime(); /** - * - * *
    * Output only. The time at which this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
    * most recently imported.
    * 
* - * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp import_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getImportTimeOrBuilder(); /** - * - * *
    * Output only. The root cause of the most recent import failure. Only present
    * if [state][google.cloud.kms.v1.CryptoKeyVersion.state] is
@@ -473,13 +344,10 @@ public interface CryptoKeyVersionOrBuilder
    * 
* * string import_failure_reason = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The importFailureReason. */ java.lang.String getImportFailureReason(); /** - * - * *
    * Output only. The root cause of the most recent import failure. Only present
    * if [state][google.cloud.kms.v1.CryptoKeyVersion.state] is
@@ -487,14 +355,12 @@ public interface CryptoKeyVersionOrBuilder
    * 
* * string import_failure_reason = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for importFailureReason. */ - com.google.protobuf.ByteString getImportFailureReasonBytes(); + com.google.protobuf.ByteString + getImportFailureReasonBytes(); /** - * - * *
    * ExternalProtectionLevelOptions stores a group of additional fields for
    * configuring a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that
@@ -504,16 +370,11 @@ public interface CryptoKeyVersionOrBuilder
    * protection levels.
    * 
* - * - * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; - * - * + * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; * @return Whether the externalProtectionLevelOptions field is set. */ boolean hasExternalProtectionLevelOptions(); /** - * - * *
    * ExternalProtectionLevelOptions stores a group of additional fields for
    * configuring a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that
@@ -523,16 +384,11 @@ public interface CryptoKeyVersionOrBuilder
    * protection levels.
    * 
* - * - * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; - * - * + * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; * @return The externalProtectionLevelOptions. */ com.google.cloud.kms.v1.ExternalProtectionLevelOptions getExternalProtectionLevelOptions(); /** - * - * *
    * ExternalProtectionLevelOptions stores a group of additional fields for
    * configuring a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that
@@ -542,16 +398,11 @@ public interface CryptoKeyVersionOrBuilder
    * protection levels.
    * 
* - * - * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; - * + * .google.cloud.kms.v1.ExternalProtectionLevelOptions external_protection_level_options = 17; */ - com.google.cloud.kms.v1.ExternalProtectionLevelOptionsOrBuilder - getExternalProtectionLevelOptionsOrBuilder(); + com.google.cloud.kms.v1.ExternalProtectionLevelOptionsOrBuilder getExternalProtectionLevelOptionsOrBuilder(); /** - * - * *
    * Output only. Whether or not this key version is eligible for reimport, by
    * being specified as a target in
@@ -559,7 +410,6 @@ public interface CryptoKeyVersionOrBuilder
    * 
* * bool reimport_eligible = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reimportEligible. */ boolean getReimportEligible(); diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionTemplate.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionTemplate.java similarity index 68% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionTemplate.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionTemplate.java index 3bc95975ef41..8905d8eaa3ba 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionTemplate.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionTemplate.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/kms/v1/resources.proto package com.google.cloud.kms.v1; /** - * - * *
  * A [CryptoKeyVersionTemplate][google.cloud.kms.v1.CryptoKeyVersionTemplate]
  * specifies the properties to use when creating a new
@@ -32,16 +15,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.CryptoKeyVersionTemplate}
  */
-public final class CryptoKeyVersionTemplate extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CryptoKeyVersionTemplate extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.CryptoKeyVersionTemplate)
     CryptoKeyVersionTemplateOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CryptoKeyVersionTemplate.newBuilder() to construct.
   private CryptoKeyVersionTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CryptoKeyVersionTemplate() {
     protectionLevel_ = 0;
     algorithm_ = 0;
@@ -49,35 +31,32 @@ private CryptoKeyVersionTemplate() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CryptoKeyVersionTemplate();
   }
 
   @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.kms.v1.KmsResourcesProto
-        .internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsResourcesProto
-        .internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.CryptoKeyVersionTemplate.class,
-            com.google.cloud.kms.v1.CryptoKeyVersionTemplate.Builder.class);
+            com.google.cloud.kms.v1.CryptoKeyVersionTemplate.class, com.google.cloud.kms.v1.CryptoKeyVersionTemplate.Builder.class);
   }
 
   public static final int PROTECTION_LEVEL_FIELD_NUMBER = 1;
   private int protectionLevel_;
   /**
-   *
-   *
    * 
    * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when creating
    * a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this
@@ -86,16 +65,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 1; - * * @return The enum numeric value on the wire for protectionLevel. */ - @java.lang.Override - public int getProtectionLevelValue() { + @java.lang.Override public int getProtectionLevelValue() { return protectionLevel_; } /** - * - * *
    * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when creating
    * a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this
@@ -104,22 +79,17 @@ public int getProtectionLevelValue() {
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 1; - * * @return The protectionLevel. */ - @java.lang.Override - public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { + @java.lang.Override public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.ProtectionLevel result = - com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); + com.google.cloud.kms.v1.ProtectionLevel result = com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); return result == null ? com.google.cloud.kms.v1.ProtectionLevel.UNRECOGNIZED : result; } public static final int ALGORITHM_FIELD_NUMBER = 3; private int algorithm_; /** - * - * *
    * Required.
    * [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -132,19 +102,13 @@ public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() {
    * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for algorithm. */ - @java.lang.Override - public int getAlgorithmValue() { + @java.lang.Override public int getAlgorithmValue() { return algorithm_; } /** - * - * *
    * Required.
    * [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -157,24 +121,16 @@ public int getAlgorithmValue() {
    * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The algorithm. */ - @java.lang.Override - public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm() { + @java.lang.Override public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm result = - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.valueOf(algorithm_); - return result == null - ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.UNRECOGNIZED - : result; + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm result = com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.valueOf(algorithm_); + return result == null ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,15 +142,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (protectionLevel_ - != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (protectionLevel_ != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(1, protectionLevel_); } - if (algorithm_ - != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm - .CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED - .getNumber()) { + if (algorithm_ != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED.getNumber()) { output.writeEnum(3, algorithm_); } getUnknownFields().writeTo(output); @@ -206,15 +159,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (protectionLevel_ - != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, protectionLevel_); + if (protectionLevel_ != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, protectionLevel_); } - if (algorithm_ - != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm - .CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, algorithm_); + if (algorithm_ != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, algorithm_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -224,13 +175,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.kms.v1.CryptoKeyVersionTemplate)) { return super.equals(obj); } - com.google.cloud.kms.v1.CryptoKeyVersionTemplate other = - (com.google.cloud.kms.v1.CryptoKeyVersionTemplate) obj; + com.google.cloud.kms.v1.CryptoKeyVersionTemplate other = (com.google.cloud.kms.v1.CryptoKeyVersionTemplate) obj; if (protectionLevel_ != other.protectionLevel_) return false; if (algorithm_ != other.algorithm_) return false; @@ -254,104 +204,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.CryptoKeyVersionTemplate parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.CryptoKeyVersionTemplate parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.CryptoKeyVersionTemplate parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.CryptoKeyVersionTemplate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.CryptoKeyVersionTemplate parseFrom( 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.kms.v1.CryptoKeyVersionTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.CryptoKeyVersionTemplate parseFrom( - byte[] data, com.google.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.kms.v1.CryptoKeyVersionTemplate parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.CryptoKeyVersionTemplate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.CryptoKeyVersionTemplate parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.CryptoKeyVersionTemplate parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.CryptoKeyVersionTemplate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.CryptoKeyVersionTemplate parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.CryptoKeyVersionTemplate parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.CryptoKeyVersionTemplate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.CryptoKeyVersionTemplate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CryptoKeyVersionTemplate][google.cloud.kms.v1.CryptoKeyVersionTemplate]
    * specifies the properties to use when creating a new
@@ -363,32 +306,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.CryptoKeyVersionTemplate}
    */
-  public static final class Builder extends 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.kms.v1.CryptoKeyVersionTemplate)
       com.google.cloud.kms.v1.CryptoKeyVersionTemplateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsResourcesProto
-          .internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsResourcesProto
-          .internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.CryptoKeyVersionTemplate.class,
-              com.google.cloud.kms.v1.CryptoKeyVersionTemplate.Builder.class);
+              com.google.cloud.kms.v1.CryptoKeyVersionTemplate.class, com.google.cloud.kms.v1.CryptoKeyVersionTemplate.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.CryptoKeyVersionTemplate.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();
@@ -400,9 +344,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsResourcesProto
-          .internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_descriptor;
     }
 
     @java.lang.Override
@@ -421,8 +365,7 @@ public com.google.cloud.kms.v1.CryptoKeyVersionTemplate build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.CryptoKeyVersionTemplate buildPartial() {
-      com.google.cloud.kms.v1.CryptoKeyVersionTemplate result =
-          new com.google.cloud.kms.v1.CryptoKeyVersionTemplate(this);
+      com.google.cloud.kms.v1.CryptoKeyVersionTemplate result = new com.google.cloud.kms.v1.CryptoKeyVersionTemplate(this);
       result.protectionLevel_ = protectionLevel_;
       result.algorithm_ = algorithm_;
       onBuilt();
@@ -433,39 +376,38 @@ public com.google.cloud.kms.v1.CryptoKeyVersionTemplate 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.kms.v1.CryptoKeyVersionTemplate) {
-        return mergeFrom((com.google.cloud.kms.v1.CryptoKeyVersionTemplate) other);
+        return mergeFrom((com.google.cloud.kms.v1.CryptoKeyVersionTemplate)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -473,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.kms.v1.CryptoKeyVersionTemplate other) {
-      if (other == com.google.cloud.kms.v1.CryptoKeyVersionTemplate.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.kms.v1.CryptoKeyVersionTemplate.getDefaultInstance()) return this;
       if (other.protectionLevel_ != 0) {
         setProtectionLevelValue(other.getProtectionLevelValue());
       }
@@ -507,25 +448,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                protectionLevel_ = input.readEnum();
-
-                break;
-              } // case 8
-            case 24:
-              {
-                algorithm_ = input.readEnum();
-
-                break;
-              } // case 24
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              protectionLevel_ = input.readEnum();
+
+              break;
+            } // case 8
+            case 24: {
+              algorithm_ = input.readEnum();
+
+              break;
+            } // case 24
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -538,8 +476,6 @@ public Builder mergeFrom(
 
     private int protectionLevel_ = 0;
     /**
-     *
-     *
      * 
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when creating
      * a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this
@@ -548,16 +484,12 @@ public Builder mergeFrom(
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 1; - * * @return The enum numeric value on the wire for protectionLevel. */ - @java.lang.Override - public int getProtectionLevelValue() { + @java.lang.Override public int getProtectionLevelValue() { return protectionLevel_; } /** - * - * *
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when creating
      * a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this
@@ -566,19 +498,16 @@ public int getProtectionLevelValue() {
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 1; - * * @param value The enum numeric value on the wire for protectionLevel to set. * @return This builder for chaining. */ public Builder setProtectionLevelValue(int value) { - + protectionLevel_ = value; onChanged(); return this; } /** - * - * *
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when creating
      * a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this
@@ -587,19 +516,15 @@ public Builder setProtectionLevelValue(int value) {
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 1; - * * @return The protectionLevel. */ @java.lang.Override public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.ProtectionLevel result = - com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); + com.google.cloud.kms.v1.ProtectionLevel result = com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); return result == null ? com.google.cloud.kms.v1.ProtectionLevel.UNRECOGNIZED : result; } /** - * - * *
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when creating
      * a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this
@@ -608,7 +533,6 @@ public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() {
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 1; - * * @param value The protectionLevel to set. * @return This builder for chaining. */ @@ -616,14 +540,12 @@ public Builder setProtectionLevel(com.google.cloud.kms.v1.ProtectionLevel value) if (value == null) { throw new NullPointerException(); } - + protectionLevel_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when creating
      * a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this
@@ -632,11 +554,10 @@ public Builder setProtectionLevel(com.google.cloud.kms.v1.ProtectionLevel value)
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 1; - * * @return This builder for chaining. */ public Builder clearProtectionLevel() { - + protectionLevel_ = 0; onChanged(); return this; @@ -644,8 +565,6 @@ public Builder clearProtectionLevel() { private int algorithm_ = 0; /** - * - * *
      * Required.
      * [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -658,19 +577,13 @@ public Builder clearProtectionLevel() {
      * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for algorithm. */ - @java.lang.Override - public int getAlgorithmValue() { + @java.lang.Override public int getAlgorithmValue() { return algorithm_; } /** - * - * *
      * Required.
      * [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -683,22 +596,17 @@ public int getAlgorithmValue() {
      * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for algorithm to set. * @return This builder for chaining. */ public Builder setAlgorithmValue(int value) { - + algorithm_ = value; onChanged(); return this; } /** - * - * *
      * Required.
      * [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -711,24 +619,16 @@ public Builder setAlgorithmValue(int value) {
      * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The algorithm. */ @java.lang.Override public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm result = - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.valueOf(algorithm_); - return result == null - ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.UNRECOGNIZED - : result; + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm result = com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.valueOf(algorithm_); + return result == null ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.UNRECOGNIZED : result; } /** - * - * *
      * Required.
      * [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -741,26 +641,20 @@ public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlg
      * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The algorithm to set. * @return This builder for chaining. */ - public Builder setAlgorithm( - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm value) { + public Builder setAlgorithm(com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm value) { if (value == null) { throw new NullPointerException(); } - + algorithm_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required.
      * [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -773,21 +667,18 @@ public Builder setAlgorithm(
      * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearAlgorithm() { - + algorithm_ = 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); } @@ -797,12 +688,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.CryptoKeyVersionTemplate) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.CryptoKeyVersionTemplate) private static final com.google.cloud.kms.v1.CryptoKeyVersionTemplate DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.CryptoKeyVersionTemplate(); } @@ -811,27 +702,27 @@ public static com.google.cloud.kms.v1.CryptoKeyVersionTemplate getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CryptoKeyVersionTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CryptoKeyVersionTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -846,4 +737,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.CryptoKeyVersionTemplate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionTemplateOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionTemplateOrBuilder.java similarity index 70% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionTemplateOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionTemplateOrBuilder.java index e2429110c7f8..06972634e49d 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionTemplateOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionTemplateOrBuilder.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/kms/v1/resources.proto package com.google.cloud.kms.v1; -public interface CryptoKeyVersionTemplateOrBuilder - extends +public interface CryptoKeyVersionTemplateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.CryptoKeyVersionTemplate) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when creating
    * a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this
@@ -34,13 +16,10 @@ public interface CryptoKeyVersionTemplateOrBuilder
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 1; - * * @return The enum numeric value on the wire for protectionLevel. */ int getProtectionLevelValue(); /** - * - * *
    * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when creating
    * a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this
@@ -49,14 +28,11 @@ public interface CryptoKeyVersionTemplateOrBuilder
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 1; - * * @return The protectionLevel. */ com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel(); /** - * - * *
    * Required.
    * [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -69,16 +45,11 @@ public interface CryptoKeyVersionTemplateOrBuilder
    * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for algorithm. */ int getAlgorithmValue(); /** - * - * *
    * Required.
    * [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -91,10 +62,7 @@ public interface CryptoKeyVersionTemplateOrBuilder
    * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The algorithm. */ com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm(); diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DecryptRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DecryptRequest.java similarity index 78% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DecryptRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DecryptRequest.java index 9061d9fd0f15..b4cd05998bd1 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DecryptRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DecryptRequest.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for
  * [KeyManagementService.Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.DecryptRequest}
  */
-public final class DecryptRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DecryptRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.DecryptRequest)
     DecryptRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DecryptRequest.newBuilder() to construct.
   private DecryptRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DecryptRequest() {
     name_ = "";
     ciphertext_ = com.google.protobuf.ByteString.EMPTY;
@@ -46,45 +28,39 @@ private DecryptRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DecryptRequest();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_DecryptRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_DecryptRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_DecryptRequest_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_DecryptRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.DecryptRequest.class,
-            com.google.cloud.kms.v1.DecryptRequest.Builder.class);
+            com.google.cloud.kms.v1.DecryptRequest.class, com.google.cloud.kms.v1.DecryptRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name of the
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] to use for decryption. The
    * server will choose the appropriate version.
    * 
* - * - * string name = 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 @@ -93,33 +69,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] to use for decryption. The
    * server will choose the appropriate version.
    * 
* - * - * string name = 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 { @@ -130,15 +104,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CIPHERTEXT_FIELD_NUMBER = 2; private com.google.protobuf.ByteString ciphertext_; /** - * - * *
    * Required. The encrypted data originally returned in
    * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext].
    * 
* * bytes ciphertext = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The ciphertext. */ @java.lang.Override @@ -149,15 +120,12 @@ public com.google.protobuf.ByteString getCiphertext() { public static final int ADDITIONAL_AUTHENTICATED_DATA_FIELD_NUMBER = 3; private com.google.protobuf.ByteString additionalAuthenticatedData_; /** - * - * *
    * Optional. Optional data that must match the data originally supplied in
    * [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data].
    * 
* * bytes additional_authenticated_data = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The additionalAuthenticatedData. */ @java.lang.Override @@ -168,8 +136,6 @@ public com.google.protobuf.ByteString getAdditionalAuthenticatedData() { public static final int CIPHERTEXT_CRC32C_FIELD_NUMBER = 5; private com.google.protobuf.Int64Value ciphertextCrc32C_; /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext].
@@ -192,10 +158,7 @@ public com.google.protobuf.ByteString getAdditionalAuthenticatedData() {
    * this type.
    * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the ciphertextCrc32c field is set. */ @java.lang.Override @@ -203,8 +166,6 @@ public boolean hasCiphertextCrc32C() { return ciphertextCrc32C_ != null; } /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext].
@@ -227,21 +188,14 @@ public boolean hasCiphertextCrc32C() {
    * this type.
    * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The ciphertextCrc32c. */ @java.lang.Override public com.google.protobuf.Int64Value getCiphertextCrc32C() { - return ciphertextCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : ciphertextCrc32C_; + return ciphertextCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : ciphertextCrc32C_; } /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext].
@@ -264,9 +218,7 @@ public com.google.protobuf.Int64Value getCiphertextCrc32C() {
    * this type.
    * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getCiphertextCrc32COrBuilder() { @@ -276,8 +228,6 @@ public com.google.protobuf.Int64ValueOrBuilder getCiphertextCrc32COrBuilder() { public static final int ADDITIONAL_AUTHENTICATED_DATA_CRC32C_FIELD_NUMBER = 6; private com.google.protobuf.Int64Value additionalAuthenticatedDataCrc32C_; /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
@@ -300,10 +250,7 @@ public com.google.protobuf.Int64ValueOrBuilder getCiphertextCrc32COrBuilder() {
    * this type.
    * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the additionalAuthenticatedDataCrc32c field is set. */ @java.lang.Override @@ -311,8 +258,6 @@ public boolean hasAdditionalAuthenticatedDataCrc32C() { return additionalAuthenticatedDataCrc32C_ != null; } /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
@@ -335,21 +280,14 @@ public boolean hasAdditionalAuthenticatedDataCrc32C() {
    * this type.
    * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The additionalAuthenticatedDataCrc32c. */ @java.lang.Override public com.google.protobuf.Int64Value getAdditionalAuthenticatedDataCrc32C() { - return additionalAuthenticatedDataCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : additionalAuthenticatedDataCrc32C_; + return additionalAuthenticatedDataCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : additionalAuthenticatedDataCrc32C_; } /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
@@ -372,9 +310,7 @@ public com.google.protobuf.Int64Value getAdditionalAuthenticatedDataCrc32C() {
    * this type.
    * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getAdditionalAuthenticatedDataCrc32COrBuilder() { @@ -382,7 +318,6 @@ public com.google.protobuf.Int64ValueOrBuilder getAdditionalAuthenticatedDataCrc } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -394,7 +329,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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,19 +359,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!ciphertext_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, ciphertext_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, ciphertext_); } if (!additionalAuthenticatedData_.isEmpty()) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize(3, additionalAuthenticatedData_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, additionalAuthenticatedData_); } if (ciphertextCrc32C_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCiphertextCrc32C()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCiphertextCrc32C()); } if (additionalAuthenticatedDataCrc32C_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, getAdditionalAuthenticatedDataCrc32C()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getAdditionalAuthenticatedDataCrc32C()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -445,23 +382,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.kms.v1.DecryptRequest)) { return super.equals(obj); } com.google.cloud.kms.v1.DecryptRequest other = (com.google.cloud.kms.v1.DecryptRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getCiphertext().equals(other.getCiphertext())) return false; - if (!getAdditionalAuthenticatedData().equals(other.getAdditionalAuthenticatedData())) - return false; + if (!getName() + .equals(other.getName())) return false; + if (!getCiphertext() + .equals(other.getCiphertext())) return false; + if (!getAdditionalAuthenticatedData() + .equals(other.getAdditionalAuthenticatedData())) return false; if (hasCiphertextCrc32C() != other.hasCiphertextCrc32C()) return false; if (hasCiphertextCrc32C()) { - if (!getCiphertextCrc32C().equals(other.getCiphertextCrc32C())) return false; + if (!getCiphertextCrc32C() + .equals(other.getCiphertextCrc32C())) return false; } - if (hasAdditionalAuthenticatedDataCrc32C() != other.hasAdditionalAuthenticatedDataCrc32C()) - return false; + if (hasAdditionalAuthenticatedDataCrc32C() != other.hasAdditionalAuthenticatedDataCrc32C()) return false; if (hasAdditionalAuthenticatedDataCrc32C()) { if (!getAdditionalAuthenticatedDataCrc32C() .equals(other.getAdditionalAuthenticatedDataCrc32C())) return false; @@ -496,104 +435,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.DecryptRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.DecryptRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.DecryptRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.DecryptRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.DecryptRequest parseFrom( 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.kms.v1.DecryptRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.DecryptRequest parseFrom( - byte[] data, com.google.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.kms.v1.DecryptRequest parseFrom(java.io.InputStream input) 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.kms.v1.DecryptRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.DecryptRequest 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.kms.v1.DecryptRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.DecryptRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.DecryptRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.DecryptRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for
    * [KeyManagementService.Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt].
@@ -601,32 +533,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.DecryptRequest}
    */
-  public static final class Builder extends 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.kms.v1.DecryptRequest)
       com.google.cloud.kms.v1.DecryptRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_DecryptRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_DecryptRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_DecryptRequest_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_DecryptRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.DecryptRequest.class,
-              com.google.cloud.kms.v1.DecryptRequest.Builder.class);
+              com.google.cloud.kms.v1.DecryptRequest.class, com.google.cloud.kms.v1.DecryptRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.DecryptRequest.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();
@@ -652,9 +585,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_DecryptRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_DecryptRequest_descriptor;
     }
 
     @java.lang.Override
@@ -673,8 +606,7 @@ public com.google.cloud.kms.v1.DecryptRequest build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.DecryptRequest buildPartial() {
-      com.google.cloud.kms.v1.DecryptRequest result =
-          new com.google.cloud.kms.v1.DecryptRequest(this);
+      com.google.cloud.kms.v1.DecryptRequest result = new com.google.cloud.kms.v1.DecryptRequest(this);
       result.name_ = name_;
       result.ciphertext_ = ciphertext_;
       result.additionalAuthenticatedData_ = additionalAuthenticatedData_;
@@ -686,8 +618,7 @@ public com.google.cloud.kms.v1.DecryptRequest buildPartial() {
       if (additionalAuthenticatedDataCrc32CBuilder_ == null) {
         result.additionalAuthenticatedDataCrc32C_ = additionalAuthenticatedDataCrc32C_;
       } else {
-        result.additionalAuthenticatedDataCrc32C_ =
-            additionalAuthenticatedDataCrc32CBuilder_.build();
+        result.additionalAuthenticatedDataCrc32C_ = additionalAuthenticatedDataCrc32CBuilder_.build();
       }
       onBuilt();
       return result;
@@ -697,39 +628,38 @@ public com.google.cloud.kms.v1.DecryptRequest 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.kms.v1.DecryptRequest) {
-        return mergeFrom((com.google.cloud.kms.v1.DecryptRequest) other);
+        return mergeFrom((com.google.cloud.kms.v1.DecryptRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -780,46 +710,41 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 18:
-              {
-                ciphertext_ = input.readBytes();
-
-                break;
-              } // case 18
-            case 26:
-              {
-                additionalAuthenticatedData_ = input.readBytes();
-
-                break;
-              } // case 26
-            case 42:
-              {
-                input.readMessage(
-                    getCiphertextCrc32CFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(
-                    getAdditionalAuthenticatedDataCrc32CFieldBuilder().getBuilder(),
-                    extensionRegistry);
-
-                break;
-              } // case 50
-            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: {
+              ciphertext_ = input.readBytes();
+
+              break;
+            } // case 18
+            case 26: {
+              additionalAuthenticatedData_ = input.readBytes();
+
+              break;
+            } // case 26
+            case 42: {
+              input.readMessage(
+                  getCiphertextCrc32CFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getAdditionalAuthenticatedDataCrc32CFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 50
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -832,24 +757,20 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to use for decryption. The
      * server will choose the appropriate version.
      * 
* - * - * string name = 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; @@ -858,25 +779,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to use for decryption. The
      * server will choose the appropriate version.
      * 
* - * - * string name = 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 { @@ -884,73 +802,60 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to use for decryption. The
      * server will choose the appropriate version.
      * 
* - * - * 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
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to use for decryption. The
      * server will choose the appropriate version.
      * 
* - * - * string 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
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to use for decryption. The
      * server will choose the appropriate version.
      * 
* - * - * 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; @@ -958,15 +863,12 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.ByteString ciphertext_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Required. The encrypted data originally returned in
      * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext].
      * 
* * bytes ciphertext = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The ciphertext. */ @java.lang.Override @@ -974,59 +876,48 @@ public com.google.protobuf.ByteString getCiphertext() { return ciphertext_; } /** - * - * *
      * Required. The encrypted data originally returned in
      * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext].
      * 
* * bytes ciphertext = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The ciphertext to set. * @return This builder for chaining. */ public Builder setCiphertext(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ciphertext_ = value; onChanged(); return this; } /** - * - * *
      * Required. The encrypted data originally returned in
      * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext].
      * 
* * bytes ciphertext = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearCiphertext() { - + ciphertext_ = getDefaultInstance().getCiphertext(); onChanged(); return this; } - private com.google.protobuf.ByteString additionalAuthenticatedData_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString additionalAuthenticatedData_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Optional. Optional data that must match the data originally supplied in
      * [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data].
      * 
* - * bytes additional_authenticated_data = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bytes additional_authenticated_data = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The additionalAuthenticatedData. */ @java.lang.Override @@ -1034,43 +925,35 @@ public com.google.protobuf.ByteString getAdditionalAuthenticatedData() { return additionalAuthenticatedData_; } /** - * - * *
      * Optional. Optional data that must match the data originally supplied in
      * [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data].
      * 
* - * bytes additional_authenticated_data = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bytes additional_authenticated_data = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The additionalAuthenticatedData to set. * @return This builder for chaining. */ public Builder setAdditionalAuthenticatedData(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + additionalAuthenticatedData_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Optional data that must match the data originally supplied in
      * [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data].
      * 
* - * bytes additional_authenticated_data = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bytes additional_authenticated_data = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearAdditionalAuthenticatedData() { - + additionalAuthenticatedData_ = getDefaultInstance().getAdditionalAuthenticatedData(); onChanged(); return this; @@ -1078,13 +961,8 @@ public Builder clearAdditionalAuthenticatedData() { private com.google.protobuf.Int64Value ciphertextCrc32C_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> - ciphertextCrc32CBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> ciphertextCrc32CBuilder_; /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext].
@@ -1107,18 +985,13 @@ public Builder clearAdditionalAuthenticatedData() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the ciphertextCrc32c field is set. */ public boolean hasCiphertextCrc32C() { return ciphertextCrc32CBuilder_ != null || ciphertextCrc32C_ != null; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext].
@@ -1141,24 +1014,17 @@ public boolean hasCiphertextCrc32C() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The ciphertextCrc32c. */ public com.google.protobuf.Int64Value getCiphertextCrc32C() { if (ciphertextCrc32CBuilder_ == null) { - return ciphertextCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : ciphertextCrc32C_; + return ciphertextCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : ciphertextCrc32C_; } else { return ciphertextCrc32CBuilder_.getMessage(); } } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext].
@@ -1181,9 +1047,7 @@ public com.google.protobuf.Int64Value getCiphertextCrc32C() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setCiphertextCrc32C(com.google.protobuf.Int64Value value) { if (ciphertextCrc32CBuilder_ == null) { @@ -1199,8 +1063,6 @@ public Builder setCiphertextCrc32C(com.google.protobuf.Int64Value value) { return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext].
@@ -1223,11 +1085,10 @@ public Builder setCiphertextCrc32C(com.google.protobuf.Int64Value value) {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setCiphertextCrc32C(com.google.protobuf.Int64Value.Builder builderForValue) { + public Builder setCiphertextCrc32C( + com.google.protobuf.Int64Value.Builder builderForValue) { if (ciphertextCrc32CBuilder_ == null) { ciphertextCrc32C_ = builderForValue.build(); onChanged(); @@ -1238,8 +1099,6 @@ public Builder setCiphertextCrc32C(com.google.protobuf.Int64Value.Builder builde return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext].
@@ -1262,17 +1121,13 @@ public Builder setCiphertextCrc32C(com.google.protobuf.Int64Value.Builder builde
      * this type.
      * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeCiphertextCrc32C(com.google.protobuf.Int64Value value) { if (ciphertextCrc32CBuilder_ == null) { if (ciphertextCrc32C_ != null) { ciphertextCrc32C_ = - com.google.protobuf.Int64Value.newBuilder(ciphertextCrc32C_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Int64Value.newBuilder(ciphertextCrc32C_).mergeFrom(value).buildPartial(); } else { ciphertextCrc32C_ = value; } @@ -1284,8 +1139,6 @@ public Builder mergeCiphertextCrc32C(com.google.protobuf.Int64Value value) { return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext].
@@ -1308,9 +1161,7 @@ public Builder mergeCiphertextCrc32C(com.google.protobuf.Int64Value value) {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearCiphertextCrc32C() { if (ciphertextCrc32CBuilder_ == null) { @@ -1324,8 +1175,6 @@ public Builder clearCiphertextCrc32C() { return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext].
@@ -1348,18 +1197,14 @@ public Builder clearCiphertextCrc32C() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Int64Value.Builder getCiphertextCrc32CBuilder() { - + onChanged(); return getCiphertextCrc32CFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext].
@@ -1382,22 +1227,17 @@ public com.google.protobuf.Int64Value.Builder getCiphertextCrc32CBuilder() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Int64ValueOrBuilder getCiphertextCrc32COrBuilder() { if (ciphertextCrc32CBuilder_ != null) { return ciphertextCrc32CBuilder_.getMessageOrBuilder(); } else { - return ciphertextCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : ciphertextCrc32C_; + return ciphertextCrc32C_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : ciphertextCrc32C_; } } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext].
@@ -1420,22 +1260,17 @@ public com.google.protobuf.Int64ValueOrBuilder getCiphertextCrc32COrBuilder() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getCiphertextCrc32CFieldBuilder() { if (ciphertextCrc32CBuilder_ == null) { - ciphertextCrc32CBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder>( - getCiphertextCrc32C(), getParentForChildren(), isClean()); + ciphertextCrc32CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getCiphertextCrc32C(), + getParentForChildren(), + isClean()); ciphertextCrc32C_ = null; } return ciphertextCrc32CBuilder_; @@ -1443,13 +1278,8 @@ public com.google.protobuf.Int64ValueOrBuilder getCiphertextCrc32COrBuilder() { private com.google.protobuf.Int64Value additionalAuthenticatedDataCrc32C_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> - additionalAuthenticatedDataCrc32CBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> additionalAuthenticatedDataCrc32CBuilder_; /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
@@ -1472,19 +1302,13 @@ public com.google.protobuf.Int64ValueOrBuilder getCiphertextCrc32COrBuilder() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the additionalAuthenticatedDataCrc32c field is set. */ public boolean hasAdditionalAuthenticatedDataCrc32C() { - return additionalAuthenticatedDataCrc32CBuilder_ != null - || additionalAuthenticatedDataCrc32C_ != null; + return additionalAuthenticatedDataCrc32CBuilder_ != null || additionalAuthenticatedDataCrc32C_ != null; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
@@ -1507,24 +1331,17 @@ public boolean hasAdditionalAuthenticatedDataCrc32C() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The additionalAuthenticatedDataCrc32c. */ public com.google.protobuf.Int64Value getAdditionalAuthenticatedDataCrc32C() { if (additionalAuthenticatedDataCrc32CBuilder_ == null) { - return additionalAuthenticatedDataCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : additionalAuthenticatedDataCrc32C_; + return additionalAuthenticatedDataCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : additionalAuthenticatedDataCrc32C_; } else { return additionalAuthenticatedDataCrc32CBuilder_.getMessage(); } } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
@@ -1547,9 +1364,7 @@ public com.google.protobuf.Int64Value getAdditionalAuthenticatedDataCrc32C() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAdditionalAuthenticatedDataCrc32C(com.google.protobuf.Int64Value value) { if (additionalAuthenticatedDataCrc32CBuilder_ == null) { @@ -1565,8 +1380,6 @@ public Builder setAdditionalAuthenticatedDataCrc32C(com.google.protobuf.Int64Val return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
@@ -1589,9 +1402,7 @@ public Builder setAdditionalAuthenticatedDataCrc32C(com.google.protobuf.Int64Val
      * this type.
      * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAdditionalAuthenticatedDataCrc32C( com.google.protobuf.Int64Value.Builder builderForValue) { @@ -1605,8 +1416,6 @@ public Builder setAdditionalAuthenticatedDataCrc32C( return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
@@ -1629,17 +1438,13 @@ public Builder setAdditionalAuthenticatedDataCrc32C(
      * this type.
      * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeAdditionalAuthenticatedDataCrc32C(com.google.protobuf.Int64Value value) { if (additionalAuthenticatedDataCrc32CBuilder_ == null) { if (additionalAuthenticatedDataCrc32C_ != null) { additionalAuthenticatedDataCrc32C_ = - com.google.protobuf.Int64Value.newBuilder(additionalAuthenticatedDataCrc32C_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Int64Value.newBuilder(additionalAuthenticatedDataCrc32C_).mergeFrom(value).buildPartial(); } else { additionalAuthenticatedDataCrc32C_ = value; } @@ -1651,8 +1456,6 @@ public Builder mergeAdditionalAuthenticatedDataCrc32C(com.google.protobuf.Int64V return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
@@ -1675,9 +1478,7 @@ public Builder mergeAdditionalAuthenticatedDataCrc32C(com.google.protobuf.Int64V
      * this type.
      * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAdditionalAuthenticatedDataCrc32C() { if (additionalAuthenticatedDataCrc32CBuilder_ == null) { @@ -1691,8 +1492,6 @@ public Builder clearAdditionalAuthenticatedDataCrc32C() { return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
@@ -1715,18 +1514,14 @@ public Builder clearAdditionalAuthenticatedDataCrc32C() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Int64Value.Builder getAdditionalAuthenticatedDataCrc32CBuilder() { - + onChanged(); return getAdditionalAuthenticatedDataCrc32CFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
@@ -1749,22 +1544,17 @@ public com.google.protobuf.Int64Value.Builder getAdditionalAuthenticatedDataCrc3
      * this type.
      * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Int64ValueOrBuilder getAdditionalAuthenticatedDataCrc32COrBuilder() { if (additionalAuthenticatedDataCrc32CBuilder_ != null) { return additionalAuthenticatedDataCrc32CBuilder_.getMessageOrBuilder(); } else { - return additionalAuthenticatedDataCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : additionalAuthenticatedDataCrc32C_; + return additionalAuthenticatedDataCrc32C_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : additionalAuthenticatedDataCrc32C_; } } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
@@ -1787,29 +1577,24 @@ public com.google.protobuf.Int64ValueOrBuilder getAdditionalAuthenticatedDataCrc
      * this type.
      * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getAdditionalAuthenticatedDataCrc32CFieldBuilder() { if (additionalAuthenticatedDataCrc32CBuilder_ == null) { - additionalAuthenticatedDataCrc32CBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder>( - getAdditionalAuthenticatedDataCrc32C(), getParentForChildren(), isClean()); + additionalAuthenticatedDataCrc32CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getAdditionalAuthenticatedDataCrc32C(), + getParentForChildren(), + isClean()); additionalAuthenticatedDataCrc32C_ = null; } return additionalAuthenticatedDataCrc32CBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1819,12 +1604,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.DecryptRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.DecryptRequest) private static final com.google.cloud.kms.v1.DecryptRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.DecryptRequest(); } @@ -1833,27 +1618,27 @@ public static com.google.cloud.kms.v1.DecryptRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DecryptRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DecryptRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1868,4 +1653,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.DecryptRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DecryptRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DecryptRequestOrBuilder.java similarity index 84% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DecryptRequestOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DecryptRequestOrBuilder.java index 7967aeeac26a..0665d170e664 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DecryptRequestOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DecryptRequestOrBuilder.java @@ -1,92 +1,59 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface DecryptRequestOrBuilder - extends +public interface DecryptRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.DecryptRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] to use for decryption. The
    * server will choose the appropriate version.
    * 
* - * - * string name = 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
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] to use for decryption. The
    * server will choose the appropriate version.
    * 
* - * - * string name = 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 encrypted data originally returned in
    * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext].
    * 
* * bytes ciphertext = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The ciphertext. */ com.google.protobuf.ByteString getCiphertext(); /** - * - * *
    * Optional. Optional data that must match the data originally supplied in
    * [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data].
    * 
* * bytes additional_authenticated_data = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The additionalAuthenticatedData. */ com.google.protobuf.ByteString getAdditionalAuthenticatedData(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext].
@@ -109,16 +76,11 @@ public interface DecryptRequestOrBuilder
    * this type.
    * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the ciphertextCrc32c field is set. */ boolean hasCiphertextCrc32C(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext].
@@ -141,16 +103,11 @@ public interface DecryptRequestOrBuilder
    * this type.
    * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The ciphertextCrc32c. */ com.google.protobuf.Int64Value getCiphertextCrc32C(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext].
@@ -173,15 +130,11 @@ public interface DecryptRequestOrBuilder
    * this type.
    * 
* - * - * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.Int64ValueOrBuilder getCiphertextCrc32COrBuilder(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
@@ -204,16 +157,11 @@ public interface DecryptRequestOrBuilder
    * this type.
    * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the additionalAuthenticatedDataCrc32c field is set. */ boolean hasAdditionalAuthenticatedDataCrc32C(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
@@ -236,16 +184,11 @@ public interface DecryptRequestOrBuilder
    * this type.
    * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The additionalAuthenticatedDataCrc32c. */ com.google.protobuf.Int64Value getAdditionalAuthenticatedDataCrc32C(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
@@ -268,9 +211,7 @@ public interface DecryptRequestOrBuilder
    * this type.
    * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.Int64ValueOrBuilder getAdditionalAuthenticatedDataCrc32COrBuilder(); } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DecryptResponse.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DecryptResponse.java similarity index 79% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DecryptResponse.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DecryptResponse.java index 0ce386e9d145..1d162193ddce 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DecryptResponse.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DecryptResponse.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Response message for
  * [KeyManagementService.Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.DecryptResponse}
  */
-public final class DecryptResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DecryptResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.DecryptResponse)
     DecryptResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DecryptResponse.newBuilder() to construct.
   private DecryptResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DecryptResponse() {
     plaintext_ = com.google.protobuf.ByteString.EMPTY;
     protectionLevel_ = 0;
@@ -45,42 +27,38 @@ private DecryptResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DecryptResponse();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_DecryptResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_DecryptResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_DecryptResponse_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_DecryptResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.DecryptResponse.class,
-            com.google.cloud.kms.v1.DecryptResponse.Builder.class);
+            com.google.cloud.kms.v1.DecryptResponse.class, com.google.cloud.kms.v1.DecryptResponse.Builder.class);
   }
 
   public static final int PLAINTEXT_FIELD_NUMBER = 1;
   private com.google.protobuf.ByteString plaintext_;
   /**
-   *
-   *
    * 
    * The decrypted data originally supplied in
    * [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext].
    * 
* * bytes plaintext = 1; - * * @return The plaintext. */ @java.lang.Override @@ -91,8 +69,6 @@ public com.google.protobuf.ByteString getPlaintext() { public static final int PLAINTEXT_CRC32C_FIELD_NUMBER = 2; private com.google.protobuf.Int64Value plaintextCrc32C_; /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext].
@@ -114,7 +90,6 @@ public com.google.protobuf.ByteString getPlaintext() {
    * 
* * .google.protobuf.Int64Value plaintext_crc32c = 2; - * * @return Whether the plaintextCrc32c field is set. */ @java.lang.Override @@ -122,8 +97,6 @@ public boolean hasPlaintextCrc32C() { return plaintextCrc32C_ != null; } /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext].
@@ -145,18 +118,13 @@ public boolean hasPlaintextCrc32C() {
    * 
* * .google.protobuf.Int64Value plaintext_crc32c = 2; - * * @return The plaintextCrc32c. */ @java.lang.Override public com.google.protobuf.Int64Value getPlaintextCrc32C() { - return plaintextCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : plaintextCrc32C_; + return plaintextCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : plaintextCrc32C_; } /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext].
@@ -187,14 +155,11 @@ public com.google.protobuf.Int64ValueOrBuilder getPlaintextCrc32COrBuilder() {
   public static final int USED_PRIMARY_FIELD_NUMBER = 3;
   private boolean usedPrimary_;
   /**
-   *
-   *
    * 
    * Whether the Decryption was performed using the primary key version.
    * 
* * bool used_primary = 3; - * * @return The usedPrimary. */ @java.lang.Override @@ -205,8 +170,6 @@ public boolean getUsedPrimary() { public static final int PROTECTION_LEVEL_FIELD_NUMBER = 4; private int protectionLevel_; /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -214,16 +177,12 @@ public boolean getUsedPrimary() {
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 4; - * * @return The enum numeric value on the wire for protectionLevel. */ - @java.lang.Override - public int getProtectionLevelValue() { + @java.lang.Override public int getProtectionLevelValue() { return protectionLevel_; } /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -231,19 +190,15 @@ public int getProtectionLevelValue() {
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 4; - * * @return The protectionLevel. */ - @java.lang.Override - public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { + @java.lang.Override public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.ProtectionLevel result = - com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); + com.google.cloud.kms.v1.ProtectionLevel result = com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); return result == null ? com.google.cloud.kms.v1.ProtectionLevel.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,7 +210,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!plaintext_.isEmpty()) { output.writeBytes(1, plaintext_); } @@ -265,8 +221,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (usedPrimary_ != false) { output.writeBool(3, usedPrimary_); } - if (protectionLevel_ - != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { + if (protectionLevel_ != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(4, protectionLevel_); } getUnknownFields().writeTo(output); @@ -279,17 +234,20 @@ public int getSerializedSize() { size = 0; if (!plaintext_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, plaintext_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, plaintext_); } if (plaintextCrc32C_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPlaintextCrc32C()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPlaintextCrc32C()); } if (usedPrimary_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, usedPrimary_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, usedPrimary_); } - if (protectionLevel_ - != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, protectionLevel_); + if (protectionLevel_ != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, protectionLevel_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -299,19 +257,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.kms.v1.DecryptResponse)) { return super.equals(obj); } com.google.cloud.kms.v1.DecryptResponse other = (com.google.cloud.kms.v1.DecryptResponse) obj; - if (!getPlaintext().equals(other.getPlaintext())) return false; + if (!getPlaintext() + .equals(other.getPlaintext())) return false; if (hasPlaintextCrc32C() != other.hasPlaintextCrc32C()) return false; if (hasPlaintextCrc32C()) { - if (!getPlaintextCrc32C().equals(other.getPlaintextCrc32C())) return false; + if (!getPlaintextCrc32C() + .equals(other.getPlaintextCrc32C())) return false; } - if (getUsedPrimary() != other.getUsedPrimary()) return false; + if (getUsedPrimary() + != other.getUsedPrimary()) return false; if (protectionLevel_ != other.protectionLevel_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -331,7 +292,8 @@ public int hashCode() { hash = (53 * hash) + getPlaintextCrc32C().hashCode(); } hash = (37 * hash) + USED_PRIMARY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUsedPrimary()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUsedPrimary()); hash = (37 * hash) + PROTECTION_LEVEL_FIELD_NUMBER; hash = (53 * hash) + protectionLevel_; hash = (29 * hash) + getUnknownFields().hashCode(); @@ -339,104 +301,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.DecryptResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.DecryptResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.DecryptResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.DecryptResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.DecryptResponse parseFrom( 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.kms.v1.DecryptResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.DecryptResponse parseFrom( - byte[] data, com.google.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.kms.v1.DecryptResponse parseFrom(java.io.InputStream input) 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.kms.v1.DecryptResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.DecryptResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.DecryptResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.DecryptResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.DecryptResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.DecryptResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.DecryptResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for
    * [KeyManagementService.Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt].
@@ -444,32 +399,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.DecryptResponse}
    */
-  public static final class Builder extends 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.kms.v1.DecryptResponse)
       com.google.cloud.kms.v1.DecryptResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_DecryptResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_DecryptResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_DecryptResponse_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_DecryptResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.DecryptResponse.class,
-              com.google.cloud.kms.v1.DecryptResponse.Builder.class);
+              com.google.cloud.kms.v1.DecryptResponse.class, com.google.cloud.kms.v1.DecryptResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.DecryptResponse.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();
@@ -489,9 +445,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_DecryptResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_DecryptResponse_descriptor;
     }
 
     @java.lang.Override
@@ -510,8 +466,7 @@ public com.google.cloud.kms.v1.DecryptResponse build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.DecryptResponse buildPartial() {
-      com.google.cloud.kms.v1.DecryptResponse result =
-          new com.google.cloud.kms.v1.DecryptResponse(this);
+      com.google.cloud.kms.v1.DecryptResponse result = new com.google.cloud.kms.v1.DecryptResponse(this);
       result.plaintext_ = plaintext_;
       if (plaintextCrc32CBuilder_ == null) {
         result.plaintextCrc32C_ = plaintextCrc32C_;
@@ -528,39 +483,38 @@ public com.google.cloud.kms.v1.DecryptResponse 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.kms.v1.DecryptResponse) {
-        return mergeFrom((com.google.cloud.kms.v1.DecryptResponse) other);
+        return mergeFrom((com.google.cloud.kms.v1.DecryptResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -607,37 +561,34 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                plaintext_ = input.readBytes();
+            case 10: {
+              plaintext_ = input.readBytes();
 
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getPlaintextCrc32CFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getPlaintextCrc32CFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 18
-            case 24:
-              {
-                usedPrimary_ = input.readBool();
+              break;
+            } // case 18
+            case 24: {
+              usedPrimary_ = input.readBool();
 
-                break;
-              } // case 24
-            case 32:
-              {
-                protectionLevel_ = input.readEnum();
+              break;
+            } // case 24
+            case 32: {
+              protectionLevel_ = input.readEnum();
 
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -650,15 +601,12 @@ public Builder mergeFrom(
 
     private com.google.protobuf.ByteString plaintext_ = com.google.protobuf.ByteString.EMPTY;
     /**
-     *
-     *
      * 
      * The decrypted data originally supplied in
      * [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext].
      * 
* * bytes plaintext = 1; - * * @return The plaintext. */ @java.lang.Override @@ -666,41 +614,35 @@ public com.google.protobuf.ByteString getPlaintext() { return plaintext_; } /** - * - * *
      * The decrypted data originally supplied in
      * [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext].
      * 
* * bytes plaintext = 1; - * * @param value The plaintext to set. * @return This builder for chaining. */ public Builder setPlaintext(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + plaintext_ = value; onChanged(); return this; } /** - * - * *
      * The decrypted data originally supplied in
      * [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext].
      * 
* * bytes plaintext = 1; - * * @return This builder for chaining. */ public Builder clearPlaintext() { - + plaintext_ = getDefaultInstance().getPlaintext(); onChanged(); return this; @@ -708,13 +650,8 @@ public Builder clearPlaintext() { private com.google.protobuf.Int64Value plaintextCrc32C_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> - plaintextCrc32CBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> plaintextCrc32CBuilder_; /** - * - * *
      * Integrity verification field. A CRC32C checksum of the returned
      * [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext].
@@ -736,15 +673,12 @@ public Builder clearPlaintext() {
      * 
* * .google.protobuf.Int64Value plaintext_crc32c = 2; - * * @return Whether the plaintextCrc32c field is set. */ public boolean hasPlaintextCrc32C() { return plaintextCrc32CBuilder_ != null || plaintextCrc32C_ != null; } /** - * - * *
      * Integrity verification field. A CRC32C checksum of the returned
      * [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext].
@@ -766,21 +700,16 @@ public boolean hasPlaintextCrc32C() {
      * 
* * .google.protobuf.Int64Value plaintext_crc32c = 2; - * * @return The plaintextCrc32c. */ public com.google.protobuf.Int64Value getPlaintextCrc32C() { if (plaintextCrc32CBuilder_ == null) { - return plaintextCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : plaintextCrc32C_; + return plaintextCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : plaintextCrc32C_; } else { return plaintextCrc32CBuilder_.getMessage(); } } /** - * - * *
      * Integrity verification field. A CRC32C checksum of the returned
      * [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext].
@@ -817,8 +746,6 @@ public Builder setPlaintextCrc32C(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext].
@@ -841,7 +768,8 @@ public Builder setPlaintextCrc32C(com.google.protobuf.Int64Value value) {
      *
      * .google.protobuf.Int64Value plaintext_crc32c = 2;
      */
-    public Builder setPlaintextCrc32C(com.google.protobuf.Int64Value.Builder builderForValue) {
+    public Builder setPlaintextCrc32C(
+        com.google.protobuf.Int64Value.Builder builderForValue) {
       if (plaintextCrc32CBuilder_ == null) {
         plaintextCrc32C_ = builderForValue.build();
         onChanged();
@@ -852,8 +780,6 @@ public Builder setPlaintextCrc32C(com.google.protobuf.Int64Value.Builder builder
       return this;
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext].
@@ -880,9 +806,7 @@ public Builder mergePlaintextCrc32C(com.google.protobuf.Int64Value value) {
       if (plaintextCrc32CBuilder_ == null) {
         if (plaintextCrc32C_ != null) {
           plaintextCrc32C_ =
-              com.google.protobuf.Int64Value.newBuilder(plaintextCrc32C_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Int64Value.newBuilder(plaintextCrc32C_).mergeFrom(value).buildPartial();
         } else {
           plaintextCrc32C_ = value;
         }
@@ -894,8 +818,6 @@ public Builder mergePlaintextCrc32C(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext].
@@ -930,8 +852,6 @@ public Builder clearPlaintextCrc32C() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext].
@@ -955,13 +875,11 @@ public Builder clearPlaintextCrc32C() {
      * .google.protobuf.Int64Value plaintext_crc32c = 2;
      */
     public com.google.protobuf.Int64Value.Builder getPlaintextCrc32CBuilder() {
-
+      
       onChanged();
       return getPlaintextCrc32CFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext].
@@ -988,14 +906,11 @@ public com.google.protobuf.Int64ValueOrBuilder getPlaintextCrc32COrBuilder() {
       if (plaintextCrc32CBuilder_ != null) {
         return plaintextCrc32CBuilder_.getMessageOrBuilder();
       } else {
-        return plaintextCrc32C_ == null
-            ? com.google.protobuf.Int64Value.getDefaultInstance()
-            : plaintextCrc32C_;
+        return plaintextCrc32C_ == null ?
+            com.google.protobuf.Int64Value.getDefaultInstance() : plaintextCrc32C_;
       }
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext].
@@ -1019,32 +934,26 @@ public com.google.protobuf.Int64ValueOrBuilder getPlaintextCrc32COrBuilder() {
      * .google.protobuf.Int64Value plaintext_crc32c = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Int64Value,
-            com.google.protobuf.Int64Value.Builder,
-            com.google.protobuf.Int64ValueOrBuilder>
+        com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> 
         getPlaintextCrc32CFieldBuilder() {
       if (plaintextCrc32CBuilder_ == null) {
-        plaintextCrc32CBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Int64Value,
-                com.google.protobuf.Int64Value.Builder,
-                com.google.protobuf.Int64ValueOrBuilder>(
-                getPlaintextCrc32C(), getParentForChildren(), isClean());
+        plaintextCrc32CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
+                getPlaintextCrc32C(),
+                getParentForChildren(),
+                isClean());
         plaintextCrc32C_ = null;
       }
       return plaintextCrc32CBuilder_;
     }
 
-    private boolean usedPrimary_;
+    private boolean usedPrimary_ ;
     /**
-     *
-     *
      * 
      * Whether the Decryption was performed using the primary key version.
      * 
* * bool used_primary = 3; - * * @return The usedPrimary. */ @java.lang.Override @@ -1052,36 +961,30 @@ public boolean getUsedPrimary() { return usedPrimary_; } /** - * - * *
      * Whether the Decryption was performed using the primary key version.
      * 
* * bool used_primary = 3; - * * @param value The usedPrimary to set. * @return This builder for chaining. */ public Builder setUsedPrimary(boolean value) { - + usedPrimary_ = value; onChanged(); return this; } /** - * - * *
      * Whether the Decryption was performed using the primary key version.
      * 
* * bool used_primary = 3; - * * @return This builder for chaining. */ public Builder clearUsedPrimary() { - + usedPrimary_ = false; onChanged(); return this; @@ -1089,8 +992,6 @@ public Builder clearUsedPrimary() { private int protectionLevel_ = 0; /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -1098,16 +999,12 @@ public Builder clearUsedPrimary() {
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 4; - * * @return The enum numeric value on the wire for protectionLevel. */ - @java.lang.Override - public int getProtectionLevelValue() { + @java.lang.Override public int getProtectionLevelValue() { return protectionLevel_; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -1115,19 +1012,16 @@ public int getProtectionLevelValue() {
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 4; - * * @param value The enum numeric value on the wire for protectionLevel to set. * @return This builder for chaining. */ public Builder setProtectionLevelValue(int value) { - + protectionLevel_ = value; onChanged(); return this; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -1135,19 +1029,15 @@ public Builder setProtectionLevelValue(int value) {
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 4; - * * @return The protectionLevel. */ @java.lang.Override public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.ProtectionLevel result = - com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); + com.google.cloud.kms.v1.ProtectionLevel result = com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); return result == null ? com.google.cloud.kms.v1.ProtectionLevel.UNRECOGNIZED : result; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -1155,7 +1045,6 @@ public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() {
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 4; - * * @param value The protectionLevel to set. * @return This builder for chaining. */ @@ -1163,14 +1052,12 @@ public Builder setProtectionLevel(com.google.cloud.kms.v1.ProtectionLevel value) if (value == null) { throw new NullPointerException(); } - + protectionLevel_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -1178,18 +1065,17 @@ public Builder setProtectionLevel(com.google.cloud.kms.v1.ProtectionLevel value)
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 4; - * * @return This builder for chaining. */ public Builder clearProtectionLevel() { - + protectionLevel_ = 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); } @@ -1199,12 +1085,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.DecryptResponse) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.DecryptResponse) private static final com.google.cloud.kms.v1.DecryptResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.DecryptResponse(); } @@ -1213,27 +1099,27 @@ public static com.google.cloud.kms.v1.DecryptResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DecryptResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DecryptResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1248,4 +1134,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.DecryptResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DecryptResponseOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DecryptResponseOrBuilder.java similarity index 88% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DecryptResponseOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DecryptResponseOrBuilder.java index 4d2d47c6436d..2324ddca6ee5 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DecryptResponseOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DecryptResponseOrBuilder.java @@ -1,45 +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/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface DecryptResponseOrBuilder - extends +public interface DecryptResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.DecryptResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The decrypted data originally supplied in
    * [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext].
    * 
* * bytes plaintext = 1; - * * @return The plaintext. */ com.google.protobuf.ByteString getPlaintext(); /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext].
@@ -61,13 +40,10 @@ public interface DecryptResponseOrBuilder
    * 
* * .google.protobuf.Int64Value plaintext_crc32c = 2; - * * @return Whether the plaintextCrc32c field is set. */ boolean hasPlaintextCrc32C(); /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext].
@@ -89,13 +65,10 @@ public interface DecryptResponseOrBuilder
    * 
* * .google.protobuf.Int64Value plaintext_crc32c = 2; - * * @return The plaintextCrc32c. */ com.google.protobuf.Int64Value getPlaintextCrc32C(); /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext].
@@ -121,21 +94,16 @@ public interface DecryptResponseOrBuilder
   com.google.protobuf.Int64ValueOrBuilder getPlaintextCrc32COrBuilder();
 
   /**
-   *
-   *
    * 
    * Whether the Decryption was performed using the primary key version.
    * 
* * bool used_primary = 3; - * * @return The usedPrimary. */ boolean getUsedPrimary(); /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -143,13 +111,10 @@ public interface DecryptResponseOrBuilder
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 4; - * * @return The enum numeric value on the wire for protectionLevel. */ int getProtectionLevelValue(); /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -157,7 +122,6 @@ public interface DecryptResponseOrBuilder
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 4; - * * @return The protectionLevel. */ com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel(); diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DestroyCryptoKeyVersionRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DestroyCryptoKeyVersionRequest.java similarity index 61% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DestroyCryptoKeyVersionRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DestroyCryptoKeyVersionRequest.java index 5a193ef62396..86463b83497a 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DestroyCryptoKeyVersionRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DestroyCryptoKeyVersionRequest.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for
  * [KeyManagementService.DestroyCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DestroyCryptoKeyVersion].
@@ -28,61 +11,53 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.DestroyCryptoKeyVersionRequest}
  */
-public final class DestroyCryptoKeyVersionRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DestroyCryptoKeyVersionRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.DestroyCryptoKeyVersionRequest)
     DestroyCryptoKeyVersionRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DestroyCryptoKeyVersionRequest.newBuilder() to construct.
-  private DestroyCryptoKeyVersionRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private DestroyCryptoKeyVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DestroyCryptoKeyVersionRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DestroyCryptoKeyVersionRequest();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_DestroyCryptoKeyVersionRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_DestroyCryptoKeyVersionRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_DestroyCryptoKeyVersionRequest_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_DestroyCryptoKeyVersionRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest.class,
-            com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest.Builder.class);
+            com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest.class, com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to destroy.
    * 
* - * - * string name = 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 +66,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to destroy.
    * 
* - * - * string name = 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,7 +98,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,7 +109,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -161,15 +134,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest)) { return super.equals(obj); } - com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest other = - (com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest) obj; + com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest other = (com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -189,104 +162,96 @@ public int hashCode() { } public static com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest 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.kms.v1.DestroyCryptoKeyVersionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.DestroyCryptoKeyVersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest parseFrom( 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.kms.v1.DestroyCryptoKeyVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest parseFrom( - byte[] data, com.google.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.kms.v1.DestroyCryptoKeyVersionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.DestroyCryptoKeyVersionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.DestroyCryptoKeyVersionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.DestroyCryptoKeyVersionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.DestroyCryptoKeyVersionRequest prototype) { + public static Builder newBuilder(com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for
    * [KeyManagementService.DestroyCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DestroyCryptoKeyVersion].
@@ -294,32 +259,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.DestroyCryptoKeyVersionRequest}
    */
-  public static final class Builder extends 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.kms.v1.DestroyCryptoKeyVersionRequest)
       com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_DestroyCryptoKeyVersionRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_DestroyCryptoKeyVersionRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_DestroyCryptoKeyVersionRequest_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_DestroyCryptoKeyVersionRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest.class,
-              com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest.Builder.class);
+              com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest.class, com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -329,9 +295,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_DestroyCryptoKeyVersionRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_DestroyCryptoKeyVersionRequest_descriptor;
     }
 
     @java.lang.Override
@@ -350,8 +316,7 @@ public com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest buildPartial() {
-      com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest result =
-          new com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest(this);
+      com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest result = new com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -361,39 +326,38 @@ public com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest 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.kms.v1.DestroyCryptoKeyVersionRequest) {
-        return mergeFrom((com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest) other);
+        return mergeFrom((com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -401,8 +365,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest other) {
-      if (other == com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -433,19 +396,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) {
@@ -458,23 +419,19 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to destroy.
      * 
* - * - * string name = 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; @@ -483,24 +440,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to destroy.
      * 
* - * - * string name = 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 { @@ -508,77 +462,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to destroy.
      * 
* - * - * 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
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to destroy.
      * 
* - * - * string 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
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to destroy.
      * 
* - * - * 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); } @@ -588,12 +529,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.DestroyCryptoKeyVersionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.DestroyCryptoKeyVersionRequest) private static final com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest(); } @@ -602,27 +543,27 @@ public static com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DestroyCryptoKeyVersionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DestroyCryptoKeyVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -637,4 +578,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DestroyCryptoKeyVersionRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DestroyCryptoKeyVersionRequestOrBuilder.java new file mode 100644 index 000000000000..815cde1f2667 --- /dev/null +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DestroyCryptoKeyVersionRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/service.proto + +package com.google.cloud.kms.v1; + +public interface DestroyCryptoKeyVersionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.DestroyCryptoKeyVersionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the
+   * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to destroy.
+   * 
+ * + * 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
+   * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to destroy.
+   * 
+ * + * 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-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/Digest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/Digest.java similarity index 69% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/Digest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/Digest.java index b71aa9ca87fe..f4aeb340e342 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/Digest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/Digest.java @@ -1,81 +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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * A [Digest][google.cloud.kms.v1.Digest] holds a cryptographic message digest.
  * 
* * Protobuf type {@code google.cloud.kms.v1.Digest} */ -public final class Digest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Digest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.Digest) DigestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Digest.newBuilder() to construct. private Digest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Digest() {} + private Digest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Digest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_Digest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.v1.KmsProto - .internal_static_google_cloud_kms_v1_Digest_fieldAccessorTable + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_Digest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.kms.v1.Digest.class, com.google.cloud.kms.v1.Digest.Builder.class); } private int digestCase_ = 0; private java.lang.Object digest_; - public enum DigestCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SHA256(1), SHA384(2), SHA512(3), DIGEST_NOT_SET(0); private final int value; - private DigestCase(int value) { this.value = value; } @@ -91,38 +72,31 @@ public static DigestCase valueOf(int value) { public static DigestCase forNumber(int value) { switch (value) { - case 1: - return SHA256; - case 2: - return SHA384; - case 3: - return SHA512; - case 0: - return DIGEST_NOT_SET; - default: - return null; + case 1: return SHA256; + case 2: return SHA384; + case 3: return SHA512; + case 0: return DIGEST_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DigestCase getDigestCase() { - return DigestCase.forNumber(digestCase_); + public DigestCase + getDigestCase() { + return DigestCase.forNumber( + digestCase_); } public static final int SHA256_FIELD_NUMBER = 1; /** - * - * *
    * A message digest produced with the SHA-256 algorithm.
    * 
* * bytes sha256 = 1; - * * @return Whether the sha256 field is set. */ @java.lang.Override @@ -130,14 +104,11 @@ public boolean hasSha256() { return digestCase_ == 1; } /** - * - * *
    * A message digest produced with the SHA-256 algorithm.
    * 
* * bytes sha256 = 1; - * * @return The sha256. */ @java.lang.Override @@ -150,14 +121,11 @@ public com.google.protobuf.ByteString getSha256() { public static final int SHA384_FIELD_NUMBER = 2; /** - * - * *
    * A message digest produced with the SHA-384 algorithm.
    * 
* * bytes sha384 = 2; - * * @return Whether the sha384 field is set. */ @java.lang.Override @@ -165,14 +133,11 @@ public boolean hasSha384() { return digestCase_ == 2; } /** - * - * *
    * A message digest produced with the SHA-384 algorithm.
    * 
* * bytes sha384 = 2; - * * @return The sha384. */ @java.lang.Override @@ -185,14 +150,11 @@ public com.google.protobuf.ByteString getSha384() { public static final int SHA512_FIELD_NUMBER = 3; /** - * - * *
    * A message digest produced with the SHA-512 algorithm.
    * 
* * bytes sha512 = 3; - * * @return Whether the sha512 field is set. */ @java.lang.Override @@ -200,14 +162,11 @@ public boolean hasSha512() { return digestCase_ == 3; } /** - * - * *
    * A message digest produced with the SHA-512 algorithm.
    * 
* * bytes sha512 = 3; - * * @return The sha512. */ @java.lang.Override @@ -219,7 +178,6 @@ public com.google.protobuf.ByteString getSha512() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,15 +189,19 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (digestCase_ == 1) { - output.writeBytes(1, (com.google.protobuf.ByteString) digest_); + output.writeBytes( + 1, (com.google.protobuf.ByteString) digest_); } if (digestCase_ == 2) { - output.writeBytes(2, (com.google.protobuf.ByteString) digest_); + output.writeBytes( + 2, (com.google.protobuf.ByteString) digest_); } if (digestCase_ == 3) { - output.writeBytes(3, (com.google.protobuf.ByteString) digest_); + output.writeBytes( + 3, (com.google.protobuf.ByteString) digest_); } getUnknownFields().writeTo(output); } @@ -251,19 +213,19 @@ public int getSerializedSize() { size = 0; if (digestCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 1, (com.google.protobuf.ByteString) digest_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 1, (com.google.protobuf.ByteString) digest_); } if (digestCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 2, (com.google.protobuf.ByteString) digest_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 2, (com.google.protobuf.ByteString) digest_); } if (digestCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 3, (com.google.protobuf.ByteString) digest_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 3, (com.google.protobuf.ByteString) digest_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -273,7 +235,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.kms.v1.Digest)) { return super.equals(obj); @@ -283,13 +245,16 @@ public boolean equals(final java.lang.Object obj) { if (!getDigestCase().equals(other.getDigestCase())) return false; switch (digestCase_) { case 1: - if (!getSha256().equals(other.getSha256())) return false; + if (!getSha256() + .equals(other.getSha256())) return false; break; case 2: - if (!getSha384().equals(other.getSha384())) return false; + if (!getSha384() + .equals(other.getSha384())) return false; break; case 3: - if (!getSha512().equals(other.getSha512())) return false; + if (!getSha512() + .equals(other.getSha512())) return false; break; case 0: default: @@ -326,133 +291,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.Digest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.Digest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.Digest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.Digest parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.kms.v1.Digest parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.Digest parseFrom( 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.kms.v1.Digest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.Digest parseFrom( - byte[] data, com.google.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.kms.v1.Digest parseFrom(java.io.InputStream input) 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.kms.v1.Digest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.Digest 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.kms.v1.Digest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.Digest parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.cloud.kms.v1.Digest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.Digest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.Digest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [Digest][google.cloud.kms.v1.Digest] holds a cryptographic message digest.
    * 
* * Protobuf type {@code google.cloud.kms.v1.Digest} */ - public static final class Builder extends 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.kms.v1.Digest) com.google.cloud.kms.v1.DigestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_Digest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.v1.KmsProto - .internal_static_google_cloud_kms_v1_Digest_fieldAccessorTable + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_Digest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.kms.v1.Digest.class, com.google.cloud.kms.v1.Digest.Builder.class); } // Construct using com.google.cloud.kms.v1.Digest.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(); @@ -462,7 +424,8 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_Digest_descriptor; } @@ -501,39 +464,38 @@ public com.google.cloud.kms.v1.Digest 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.kms.v1.Digest) { - return mergeFrom((com.google.cloud.kms.v1.Digest) other); + return mergeFrom((com.google.cloud.kms.v1.Digest)other); } else { super.mergeFrom(other); return this; @@ -543,25 +505,21 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.kms.v1.Digest other) { if (other == com.google.cloud.kms.v1.Digest.getDefaultInstance()) return this; switch (other.getDigestCase()) { - case SHA256: - { - setSha256(other.getSha256()); - break; - } - case SHA384: - { - setSha384(other.getSha384()); - break; - } - case SHA512: - { - setSha512(other.getSha512()); - break; - } - case DIGEST_NOT_SET: - { - break; - } + case SHA256: { + setSha256(other.getSha256()); + break; + } + case SHA384: { + setSha384(other.getSha384()); + break; + } + case SHA512: { + setSha512(other.getSha512()); + break; + } + case DIGEST_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -589,31 +547,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - digest_ = input.readBytes(); - digestCase_ = 1; - break; - } // case 10 - case 18: - { - digest_ = input.readBytes(); - digestCase_ = 2; - break; - } // case 18 - case 26: - { - digest_ = input.readBytes(); - digestCase_ = 3; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + digest_ = input.readBytes(); + digestCase_ = 1; + break; + } // case 10 + case 18: { + digest_ = input.readBytes(); + digestCase_ = 2; + break; + } // case 18 + case 26: { + digest_ = input.readBytes(); + digestCase_ = 3; + 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,12 +577,12 @@ public Builder mergeFrom( } // finally return this; } - private int digestCase_ = 0; private java.lang.Object digest_; - - public DigestCase getDigestCase() { - return DigestCase.forNumber(digestCase_); + public DigestCase + getDigestCase() { + return DigestCase.forNumber( + digestCase_); } public Builder clearDigest() { @@ -638,29 +592,24 @@ public Builder clearDigest() { return this; } + /** - * - * *
      * A message digest produced with the SHA-256 algorithm.
      * 
* * bytes sha256 = 1; - * * @return Whether the sha256 field is set. */ public boolean hasSha256() { return digestCase_ == 1; } /** - * - * *
      * A message digest produced with the SHA-256 algorithm.
      * 
* * bytes sha256 = 1; - * * @return The sha256. */ public com.google.protobuf.ByteString getSha256() { @@ -670,35 +619,29 @@ public com.google.protobuf.ByteString getSha256() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * A message digest produced with the SHA-256 algorithm.
      * 
* * bytes sha256 = 1; - * * @param value The sha256 to set. * @return This builder for chaining. */ public Builder setSha256(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - digestCase_ = 1; + throw new NullPointerException(); + } + digestCase_ = 1; digest_ = value; onChanged(); return this; } /** - * - * *
      * A message digest produced with the SHA-256 algorithm.
      * 
* * bytes sha256 = 1; - * * @return This builder for chaining. */ public Builder clearSha256() { @@ -711,28 +654,22 @@ public Builder clearSha256() { } /** - * - * *
      * A message digest produced with the SHA-384 algorithm.
      * 
* * bytes sha384 = 2; - * * @return Whether the sha384 field is set. */ public boolean hasSha384() { return digestCase_ == 2; } /** - * - * *
      * A message digest produced with the SHA-384 algorithm.
      * 
* * bytes sha384 = 2; - * * @return The sha384. */ public com.google.protobuf.ByteString getSha384() { @@ -742,35 +679,29 @@ public com.google.protobuf.ByteString getSha384() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * A message digest produced with the SHA-384 algorithm.
      * 
* * bytes sha384 = 2; - * * @param value The sha384 to set. * @return This builder for chaining. */ public Builder setSha384(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - digestCase_ = 2; + throw new NullPointerException(); + } + digestCase_ = 2; digest_ = value; onChanged(); return this; } /** - * - * *
      * A message digest produced with the SHA-384 algorithm.
      * 
* * bytes sha384 = 2; - * * @return This builder for chaining. */ public Builder clearSha384() { @@ -783,28 +714,22 @@ public Builder clearSha384() { } /** - * - * *
      * A message digest produced with the SHA-512 algorithm.
      * 
* * bytes sha512 = 3; - * * @return Whether the sha512 field is set. */ public boolean hasSha512() { return digestCase_ == 3; } /** - * - * *
      * A message digest produced with the SHA-512 algorithm.
      * 
* * bytes sha512 = 3; - * * @return The sha512. */ public com.google.protobuf.ByteString getSha512() { @@ -814,35 +739,29 @@ public com.google.protobuf.ByteString getSha512() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * A message digest produced with the SHA-512 algorithm.
      * 
* * bytes sha512 = 3; - * * @param value The sha512 to set. * @return This builder for chaining. */ public Builder setSha512(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - digestCase_ = 3; + throw new NullPointerException(); + } + digestCase_ = 3; digest_ = value; onChanged(); return this; } /** - * - * *
      * A message digest produced with the SHA-512 algorithm.
      * 
* * bytes sha512 = 3; - * * @return This builder for chaining. */ public Builder clearSha512() { @@ -853,9 +772,9 @@ public Builder clearSha512() { } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -865,12 +784,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.Digest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.Digest) private static final com.google.cloud.kms.v1.Digest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.Digest(); } @@ -879,27 +798,27 @@ public static com.google.cloud.kms.v1.Digest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Digest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Digest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -914,4 +833,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.Digest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DigestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DigestOrBuilder.java similarity index 68% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DigestOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DigestOrBuilder.java index 42e76853543d..4be7eeea5c5a 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DigestOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DigestOrBuilder.java @@ -1,99 +1,65 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface DigestOrBuilder - extends +public interface DigestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.Digest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A message digest produced with the SHA-256 algorithm.
    * 
* * bytes sha256 = 1; - * * @return Whether the sha256 field is set. */ boolean hasSha256(); /** - * - * *
    * A message digest produced with the SHA-256 algorithm.
    * 
* * bytes sha256 = 1; - * * @return The sha256. */ com.google.protobuf.ByteString getSha256(); /** - * - * *
    * A message digest produced with the SHA-384 algorithm.
    * 
* * bytes sha384 = 2; - * * @return Whether the sha384 field is set. */ boolean hasSha384(); /** - * - * *
    * A message digest produced with the SHA-384 algorithm.
    * 
* * bytes sha384 = 2; - * * @return The sha384. */ com.google.protobuf.ByteString getSha384(); /** - * - * *
    * A message digest produced with the SHA-512 algorithm.
    * 
* * bytes sha512 = 3; - * * @return Whether the sha512 field is set. */ boolean hasSha512(); /** - * - * *
    * A message digest produced with the SHA-512 algorithm.
    * 
* * bytes sha512 = 3; - * * @return The sha512. */ com.google.protobuf.ByteString getSha512(); diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmConnection.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmConnection.java similarity index 73% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmConnection.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmConnection.java index 5d32d8d3413f..8d61daf7771d 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmConnection.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmConnection.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/kms/v1/ekm_service.proto package com.google.cloud.kms.v1; /** - * - * *
  * An [EkmConnection][google.cloud.kms.v1.EkmConnection] represents an
  * individual EKM connection. It can be used for creating
@@ -34,16 +17,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.EkmConnection}
  */
-public final class EkmConnection extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class EkmConnection extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.EkmConnection)
     EkmConnectionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use EkmConnection.newBuilder() to construct.
   private EkmConnection(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private EkmConnection() {
     name_ = "";
     serviceResolvers_ = java.util.Collections.emptyList();
@@ -52,71 +34,58 @@ private EkmConnection() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new EkmConnection();
   }
 
   @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.kms.v1.EkmServiceProto
-        .internal_static_google_cloud_kms_v1_EkmConnection_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_EkmConnection_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.EkmServiceProto
-        .internal_static_google_cloud_kms_v1_EkmConnection_fieldAccessorTable
+    return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_EkmConnection_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.EkmConnection.class,
-            com.google.cloud.kms.v1.EkmConnection.Builder.class);
+            com.google.cloud.kms.v1.EkmConnection.class, com.google.cloud.kms.v1.EkmConnection.Builder.class);
   }
 
-  public interface ServiceResolverOrBuilder
-      extends
+  public interface ServiceResolverOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.EkmConnection.ServiceResolver)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Required. The resource name of the Service Directory service pointing to
      * an EKM replica, in the format
      * `projects/*/locations/*/namespaces/*/services/*`.
      * 
* - * - * string service_directory_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string service_directory_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The serviceDirectoryService. */ java.lang.String getServiceDirectoryService(); /** - * - * *
      * Required. The resource name of the Service Directory service pointing to
      * an EKM replica, in the format
      * `projects/*/locations/*/namespaces/*/services/*`.
      * 
* - * - * string service_directory_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string service_directory_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for serviceDirectoryService. */ - com.google.protobuf.ByteString getServiceDirectoryServiceBytes(); + com.google.protobuf.ByteString + getServiceDirectoryServiceBytes(); /** - * - * *
      * Optional. The filter applied to the endpoints of the resolved service. If
      * no filter is specified, all endpoints will be considered. An endpoint
@@ -126,13 +95,10 @@ public interface ServiceResolverOrBuilder
      * 
* * string endpoint_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The endpointFilter. */ java.lang.String getEndpointFilter(); /** - * - * *
      * Optional. The filter applied to the endpoints of the resolved service. If
      * no filter is specified, all endpoints will be considered. An endpoint
@@ -142,106 +108,81 @@ public interface ServiceResolverOrBuilder
      * 
* * string endpoint_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for endpointFilter. */ - com.google.protobuf.ByteString getEndpointFilterBytes(); + com.google.protobuf.ByteString + getEndpointFilterBytes(); /** - * - * *
      * Required. The hostname of the EKM replica used at TLS and HTTP layers.
      * 
* * string hostname = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hostname. */ java.lang.String getHostname(); /** - * - * *
      * Required. The hostname of the EKM replica used at TLS and HTTP layers.
      * 
* * string hostname = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ - com.google.protobuf.ByteString getHostnameBytes(); + com.google.protobuf.ByteString + getHostnameBytes(); /** - * - * *
      * Required. A list of leaf server certificates used to authenticate HTTPS
      * connections to the EKM replica.
      * 
* - * - * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getServerCertificatesList(); + java.util.List + getServerCertificatesList(); /** - * - * *
      * Required. A list of leaf server certificates used to authenticate HTTPS
      * connections to the EKM replica.
      * 
* - * - * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.kms.v1.Certificate getServerCertificates(int index); /** - * - * *
      * Required. A list of leaf server certificates used to authenticate HTTPS
      * connections to the EKM replica.
      * 
* - * - * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; */ int getServerCertificatesCount(); /** - * - * *
      * Required. A list of leaf server certificates used to authenticate HTTPS
      * connections to the EKM replica.
      * 
* - * - * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getServerCertificatesOrBuilderList(); /** - * - * *
      * Required. A list of leaf server certificates used to authenticate HTTPS
      * connections to the EKM replica.
      * 
* - * - * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.kms.v1.CertificateOrBuilder getServerCertificatesOrBuilder(int index); + com.google.cloud.kms.v1.CertificateOrBuilder getServerCertificatesOrBuilder( + int index); } /** - * - * *
    * A [ServiceResolver][google.cloud.kms.v1.EkmConnection.ServiceResolver]
    * represents an EKM replica that can be reached within an
@@ -250,16 +191,15 @@ public interface ServiceResolverOrBuilder
    *
    * Protobuf type {@code google.cloud.kms.v1.EkmConnection.ServiceResolver}
    */
-  public static final class ServiceResolver extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class ServiceResolver extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.EkmConnection.ServiceResolver)
       ServiceResolverOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use ServiceResolver.newBuilder() to construct.
     private ServiceResolver(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private ServiceResolver() {
       serviceDirectoryService_ = "";
       endpointFilter_ = "";
@@ -269,45 +209,39 @@ private ServiceResolver() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new ServiceResolver();
     }
 
     @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.kms.v1.EkmServiceProto
-          .internal_static_google_cloud_kms_v1_EkmConnection_ServiceResolver_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_EkmConnection_ServiceResolver_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.EkmServiceProto
-          .internal_static_google_cloud_kms_v1_EkmConnection_ServiceResolver_fieldAccessorTable
+      return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_EkmConnection_ServiceResolver_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.EkmConnection.ServiceResolver.class,
-              com.google.cloud.kms.v1.EkmConnection.ServiceResolver.Builder.class);
+              com.google.cloud.kms.v1.EkmConnection.ServiceResolver.class, com.google.cloud.kms.v1.EkmConnection.ServiceResolver.Builder.class);
     }
 
     public static final int SERVICE_DIRECTORY_SERVICE_FIELD_NUMBER = 1;
     private volatile java.lang.Object serviceDirectoryService_;
     /**
-     *
-     *
      * 
      * Required. The resource name of the Service Directory service pointing to
      * an EKM replica, in the format
      * `projects/*/locations/*/namespaces/*/services/*`.
      * 
* - * - * string service_directory_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string service_directory_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The serviceDirectoryService. */ @java.lang.Override @@ -316,33 +250,31 @@ public java.lang.String getServiceDirectoryService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceDirectoryService_ = s; return s; } } /** - * - * *
      * Required. The resource name of the Service Directory service pointing to
      * an EKM replica, in the format
      * `projects/*/locations/*/namespaces/*/services/*`.
      * 
* - * - * string service_directory_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string service_directory_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for serviceDirectoryService. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceDirectoryServiceBytes() { + public com.google.protobuf.ByteString + getServiceDirectoryServiceBytes() { java.lang.Object ref = serviceDirectoryService_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceDirectoryService_ = b; return b; } else { @@ -353,8 +285,6 @@ public com.google.protobuf.ByteString getServiceDirectoryServiceBytes() { public static final int ENDPOINT_FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object endpointFilter_; /** - * - * *
      * Optional. The filter applied to the endpoints of the resolved service. If
      * no filter is specified, all endpoints will be considered. An endpoint
@@ -364,7 +294,6 @@ public com.google.protobuf.ByteString getServiceDirectoryServiceBytes() {
      * 
* * string endpoint_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The endpointFilter. */ @java.lang.Override @@ -373,15 +302,14 @@ public java.lang.String getEndpointFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endpointFilter_ = s; return s; } } /** - * - * *
      * Optional. The filter applied to the endpoints of the resolved service. If
      * no filter is specified, all endpoints will be considered. An endpoint
@@ -391,15 +319,16 @@ public java.lang.String getEndpointFilter() {
      * 
* * string endpoint_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for endpointFilter. */ @java.lang.Override - public com.google.protobuf.ByteString getEndpointFilterBytes() { + public com.google.protobuf.ByteString + getEndpointFilterBytes() { java.lang.Object ref = endpointFilter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); endpointFilter_ = b; return b; } else { @@ -410,14 +339,11 @@ public com.google.protobuf.ByteString getEndpointFilterBytes() { public static final int HOSTNAME_FIELD_NUMBER = 3; private volatile java.lang.Object hostname_; /** - * - * *
      * Required. The hostname of the EKM replica used at TLS and HTTP layers.
      * 
* * string hostname = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hostname. */ @java.lang.Override @@ -426,29 +352,29 @@ public java.lang.String getHostname() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; } } /** - * - * *
      * Required. The hostname of the EKM replica used at TLS and HTTP layers.
      * 
* * string hostname = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ @java.lang.Override - public com.google.protobuf.ByteString getHostnameBytes() { + public com.google.protobuf.ByteString + getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hostname_ = b; return b; } else { @@ -459,89 +385,69 @@ public com.google.protobuf.ByteString getHostnameBytes() { public static final int SERVER_CERTIFICATES_FIELD_NUMBER = 4; private java.util.List serverCertificates_; /** - * - * *
      * Required. A list of leaf server certificates used to authenticate HTTPS
      * connections to the EKM replica.
      * 
* - * - * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getServerCertificatesList() { return serverCertificates_; } /** - * - * *
      * Required. A list of leaf server certificates used to authenticate HTTPS
      * connections to the EKM replica.
      * 
* - * - * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getServerCertificatesOrBuilderList() { return serverCertificates_; } /** - * - * *
      * Required. A list of leaf server certificates used to authenticate HTTPS
      * connections to the EKM replica.
      * 
* - * - * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getServerCertificatesCount() { return serverCertificates_.size(); } /** - * - * *
      * Required. A list of leaf server certificates used to authenticate HTTPS
      * connections to the EKM replica.
      * 
* - * - * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.kms.v1.Certificate getServerCertificates(int index) { return serverCertificates_.get(index); } /** - * - * *
      * Required. A list of leaf server certificates used to authenticate HTTPS
      * connections to the EKM replica.
      * 
* - * - * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.kms.v1.CertificateOrBuilder getServerCertificatesOrBuilder(int index) { + public com.google.cloud.kms.v1.CertificateOrBuilder getServerCertificatesOrBuilder( + int index) { return serverCertificates_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -553,7 +459,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceDirectoryService_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceDirectoryService_); } @@ -576,8 +483,7 @@ public int getSerializedSize() { size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceDirectoryService_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceDirectoryService_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceDirectoryService_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpointFilter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, endpointFilter_); @@ -586,8 +492,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, hostname_); } for (int i = 0; i < serverCertificates_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, serverCertificates_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, serverCertificates_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -597,18 +503,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.kms.v1.EkmConnection.ServiceResolver)) { return super.equals(obj); } - com.google.cloud.kms.v1.EkmConnection.ServiceResolver other = - (com.google.cloud.kms.v1.EkmConnection.ServiceResolver) obj; + com.google.cloud.kms.v1.EkmConnection.ServiceResolver other = (com.google.cloud.kms.v1.EkmConnection.ServiceResolver) obj; - if (!getServiceDirectoryService().equals(other.getServiceDirectoryService())) return false; - if (!getEndpointFilter().equals(other.getEndpointFilter())) return false; - if (!getHostname().equals(other.getHostname())) return false; - if (!getServerCertificatesList().equals(other.getServerCertificatesList())) return false; + if (!getServiceDirectoryService() + .equals(other.getServiceDirectoryService())) return false; + if (!getEndpointFilter() + .equals(other.getEndpointFilter())) return false; + if (!getHostname() + .equals(other.getHostname())) return false; + if (!getServerCertificatesList() + .equals(other.getServerCertificatesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -636,94 +545,87 @@ public int hashCode() { } public static com.google.cloud.kms.v1.EkmConnection.ServiceResolver 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.kms.v1.EkmConnection.ServiceResolver parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.EkmConnection.ServiceResolver parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.EkmConnection.ServiceResolver parseFrom( 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.kms.v1.EkmConnection.ServiceResolver parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.EkmConnection.ServiceResolver parseFrom( - byte[] data, com.google.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.kms.v1.EkmConnection.ServiceResolver parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.EkmConnection.ServiceResolver parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.EkmConnection.ServiceResolver parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.EkmConnection.ServiceResolver parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.EkmConnection.ServiceResolver parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.EkmConnection.ServiceResolver parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.EkmConnection.ServiceResolver parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.EkmConnection.ServiceResolver parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.EkmConnection.ServiceResolver prototype) { + public static Builder newBuilder(com.google.cloud.kms.v1.EkmConnection.ServiceResolver prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -733,8 +635,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A [ServiceResolver][google.cloud.kms.v1.EkmConnection.ServiceResolver]
      * represents an EKM replica that can be reached within an
@@ -743,33 +643,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.kms.v1.EkmConnection.ServiceResolver}
      */
-    public static final class Builder
-        extends 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.kms.v1.EkmConnection.ServiceResolver)
         com.google.cloud.kms.v1.EkmConnection.ServiceResolverOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.kms.v1.EkmServiceProto
-            .internal_static_google_cloud_kms_v1_EkmConnection_ServiceResolver_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_EkmConnection_ServiceResolver_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.kms.v1.EkmServiceProto
-            .internal_static_google_cloud_kms_v1_EkmConnection_ServiceResolver_fieldAccessorTable
+        return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_EkmConnection_ServiceResolver_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.kms.v1.EkmConnection.ServiceResolver.class,
-                com.google.cloud.kms.v1.EkmConnection.ServiceResolver.Builder.class);
+                com.google.cloud.kms.v1.EkmConnection.ServiceResolver.class, com.google.cloud.kms.v1.EkmConnection.ServiceResolver.Builder.class);
       }
 
       // Construct using com.google.cloud.kms.v1.EkmConnection.ServiceResolver.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();
@@ -790,9 +690,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.kms.v1.EkmServiceProto
-            .internal_static_google_cloud_kms_v1_EkmConnection_ServiceResolver_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_EkmConnection_ServiceResolver_descriptor;
       }
 
       @java.lang.Override
@@ -811,8 +711,7 @@ public com.google.cloud.kms.v1.EkmConnection.ServiceResolver build() {
 
       @java.lang.Override
       public com.google.cloud.kms.v1.EkmConnection.ServiceResolver buildPartial() {
-        com.google.cloud.kms.v1.EkmConnection.ServiceResolver result =
-            new com.google.cloud.kms.v1.EkmConnection.ServiceResolver(this);
+        com.google.cloud.kms.v1.EkmConnection.ServiceResolver result = new com.google.cloud.kms.v1.EkmConnection.ServiceResolver(this);
         int from_bitField0_ = bitField0_;
         result.serviceDirectoryService_ = serviceDirectoryService_;
         result.endpointFilter_ = endpointFilter_;
@@ -834,41 +733,38 @@ public com.google.cloud.kms.v1.EkmConnection.ServiceResolver buildPartial() {
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.kms.v1.EkmConnection.ServiceResolver) {
-          return mergeFrom((com.google.cloud.kms.v1.EkmConnection.ServiceResolver) other);
+          return mergeFrom((com.google.cloud.kms.v1.EkmConnection.ServiceResolver)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -876,8 +772,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.kms.v1.EkmConnection.ServiceResolver other) {
-        if (other == com.google.cloud.kms.v1.EkmConnection.ServiceResolver.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.kms.v1.EkmConnection.ServiceResolver.getDefaultInstance()) return this;
         if (!other.getServiceDirectoryService().isEmpty()) {
           serviceDirectoryService_ = other.serviceDirectoryService_;
           onChanged();
@@ -908,10 +803,9 @@ public Builder mergeFrom(com.google.cloud.kms.v1.EkmConnection.ServiceResolver o
               serverCertificatesBuilder_ = null;
               serverCertificates_ = other.serverCertificates_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              serverCertificatesBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getServerCertificatesFieldBuilder()
-                      : null;
+              serverCertificatesBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getServerCertificatesFieldBuilder() : null;
             } else {
               serverCertificatesBuilder_.addAllMessages(other.serverCertificates_);
             }
@@ -943,44 +837,40 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  serviceDirectoryService_ = input.readStringRequireUtf8();
-
-                  break;
-                } // case 10
-              case 18:
-                {
-                  endpointFilter_ = input.readStringRequireUtf8();
-
-                  break;
-                } // case 18
-              case 26:
-                {
-                  hostname_ = input.readStringRequireUtf8();
-
-                  break;
-                } // case 26
-              case 34:
-                {
-                  com.google.cloud.kms.v1.Certificate m =
-                      input.readMessage(
-                          com.google.cloud.kms.v1.Certificate.parser(), extensionRegistry);
-                  if (serverCertificatesBuilder_ == null) {
-                    ensureServerCertificatesIsMutable();
-                    serverCertificates_.add(m);
-                  } else {
-                    serverCertificatesBuilder_.addMessage(m);
-                  }
-                  break;
-                } // case 34
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                serviceDirectoryService_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+              case 18: {
+                endpointFilter_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 18
+              case 26: {
+                hostname_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 26
+              case 34: {
+                com.google.cloud.kms.v1.Certificate m =
+                    input.readMessage(
+                        com.google.cloud.kms.v1.Certificate.parser(),
+                        extensionRegistry);
+                if (serverCertificatesBuilder_ == null) {
+                  ensureServerCertificatesIsMutable();
+                  serverCertificates_.add(m);
+                } else {
+                  serverCertificatesBuilder_.addMessage(m);
+                }
+                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) {
@@ -990,29 +880,24 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private java.lang.Object serviceDirectoryService_ = "";
       /**
-       *
-       *
        * 
        * Required. The resource name of the Service Directory service pointing to
        * an EKM replica, in the format
        * `projects/*/locations/*/namespaces/*/services/*`.
        * 
* - * - * string service_directory_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string service_directory_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The serviceDirectoryService. */ public java.lang.String getServiceDirectoryService() { java.lang.Object ref = serviceDirectoryService_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceDirectoryService_ = s; return s; @@ -1021,25 +906,22 @@ public java.lang.String getServiceDirectoryService() { } } /** - * - * *
        * Required. The resource name of the Service Directory service pointing to
        * an EKM replica, in the format
        * `projects/*/locations/*/namespaces/*/services/*`.
        * 
* - * - * string service_directory_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string service_directory_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for serviceDirectoryService. */ - public com.google.protobuf.ByteString getServiceDirectoryServiceBytes() { + public com.google.protobuf.ByteString + getServiceDirectoryServiceBytes() { java.lang.Object ref = serviceDirectoryService_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceDirectoryService_ = b; return b; } else { @@ -1047,73 +929,60 @@ public com.google.protobuf.ByteString getServiceDirectoryServiceBytes() { } } /** - * - * *
        * Required. The resource name of the Service Directory service pointing to
        * an EKM replica, in the format
        * `projects/*/locations/*/namespaces/*/services/*`.
        * 
* - * - * string service_directory_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string service_directory_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The serviceDirectoryService to set. * @return This builder for chaining. */ - public Builder setServiceDirectoryService(java.lang.String value) { + public Builder setServiceDirectoryService( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceDirectoryService_ = value; onChanged(); return this; } /** - * - * *
        * Required. The resource name of the Service Directory service pointing to
        * an EKM replica, in the format
        * `projects/*/locations/*/namespaces/*/services/*`.
        * 
* - * - * string service_directory_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string service_directory_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearServiceDirectoryService() { - + serviceDirectoryService_ = getDefaultInstance().getServiceDirectoryService(); onChanged(); return this; } /** - * - * *
        * Required. The resource name of the Service Directory service pointing to
        * an EKM replica, in the format
        * `projects/*/locations/*/namespaces/*/services/*`.
        * 
* - * - * string service_directory_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string service_directory_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for serviceDirectoryService to set. * @return This builder for chaining. */ - public Builder setServiceDirectoryServiceBytes(com.google.protobuf.ByteString value) { + public Builder setServiceDirectoryServiceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceDirectoryService_ = value; onChanged(); return this; @@ -1121,8 +990,6 @@ public Builder setServiceDirectoryServiceBytes(com.google.protobuf.ByteString va private java.lang.Object endpointFilter_ = ""; /** - * - * *
        * Optional. The filter applied to the endpoints of the resolved service. If
        * no filter is specified, all endpoints will be considered. An endpoint
@@ -1132,13 +999,13 @@ public Builder setServiceDirectoryServiceBytes(com.google.protobuf.ByteString va
        * 
* * string endpoint_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The endpointFilter. */ public java.lang.String getEndpointFilter() { java.lang.Object ref = endpointFilter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endpointFilter_ = s; return s; @@ -1147,8 +1014,6 @@ public java.lang.String getEndpointFilter() { } } /** - * - * *
        * Optional. The filter applied to the endpoints of the resolved service. If
        * no filter is specified, all endpoints will be considered. An endpoint
@@ -1158,14 +1023,15 @@ public java.lang.String getEndpointFilter() {
        * 
* * string endpoint_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for endpointFilter. */ - public com.google.protobuf.ByteString getEndpointFilterBytes() { + public com.google.protobuf.ByteString + getEndpointFilterBytes() { java.lang.Object ref = endpointFilter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); endpointFilter_ = b; return b; } else { @@ -1173,8 +1039,6 @@ public com.google.protobuf.ByteString getEndpointFilterBytes() { } } /** - * - * *
        * Optional. The filter applied to the endpoints of the resolved service. If
        * no filter is specified, all endpoints will be considered. An endpoint
@@ -1184,22 +1048,20 @@ public com.google.protobuf.ByteString getEndpointFilterBytes() {
        * 
* * string endpoint_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The endpointFilter to set. * @return This builder for chaining. */ - public Builder setEndpointFilter(java.lang.String value) { + public Builder setEndpointFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + endpointFilter_ = value; onChanged(); return this; } /** - * - * *
        * Optional. The filter applied to the endpoints of the resolved service. If
        * no filter is specified, all endpoints will be considered. An endpoint
@@ -1209,18 +1071,15 @@ public Builder setEndpointFilter(java.lang.String value) {
        * 
* * string endpoint_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEndpointFilter() { - + endpointFilter_ = getDefaultInstance().getEndpointFilter(); onChanged(); return this; } /** - * - * *
        * Optional. The filter applied to the endpoints of the resolved service. If
        * no filter is specified, all endpoints will be considered. An endpoint
@@ -1230,16 +1089,16 @@ public Builder clearEndpointFilter() {
        * 
* * string endpoint_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for endpointFilter to set. * @return This builder for chaining. */ - public Builder setEndpointFilterBytes(com.google.protobuf.ByteString value) { + public Builder setEndpointFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + endpointFilter_ = value; onChanged(); return this; @@ -1247,20 +1106,18 @@ public Builder setEndpointFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object hostname_ = ""; /** - * - * *
        * Required. The hostname of the EKM replica used at TLS and HTTP layers.
        * 
* * string hostname = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hostname. */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; @@ -1269,21 +1126,20 @@ public java.lang.String getHostname() { } } /** - * - * *
        * Required. The hostname of the EKM replica used at TLS and HTTP layers.
        * 
* * string hostname = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ - public com.google.protobuf.ByteString getHostnameBytes() { + public com.google.protobuf.ByteString + getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hostname_ = b; return b; } else { @@ -1291,94 +1147,78 @@ public com.google.protobuf.ByteString getHostnameBytes() { } } /** - * - * *
        * Required. The hostname of the EKM replica used at TLS and HTTP layers.
        * 
* * string hostname = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The hostname to set. * @return This builder for chaining. */ - public Builder setHostname(java.lang.String value) { + public Builder setHostname( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + hostname_ = value; onChanged(); return this; } /** - * - * *
        * Required. The hostname of the EKM replica used at TLS and HTTP layers.
        * 
* * string hostname = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearHostname() { - + hostname_ = getDefaultInstance().getHostname(); onChanged(); return this; } /** - * - * *
        * Required. The hostname of the EKM replica used at TLS and HTTP layers.
        * 
* * string hostname = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for hostname to set. * @return This builder for chaining. */ - public Builder setHostnameBytes(com.google.protobuf.ByteString value) { + public Builder setHostnameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hostname_ = value; onChanged(); return this; } private java.util.List serverCertificates_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureServerCertificatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - serverCertificates_ = - new java.util.ArrayList(serverCertificates_); + serverCertificates_ = new java.util.ArrayList(serverCertificates_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.v1.Certificate, - com.google.cloud.kms.v1.Certificate.Builder, - com.google.cloud.kms.v1.CertificateOrBuilder> - serverCertificatesBuilder_; + com.google.cloud.kms.v1.Certificate, com.google.cloud.kms.v1.Certificate.Builder, com.google.cloud.kms.v1.CertificateOrBuilder> serverCertificatesBuilder_; /** - * - * *
        * Required. A list of leaf server certificates used to authenticate HTTPS
        * connections to the EKM replica.
        * 
* - * - * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getServerCertificatesList() { if (serverCertificatesBuilder_ == null) { @@ -1388,16 +1228,12 @@ public java.util.List getServerCertificates } } /** - * - * *
        * Required. A list of leaf server certificates used to authenticate HTTPS
        * connections to the EKM replica.
        * 
* - * - * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; */ public int getServerCertificatesCount() { if (serverCertificatesBuilder_ == null) { @@ -1407,16 +1243,12 @@ public int getServerCertificatesCount() { } } /** - * - * *
        * Required. A list of leaf server certificates used to authenticate HTTPS
        * connections to the EKM replica.
        * 
* - * - * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.kms.v1.Certificate getServerCertificates(int index) { if (serverCertificatesBuilder_ == null) { @@ -1426,18 +1258,15 @@ public com.google.cloud.kms.v1.Certificate getServerCertificates(int index) { } } /** - * - * *
        * Required. A list of leaf server certificates used to authenticate HTTPS
        * connections to the EKM replica.
        * 
* - * - * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setServerCertificates(int index, com.google.cloud.kms.v1.Certificate value) { + public Builder setServerCertificates( + int index, com.google.cloud.kms.v1.Certificate value) { if (serverCertificatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1451,16 +1280,12 @@ public Builder setServerCertificates(int index, com.google.cloud.kms.v1.Certific return this; } /** - * - * *
        * Required. A list of leaf server certificates used to authenticate HTTPS
        * connections to the EKM replica.
        * 
* - * - * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setServerCertificates( int index, com.google.cloud.kms.v1.Certificate.Builder builderForValue) { @@ -1474,16 +1299,12 @@ public Builder setServerCertificates( return this; } /** - * - * *
        * Required. A list of leaf server certificates used to authenticate HTTPS
        * connections to the EKM replica.
        * 
* - * - * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addServerCertificates(com.google.cloud.kms.v1.Certificate value) { if (serverCertificatesBuilder_ == null) { @@ -1499,18 +1320,15 @@ public Builder addServerCertificates(com.google.cloud.kms.v1.Certificate value) return this; } /** - * - * *
        * Required. A list of leaf server certificates used to authenticate HTTPS
        * connections to the EKM replica.
        * 
* - * - * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addServerCertificates(int index, com.google.cloud.kms.v1.Certificate value) { + public Builder addServerCertificates( + int index, com.google.cloud.kms.v1.Certificate value) { if (serverCertificatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1524,16 +1342,12 @@ public Builder addServerCertificates(int index, com.google.cloud.kms.v1.Certific return this; } /** - * - * *
        * Required. A list of leaf server certificates used to authenticate HTTPS
        * connections to the EKM replica.
        * 
* - * - * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addServerCertificates( com.google.cloud.kms.v1.Certificate.Builder builderForValue) { @@ -1547,16 +1361,12 @@ public Builder addServerCertificates( return this; } /** - * - * *
        * Required. A list of leaf server certificates used to authenticate HTTPS
        * connections to the EKM replica.
        * 
* - * - * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addServerCertificates( int index, com.google.cloud.kms.v1.Certificate.Builder builderForValue) { @@ -1570,22 +1380,19 @@ public Builder addServerCertificates( return this; } /** - * - * *
        * Required. A list of leaf server certificates used to authenticate HTTPS
        * connections to the EKM replica.
        * 
* - * - * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllServerCertificates( java.lang.Iterable values) { if (serverCertificatesBuilder_ == null) { ensureServerCertificatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serverCertificates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, serverCertificates_); onChanged(); } else { serverCertificatesBuilder_.addAllMessages(values); @@ -1593,16 +1400,12 @@ public Builder addAllServerCertificates( return this; } /** - * - * *
        * Required. A list of leaf server certificates used to authenticate HTTPS
        * connections to the EKM replica.
        * 
* - * - * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearServerCertificates() { if (serverCertificatesBuilder_ == null) { @@ -1615,16 +1418,12 @@ public Builder clearServerCertificates() { return this; } /** - * - * *
        * Required. A list of leaf server certificates used to authenticate HTTPS
        * connections to the EKM replica.
        * 
* - * - * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeServerCertificates(int index) { if (serverCertificatesBuilder_ == null) { @@ -1637,54 +1436,42 @@ public Builder removeServerCertificates(int index) { return this; } /** - * - * *
        * Required. A list of leaf server certificates used to authenticate HTTPS
        * connections to the EKM replica.
        * 
* - * - * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.kms.v1.Certificate.Builder getServerCertificatesBuilder(int index) { + public com.google.cloud.kms.v1.Certificate.Builder getServerCertificatesBuilder( + int index) { return getServerCertificatesFieldBuilder().getBuilder(index); } /** - * - * *
        * Required. A list of leaf server certificates used to authenticate HTTPS
        * connections to the EKM replica.
        * 
* - * - * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.kms.v1.CertificateOrBuilder getServerCertificatesOrBuilder( int index) { if (serverCertificatesBuilder_ == null) { - return serverCertificates_.get(index); - } else { + return serverCertificates_.get(index); } else { return serverCertificatesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Required. A list of leaf server certificates used to authenticate HTTPS
        * connections to the EKM replica.
        * 
* - * - * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getServerCertificatesOrBuilderList() { + public java.util.List + getServerCertificatesOrBuilderList() { if (serverCertificatesBuilder_ != null) { return serverCertificatesBuilder_.getMessageOrBuilderList(); } else { @@ -1692,65 +1479,48 @@ public com.google.cloud.kms.v1.CertificateOrBuilder getServerCertificatesOrBuild } } /** - * - * *
        * Required. A list of leaf server certificates used to authenticate HTTPS
        * connections to the EKM replica.
        * 
* - * - * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.kms.v1.Certificate.Builder addServerCertificatesBuilder() { - return getServerCertificatesFieldBuilder() - .addBuilder(com.google.cloud.kms.v1.Certificate.getDefaultInstance()); + return getServerCertificatesFieldBuilder().addBuilder( + com.google.cloud.kms.v1.Certificate.getDefaultInstance()); } /** - * - * *
        * Required. A list of leaf server certificates used to authenticate HTTPS
        * connections to the EKM replica.
        * 
* - * - * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.kms.v1.Certificate.Builder addServerCertificatesBuilder(int index) { - return getServerCertificatesFieldBuilder() - .addBuilder(index, com.google.cloud.kms.v1.Certificate.getDefaultInstance()); + public com.google.cloud.kms.v1.Certificate.Builder addServerCertificatesBuilder( + int index) { + return getServerCertificatesFieldBuilder().addBuilder( + index, com.google.cloud.kms.v1.Certificate.getDefaultInstance()); } /** - * - * *
        * Required. A list of leaf server certificates used to authenticate HTTPS
        * connections to the EKM replica.
        * 
* - * - * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getServerCertificatesBuilderList() { + public java.util.List + getServerCertificatesBuilderList() { return getServerCertificatesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.v1.Certificate, - com.google.cloud.kms.v1.Certificate.Builder, - com.google.cloud.kms.v1.CertificateOrBuilder> + com.google.cloud.kms.v1.Certificate, com.google.cloud.kms.v1.Certificate.Builder, com.google.cloud.kms.v1.CertificateOrBuilder> getServerCertificatesFieldBuilder() { if (serverCertificatesBuilder_ == null) { - serverCertificatesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.v1.Certificate, - com.google.cloud.kms.v1.Certificate.Builder, - com.google.cloud.kms.v1.CertificateOrBuilder>( + serverCertificatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.kms.v1.Certificate, com.google.cloud.kms.v1.Certificate.Builder, com.google.cloud.kms.v1.CertificateOrBuilder>( serverCertificates_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1759,7 +1529,6 @@ public com.google.cloud.kms.v1.Certificate.Builder addServerCertificatesBuilder( } return serverCertificatesBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1772,12 +1541,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.EkmConnection.ServiceResolver) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.EkmConnection.ServiceResolver) private static final com.google.cloud.kms.v1.EkmConnection.ServiceResolver DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.EkmConnection.ServiceResolver(); } @@ -1786,28 +1555,27 @@ public static com.google.cloud.kms.v1.EkmConnection.ServiceResolver getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServiceResolver parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceResolver parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1822,13 +1590,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.EkmConnection.ServiceResolver getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name for the
    * [EkmConnection][google.cloud.kms.v1.EkmConnection] in the format
@@ -1836,7 +1603,6 @@ public com.google.cloud.kms.v1.EkmConnection.ServiceResolver getDefaultInstanceF
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -1845,15 +1611,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; } } /** - * - * *
    * Output only. The resource name for the
    * [EkmConnection][google.cloud.kms.v1.EkmConnection] in the format
@@ -1861,15 +1626,16 @@ public java.lang.String getName() {
    * 
* * 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 { @@ -1880,16 +1646,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time at which the
    * [EkmConnection][google.cloud.kms.v1.EkmConnection] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -1897,16 +1659,12 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time at which the
    * [EkmConnection][google.cloud.kms.v1.EkmConnection] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -1914,15 +1672,12 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time at which the
    * [EkmConnection][google.cloud.kms.v1.EkmConnection] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1932,8 +1687,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int SERVICE_RESOLVERS_FIELD_NUMBER = 3; private java.util.List serviceResolvers_; /** - * - * *
    * A list of
    * [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
@@ -1946,13 +1699,10 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3;
    */
   @java.lang.Override
-  public java.util.List
-      getServiceResolversList() {
+  public java.util.List getServiceResolversList() {
     return serviceResolvers_;
   }
   /**
-   *
-   *
    * 
    * A list of
    * [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
@@ -1965,13 +1715,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getServiceResolversOrBuilderList() {
     return serviceResolvers_;
   }
   /**
-   *
-   *
    * 
    * A list of
    * [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
@@ -1988,8 +1736,6 @@ public int getServiceResolversCount() {
     return serviceResolvers_.size();
   }
   /**
-   *
-   *
    * 
    * A list of
    * [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
@@ -2006,8 +1752,6 @@ public com.google.cloud.kms.v1.EkmConnection.ServiceResolver getServiceResolvers
     return serviceResolvers_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of
    * [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
@@ -2020,16 +1764,14 @@ public com.google.cloud.kms.v1.EkmConnection.ServiceResolver getServiceResolvers
    * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3;
    */
   @java.lang.Override
-  public com.google.cloud.kms.v1.EkmConnection.ServiceResolverOrBuilder
-      getServiceResolversOrBuilder(int index) {
+  public com.google.cloud.kms.v1.EkmConnection.ServiceResolverOrBuilder getServiceResolversOrBuilder(
+      int index) {
     return serviceResolvers_.get(index);
   }
 
   public static final int ETAG_FIELD_NUMBER = 5;
   private volatile java.lang.Object etag_;
   /**
-   *
-   *
    * 
    * This checksum is computed by the server based on the value of other fields,
    * and may be sent on update requests to ensure the client has an up-to-date
@@ -2037,7 +1779,6 @@ public com.google.cloud.kms.v1.EkmConnection.ServiceResolver getServiceResolvers
    * 
* * string etag = 5; - * * @return The etag. */ @java.lang.Override @@ -2046,15 +1787,14 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * This checksum is computed by the server based on the value of other fields,
    * and may be sent on update requests to ensure the client has an up-to-date
@@ -2062,15 +1802,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 5; - * * @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 { @@ -2079,7 +1820,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2091,7 +1831,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -2117,10 +1858,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } for (int i = 0; i < serviceResolvers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, serviceResolvers_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, serviceResolvers_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, etag_); @@ -2133,20 +1876,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.kms.v1.EkmConnection)) { return super.equals(obj); } com.google.cloud.kms.v1.EkmConnection other = (com.google.cloud.kms.v1.EkmConnection) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) 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 (!getServiceResolversList().equals(other.getServiceResolversList())) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getServiceResolversList() + .equals(other.getServiceResolversList())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2175,103 +1922,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.EkmConnection parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.EkmConnection parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.EkmConnection parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.EkmConnection parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.kms.v1.EkmConnection parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.EkmConnection parseFrom( 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.kms.v1.EkmConnection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.EkmConnection parseFrom( - byte[] data, com.google.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.kms.v1.EkmConnection parseFrom(java.io.InputStream input) 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.kms.v1.EkmConnection parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.EkmConnection 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.kms.v1.EkmConnection parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.EkmConnection parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.EkmConnection parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.EkmConnection prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * An [EkmConnection][google.cloud.kms.v1.EkmConnection] represents an
    * individual EKM connection. It can be used for creating
@@ -2285,32 +2026,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.EkmConnection}
    */
-  public static final class Builder extends 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.kms.v1.EkmConnection)
       com.google.cloud.kms.v1.EkmConnectionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.EkmServiceProto
-          .internal_static_google_cloud_kms_v1_EkmConnection_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_EkmConnection_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.EkmServiceProto
-          .internal_static_google_cloud_kms_v1_EkmConnection_fieldAccessorTable
+      return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_EkmConnection_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.EkmConnection.class,
-              com.google.cloud.kms.v1.EkmConnection.Builder.class);
+              com.google.cloud.kms.v1.EkmConnection.class, com.google.cloud.kms.v1.EkmConnection.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.EkmConnection.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();
@@ -2335,9 +2077,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.EkmServiceProto
-          .internal_static_google_cloud_kms_v1_EkmConnection_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_EkmConnection_descriptor;
     }
 
     @java.lang.Override
@@ -2356,8 +2098,7 @@ public com.google.cloud.kms.v1.EkmConnection build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.EkmConnection buildPartial() {
-      com.google.cloud.kms.v1.EkmConnection result =
-          new com.google.cloud.kms.v1.EkmConnection(this);
+      com.google.cloud.kms.v1.EkmConnection result = new com.google.cloud.kms.v1.EkmConnection(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (createTimeBuilder_ == null) {
@@ -2383,39 +2124,38 @@ public com.google.cloud.kms.v1.EkmConnection 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.kms.v1.EkmConnection) {
-        return mergeFrom((com.google.cloud.kms.v1.EkmConnection) other);
+        return mergeFrom((com.google.cloud.kms.v1.EkmConnection)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2449,10 +2189,9 @@ public Builder mergeFrom(com.google.cloud.kms.v1.EkmConnection other) {
             serviceResolversBuilder_ = null;
             serviceResolvers_ = other.serviceResolvers_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            serviceResolversBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getServiceResolversFieldBuilder()
-                    : null;
+            serviceResolversBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getServiceResolversFieldBuilder() : null;
           } else {
             serviceResolversBuilder_.addAllMessages(other.serviceResolvers_);
           }
@@ -2488,45 +2227,42 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
+            case 10: {
+              name_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 18
-            case 26:
-              {
-                com.google.cloud.kms.v1.EkmConnection.ServiceResolver m =
-                    input.readMessage(
-                        com.google.cloud.kms.v1.EkmConnection.ServiceResolver.parser(),
-                        extensionRegistry);
-                if (serviceResolversBuilder_ == null) {
-                  ensureServiceResolversIsMutable();
-                  serviceResolvers_.add(m);
-                } else {
-                  serviceResolversBuilder_.addMessage(m);
-                }
-                break;
-              } // case 26
-            case 42:
-              {
-                etag_ = input.readStringRequireUtf8();
+              break;
+            } // case 18
+            case 26: {
+              com.google.cloud.kms.v1.EkmConnection.ServiceResolver m =
+                  input.readMessage(
+                      com.google.cloud.kms.v1.EkmConnection.ServiceResolver.parser(),
+                      extensionRegistry);
+              if (serviceResolversBuilder_ == null) {
+                ensureServiceResolversIsMutable();
+                serviceResolvers_.add(m);
+              } else {
+                serviceResolversBuilder_.addMessage(m);
+              }
+              break;
+            } // case 26
+            case 42: {
+              etag_ = 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) {
@@ -2536,13 +2272,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource name for the
      * [EkmConnection][google.cloud.kms.v1.EkmConnection] in the format
@@ -2550,13 +2283,13 @@ public Builder mergeFrom(
      * 
* * 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; @@ -2565,8 +2298,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name for the
      * [EkmConnection][google.cloud.kms.v1.EkmConnection] in the format
@@ -2574,14 +2305,15 @@ public java.lang.String getName() {
      * 
* * 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 { @@ -2589,8 +2321,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name for the
      * [EkmConnection][google.cloud.kms.v1.EkmConnection] in the format
@@ -2598,22 +2328,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * 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 for the
      * [EkmConnection][google.cloud.kms.v1.EkmConnection] in the format
@@ -2621,18 +2349,15 @@ public Builder setName(java.lang.String value) {
      * 
* * 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 for the
      * [EkmConnection][google.cloud.kms.v1.EkmConnection] in the format
@@ -2640,16 +2365,16 @@ public Builder clearName() {
      * 
* * 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; @@ -2657,61 +2382,42 @@ public Builder setNameBytes(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 at which the
      * [EkmConnection][google.cloud.kms.v1.EkmConnection] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.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 at which the
      * [EkmConnection][google.cloud.kms.v1.EkmConnection] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.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 at which the
      * [EkmConnection][google.cloud.kms.v1.EkmConnection] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2727,18 +2433,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which the
      * [EkmConnection][google.cloud.kms.v1.EkmConnection] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.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(); @@ -2749,22 +2452,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which the
      * [EkmConnection][google.cloud.kms.v1.EkmConnection] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.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; } @@ -2776,16 +2475,12 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which the
      * [EkmConnection][google.cloud.kms.v1.EkmConnection] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2799,93 +2494,69 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time at which the
      * [EkmConnection][google.cloud.kms.v1.EkmConnection] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which the
      * [EkmConnection][google.cloud.kms.v1.EkmConnection] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.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 at which the
      * [EkmConnection][google.cloud.kms.v1.EkmConnection] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; } - private java.util.List - serviceResolvers_ = java.util.Collections.emptyList(); - + private java.util.List serviceResolvers_ = + java.util.Collections.emptyList(); private void ensureServiceResolversIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - serviceResolvers_ = - new java.util.ArrayList( - serviceResolvers_); + serviceResolvers_ = new java.util.ArrayList(serviceResolvers_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.v1.EkmConnection.ServiceResolver, - com.google.cloud.kms.v1.EkmConnection.ServiceResolver.Builder, - com.google.cloud.kms.v1.EkmConnection.ServiceResolverOrBuilder> - serviceResolversBuilder_; + com.google.cloud.kms.v1.EkmConnection.ServiceResolver, com.google.cloud.kms.v1.EkmConnection.ServiceResolver.Builder, com.google.cloud.kms.v1.EkmConnection.ServiceResolverOrBuilder> serviceResolversBuilder_; /** - * - * *
      * A list of
      * [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
@@ -2895,11 +2566,9 @@ private void ensureServiceResolversIsMutable() {
      * supported.
      * 
* - * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; - * + * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; */ - public java.util.List - getServiceResolversList() { + public java.util.List getServiceResolversList() { if (serviceResolversBuilder_ == null) { return java.util.Collections.unmodifiableList(serviceResolvers_); } else { @@ -2907,8 +2576,6 @@ private void ensureServiceResolversIsMutable() { } } /** - * - * *
      * A list of
      * [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
@@ -2918,8 +2585,7 @@ private void ensureServiceResolversIsMutable() {
      * supported.
      * 
* - * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; - * + * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; */ public int getServiceResolversCount() { if (serviceResolversBuilder_ == null) { @@ -2929,8 +2595,6 @@ public int getServiceResolversCount() { } } /** - * - * *
      * A list of
      * [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
@@ -2940,8 +2604,7 @@ public int getServiceResolversCount() {
      * supported.
      * 
* - * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; - * + * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; */ public com.google.cloud.kms.v1.EkmConnection.ServiceResolver getServiceResolvers(int index) { if (serviceResolversBuilder_ == null) { @@ -2951,8 +2614,6 @@ public com.google.cloud.kms.v1.EkmConnection.ServiceResolver getServiceResolvers } } /** - * - * *
      * A list of
      * [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
@@ -2962,8 +2623,7 @@ public com.google.cloud.kms.v1.EkmConnection.ServiceResolver getServiceResolvers
      * supported.
      * 
* - * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; - * + * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; */ public Builder setServiceResolvers( int index, com.google.cloud.kms.v1.EkmConnection.ServiceResolver value) { @@ -2980,8 +2640,6 @@ public Builder setServiceResolvers( return this; } /** - * - * *
      * A list of
      * [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
@@ -2991,8 +2649,7 @@ public Builder setServiceResolvers(
      * supported.
      * 
* - * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; - * + * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; */ public Builder setServiceResolvers( int index, com.google.cloud.kms.v1.EkmConnection.ServiceResolver.Builder builderForValue) { @@ -3006,8 +2663,6 @@ public Builder setServiceResolvers( return this; } /** - * - * *
      * A list of
      * [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
@@ -3017,11 +2672,9 @@ public Builder setServiceResolvers(
      * supported.
      * 
* - * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; - * + * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; */ - public Builder addServiceResolvers( - com.google.cloud.kms.v1.EkmConnection.ServiceResolver value) { + public Builder addServiceResolvers(com.google.cloud.kms.v1.EkmConnection.ServiceResolver value) { if (serviceResolversBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3035,8 +2688,6 @@ public Builder addServiceResolvers( return this; } /** - * - * *
      * A list of
      * [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
@@ -3046,8 +2697,7 @@ public Builder addServiceResolvers(
      * supported.
      * 
* - * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; - * + * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; */ public Builder addServiceResolvers( int index, com.google.cloud.kms.v1.EkmConnection.ServiceResolver value) { @@ -3064,8 +2714,6 @@ public Builder addServiceResolvers( return this; } /** - * - * *
      * A list of
      * [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
@@ -3075,8 +2723,7 @@ public Builder addServiceResolvers(
      * supported.
      * 
* - * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; - * + * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; */ public Builder addServiceResolvers( com.google.cloud.kms.v1.EkmConnection.ServiceResolver.Builder builderForValue) { @@ -3090,8 +2737,6 @@ public Builder addServiceResolvers( return this; } /** - * - * *
      * A list of
      * [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
@@ -3101,8 +2746,7 @@ public Builder addServiceResolvers(
      * supported.
      * 
* - * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; - * + * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; */ public Builder addServiceResolvers( int index, com.google.cloud.kms.v1.EkmConnection.ServiceResolver.Builder builderForValue) { @@ -3116,8 +2760,6 @@ public Builder addServiceResolvers( return this; } /** - * - * *
      * A list of
      * [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
@@ -3127,15 +2769,14 @@ public Builder addServiceResolvers(
      * supported.
      * 
* - * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; - * + * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; */ public Builder addAllServiceResolvers( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (serviceResolversBuilder_ == null) { ensureServiceResolversIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serviceResolvers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, serviceResolvers_); onChanged(); } else { serviceResolversBuilder_.addAllMessages(values); @@ -3143,8 +2784,6 @@ public Builder addAllServiceResolvers( return this; } /** - * - * *
      * A list of
      * [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
@@ -3154,8 +2793,7 @@ public Builder addAllServiceResolvers(
      * supported.
      * 
* - * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; - * + * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; */ public Builder clearServiceResolvers() { if (serviceResolversBuilder_ == null) { @@ -3168,8 +2806,6 @@ public Builder clearServiceResolvers() { return this; } /** - * - * *
      * A list of
      * [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
@@ -3179,8 +2815,7 @@ public Builder clearServiceResolvers() {
      * supported.
      * 
* - * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; - * + * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; */ public Builder removeServiceResolvers(int index) { if (serviceResolversBuilder_ == null) { @@ -3193,8 +2828,6 @@ public Builder removeServiceResolvers(int index) { return this; } /** - * - * *
      * A list of
      * [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
@@ -3204,16 +2837,13 @@ public Builder removeServiceResolvers(int index) {
      * supported.
      * 
* - * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; - * + * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; */ public com.google.cloud.kms.v1.EkmConnection.ServiceResolver.Builder getServiceResolversBuilder( int index) { return getServiceResolversFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of
      * [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
@@ -3223,20 +2853,16 @@ public com.google.cloud.kms.v1.EkmConnection.ServiceResolver.Builder getServiceR
      * supported.
      * 
* - * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; - * + * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; */ - public com.google.cloud.kms.v1.EkmConnection.ServiceResolverOrBuilder - getServiceResolversOrBuilder(int index) { + public com.google.cloud.kms.v1.EkmConnection.ServiceResolverOrBuilder getServiceResolversOrBuilder( + int index) { if (serviceResolversBuilder_ == null) { - return serviceResolvers_.get(index); - } else { + return serviceResolvers_.get(index); } else { return serviceResolversBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of
      * [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
@@ -3246,11 +2872,10 @@ public com.google.cloud.kms.v1.EkmConnection.ServiceResolver.Builder getServiceR
      * supported.
      * 
* - * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; - * + * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; */ - public java.util.List - getServiceResolversOrBuilderList() { + public java.util.List + getServiceResolversOrBuilderList() { if (serviceResolversBuilder_ != null) { return serviceResolversBuilder_.getMessageOrBuilderList(); } else { @@ -3258,8 +2883,6 @@ public com.google.cloud.kms.v1.EkmConnection.ServiceResolver.Builder getServiceR } } /** - * - * *
      * A list of
      * [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
@@ -3269,17 +2892,13 @@ public com.google.cloud.kms.v1.EkmConnection.ServiceResolver.Builder getServiceR
      * supported.
      * 
* - * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; - * + * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; */ - public com.google.cloud.kms.v1.EkmConnection.ServiceResolver.Builder - addServiceResolversBuilder() { - return getServiceResolversFieldBuilder() - .addBuilder(com.google.cloud.kms.v1.EkmConnection.ServiceResolver.getDefaultInstance()); + public com.google.cloud.kms.v1.EkmConnection.ServiceResolver.Builder addServiceResolversBuilder() { + return getServiceResolversFieldBuilder().addBuilder( + com.google.cloud.kms.v1.EkmConnection.ServiceResolver.getDefaultInstance()); } /** - * - * *
      * A list of
      * [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
@@ -3289,18 +2908,14 @@ public com.google.cloud.kms.v1.EkmConnection.ServiceResolver.Builder getServiceR
      * supported.
      * 
* - * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; - * + * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; */ public com.google.cloud.kms.v1.EkmConnection.ServiceResolver.Builder addServiceResolversBuilder( int index) { - return getServiceResolversFieldBuilder() - .addBuilder( - index, com.google.cloud.kms.v1.EkmConnection.ServiceResolver.getDefaultInstance()); + return getServiceResolversFieldBuilder().addBuilder( + index, com.google.cloud.kms.v1.EkmConnection.ServiceResolver.getDefaultInstance()); } /** - * - * *
      * A list of
      * [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
@@ -3310,25 +2925,18 @@ public com.google.cloud.kms.v1.EkmConnection.ServiceResolver.Builder addServiceR
      * supported.
      * 
* - * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; - * + * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3; */ - public java.util.List - getServiceResolversBuilderList() { + public java.util.List + getServiceResolversBuilderList() { return getServiceResolversFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.v1.EkmConnection.ServiceResolver, - com.google.cloud.kms.v1.EkmConnection.ServiceResolver.Builder, - com.google.cloud.kms.v1.EkmConnection.ServiceResolverOrBuilder> + com.google.cloud.kms.v1.EkmConnection.ServiceResolver, com.google.cloud.kms.v1.EkmConnection.ServiceResolver.Builder, com.google.cloud.kms.v1.EkmConnection.ServiceResolverOrBuilder> getServiceResolversFieldBuilder() { if (serviceResolversBuilder_ == null) { - serviceResolversBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.v1.EkmConnection.ServiceResolver, - com.google.cloud.kms.v1.EkmConnection.ServiceResolver.Builder, - com.google.cloud.kms.v1.EkmConnection.ServiceResolverOrBuilder>( + serviceResolversBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.kms.v1.EkmConnection.ServiceResolver, com.google.cloud.kms.v1.EkmConnection.ServiceResolver.Builder, com.google.cloud.kms.v1.EkmConnection.ServiceResolverOrBuilder>( serviceResolvers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3340,8 +2948,6 @@ public com.google.cloud.kms.v1.EkmConnection.ServiceResolver.Builder addServiceR private java.lang.Object etag_ = ""; /** - * - * *
      * This checksum is computed by the server based on the value of other fields,
      * and may be sent on update requests to ensure the client has an up-to-date
@@ -3349,13 +2955,13 @@ public com.google.cloud.kms.v1.EkmConnection.ServiceResolver.Builder addServiceR
      * 
* * string etag = 5; - * * @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; @@ -3364,8 +2970,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * This checksum is computed by the server based on the value of other fields,
      * and may be sent on update requests to ensure the client has an up-to-date
@@ -3373,14 +2977,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 5; - * * @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 { @@ -3388,8 +2993,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * This checksum is computed by the server based on the value of other fields,
      * and may be sent on update requests to ensure the client has an up-to-date
@@ -3397,22 +3000,20 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 5; - * * @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; } /** - * - * *
      * This checksum is computed by the server based on the value of other fields,
      * and may be sent on update requests to ensure the client has an up-to-date
@@ -3420,18 +3021,15 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 5; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * This checksum is computed by the server based on the value of other fields,
      * and may be sent on update requests to ensure the client has an up-to-date
@@ -3439,23 +3037,23 @@ public Builder clearEtag() {
      * 
* * string etag = 5; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3465,12 +3063,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.EkmConnection) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.EkmConnection) private static final com.google.cloud.kms.v1.EkmConnection DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.EkmConnection(); } @@ -3479,27 +3077,27 @@ public static com.google.cloud.kms.v1.EkmConnection getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EkmConnection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EkmConnection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3514,4 +3112,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.EkmConnection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmConnectionName.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmConnectionName.java similarity index 100% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmConnectionName.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmConnectionName.java diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmConnectionOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmConnectionOrBuilder.java similarity index 82% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmConnectionOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmConnectionOrBuilder.java index bac931a1f4bf..5174dfa933a2 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmConnectionOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmConnectionOrBuilder.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/kms/v1/ekm_service.proto package com.google.cloud.kms.v1; -public interface EkmConnectionOrBuilder - extends +public interface EkmConnectionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.EkmConnection) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name for the
    * [EkmConnection][google.cloud.kms.v1.EkmConnection] in the format
@@ -33,13 +15,10 @@ public interface EkmConnectionOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name for the
    * [EkmConnection][google.cloud.kms.v1.EkmConnection] in the format
@@ -47,55 +26,42 @@ public interface EkmConnectionOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The time at which the
    * [EkmConnection][google.cloud.kms.v1.EkmConnection] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time at which the
    * [EkmConnection][google.cloud.kms.v1.EkmConnection] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time at which the
    * [EkmConnection][google.cloud.kms.v1.EkmConnection] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * A list of
    * [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
@@ -107,10 +73,9 @@ public interface EkmConnectionOrBuilder
    *
    * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3;
    */
-  java.util.List getServiceResolversList();
+  java.util.List 
+      getServiceResolversList();
   /**
-   *
-   *
    * 
    * A list of
    * [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
@@ -124,8 +89,6 @@ public interface EkmConnectionOrBuilder
    */
   com.google.cloud.kms.v1.EkmConnection.ServiceResolver getServiceResolvers(int index);
   /**
-   *
-   *
    * 
    * A list of
    * [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
@@ -139,8 +102,6 @@ public interface EkmConnectionOrBuilder
    */
   int getServiceResolversCount();
   /**
-   *
-   *
    * 
    * A list of
    * [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
@@ -152,11 +113,9 @@ public interface EkmConnectionOrBuilder
    *
    * repeated .google.cloud.kms.v1.EkmConnection.ServiceResolver service_resolvers = 3;
    */
-  java.util.List
+  java.util.List 
       getServiceResolversOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of
    * [ServiceResolvers][google.cloud.kms.v1.EkmConnection.ServiceResolver] where
@@ -172,8 +131,6 @@ com.google.cloud.kms.v1.EkmConnection.ServiceResolverOrBuilder getServiceResolve
       int index);
 
   /**
-   *
-   *
    * 
    * This checksum is computed by the server based on the value of other fields,
    * and may be sent on update requests to ensure the client has an up-to-date
@@ -181,13 +138,10 @@ com.google.cloud.kms.v1.EkmConnection.ServiceResolverOrBuilder getServiceResolve
    * 
* * string etag = 5; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * This checksum is computed by the server based on the value of other fields,
    * and may be sent on update requests to ensure the client has an up-to-date
@@ -195,8 +149,8 @@ com.google.cloud.kms.v1.EkmConnection.ServiceResolverOrBuilder getServiceResolve
    * 
* * string etag = 5; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmServiceProto.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmServiceProto.java new file mode 100644 index 000000000000..fd4dd0b6f55b --- /dev/null +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmServiceProto.java @@ -0,0 +1,223 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/ekm_service.proto + +package com.google.cloud.kms.v1; + +public final class EkmServiceProto { + private EkmServiceProto() {} + 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_kms_v1_ListEkmConnectionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_ListEkmConnectionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_ListEkmConnectionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_ListEkmConnectionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_GetEkmConnectionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_GetEkmConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_CreateEkmConnectionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_CreateEkmConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_UpdateEkmConnectionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_UpdateEkmConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_Certificate_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_Certificate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_EkmConnection_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_EkmConnection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_EkmConnection_ServiceResolver_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_EkmConnection_ServiceResolver_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/kms/v1/ekm_service.proto\022" + + "\023google.cloud.kms.v1\032\034google/api/annotat" + + "ions.proto\032\027google/api/client.proto\032\037goo" + + "gle/api/field_behavior.proto\032\031google/api" + + "/resource.proto\032 google/protobuf/field_m" + + "ask.proto\032\037google/protobuf/timestamp.pro" + + "to\"\263\001\n\031ListEkmConnectionsRequest\0229\n\006pare" + + "nt\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.c" + + "om/Location\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\np" + + "age_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A" + + "\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\206\001\n\032ListEkmConn" + + "ectionsResponse\022;\n\017ekm_connections\030\001 \003(\013" + + "2\".google.cloud.kms.v1.EkmConnection\022\027\n\017" + + "next_page_token\030\002 \001(\t\022\022\n\ntotal_size\030\003 \001(" + + "\005\"V\n\027GetEkmConnectionRequest\022;\n\004name\030\001 \001" + + "(\tB-\340A\002\372A\'\n%cloudkms.googleapis.com/EkmC" + + "onnection\"\270\001\n\032CreateEkmConnectionRequest" + + "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goog" + + "leapis.com/Location\022\036\n\021ekm_connection_id" + + "\030\002 \001(\tB\003\340A\002\022?\n\016ekm_connection\030\003 \001(\0132\".go" + + "ogle.cloud.kms.v1.EkmConnectionB\003\340A\002\"\223\001\n" + + "\032UpdateEkmConnectionRequest\022?\n\016ekm_conne" + + "ction\030\001 \001(\0132\".google.cloud.kms.v1.EkmCon" + + "nectionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.goog" + + "le.protobuf.FieldMaskB\003\340A\002\"\277\002\n\013Certifica" + + "te\022\024\n\007raw_der\030\001 \001(\014B\003\340A\002\022\023\n\006parsed\030\002 \001(\010" + + "B\003\340A\003\022\023\n\006issuer\030\003 \001(\tB\003\340A\003\022\024\n\007subject\030\004 " + + "\001(\tB\003\340A\003\022*\n\035subject_alternative_dns_name" + + "s\030\005 \003(\tB\003\340A\003\0228\n\017not_before_time\030\006 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\0227\n\016not_af" + + "ter_time\030\007 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022\032\n\rserial_number\030\010 \001(\tB\003\340A\003\022\037\n\022s" + + "ha256_fingerprint\030\t \001(\tB\003\340A\003\"\213\004\n\rEkmConn" + + "ection\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time" + + "\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "M\n\021service_resolvers\030\003 \003(\01322.google.clou" + + "d.kms.v1.EkmConnection.ServiceResolver\022\014" + + "\n\004etag\030\005 \001(\t\032\336\001\n\017ServiceResolver\022R\n\031serv" + + "ice_directory_service\030\001 \001(\tB/\340A\002\372A)\n\'ser" + + "vicedirectory.googleapis.com/Service\022\034\n\017" + + "endpoint_filter\030\002 \001(\tB\003\340A\001\022\025\n\010hostname\030\003" + + " \001(\tB\003\340A\002\022B\n\023server_certificates\030\004 \003(\0132 " + + ".google.cloud.kms.v1.CertificateB\003\340A\002:s\352" + + "Ap\n%cloudkms.googleapis.com/EkmConnectio" + + "n\022Gprojects/{project}/locations/{locatio" + + "n}/ekmConnections/{ekm_connection}2\261\007\n\nE" + + "kmService\022\272\001\n\022ListEkmConnections\022..googl" + + "e.cloud.kms.v1.ListEkmConnectionsRequest" + + "\032/.google.cloud.kms.v1.ListEkmConnection" + + "sResponse\"C\202\323\344\223\0024\0222/v1/{parent=projects/" + + "*/locations/*}/ekmConnections\332A\006parent\022\247" + + "\001\n\020GetEkmConnection\022,.google.cloud.kms.v" + + "1.GetEkmConnectionRequest\032\".google.cloud" + + ".kms.v1.EkmConnection\"A\202\323\344\223\0024\0222/v1/{name" + + "=projects/*/locations/*/ekmConnections/*" + + "}\332A\004name\022\340\001\n\023CreateEkmConnection\022/.googl" + + "e.cloud.kms.v1.CreateEkmConnectionReques" + + "t\032\".google.cloud.kms.v1.EkmConnection\"t\202" + + "\323\344\223\002D\"2/v1/{parent=projects/*/locations/" + + "*}/ekmConnections:\016ekm_connection\332A\'pare" + + "nt,ekm_connection_id,ekm_connection\022\342\001\n\023" + + "UpdateEkmConnection\022/.google.cloud.kms.v" + + "1.UpdateEkmConnectionRequest\032\".google.cl" + + "oud.kms.v1.EkmConnection\"v\202\323\344\223\002S2A/v1/{e" + + "km_connection.name=projects/*/locations/" + + "*/ekmConnections/*}:\016ekm_connection\332A\032ek" + + "m_connection,update_mask\032t\312A\027cloudkms.go" + + "ogleapis.com\322AWhttps://www.googleapis.co" + + "m/auth/cloud-platform,https://www.google" + + "apis.com/auth/cloudkmsB\222\002\n\027com.google.cl" + + "oud.kms.v1B\017EkmServiceProtoP\001Z6google.go" + + "lang.org/genproto/googleapis/cloud/kms/v" + + "1;kms\370\001\001\252\002\023Google.Cloud.Kms.V1\312\002\023Google\\" + + "Cloud\\Kms\\V1\352A|\n\'servicedirectory.google" + + "apis.com/Service\022Qprojects/{project}/loc" + + "ations/{location}/namespaces/{namespace}" + + "/services/{service}b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_kms_v1_ListEkmConnectionsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_kms_v1_ListEkmConnectionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_ListEkmConnectionsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_kms_v1_ListEkmConnectionsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_kms_v1_ListEkmConnectionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_ListEkmConnectionsResponse_descriptor, + new java.lang.String[] { "EkmConnections", "NextPageToken", "TotalSize", }); + internal_static_google_cloud_kms_v1_GetEkmConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_kms_v1_GetEkmConnectionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_GetEkmConnectionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_kms_v1_CreateEkmConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_kms_v1_CreateEkmConnectionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_CreateEkmConnectionRequest_descriptor, + new java.lang.String[] { "Parent", "EkmConnectionId", "EkmConnection", }); + internal_static_google_cloud_kms_v1_UpdateEkmConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_kms_v1_UpdateEkmConnectionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_UpdateEkmConnectionRequest_descriptor, + new java.lang.String[] { "EkmConnection", "UpdateMask", }); + internal_static_google_cloud_kms_v1_Certificate_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_kms_v1_Certificate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_Certificate_descriptor, + new java.lang.String[] { "RawDer", "Parsed", "Issuer", "Subject", "SubjectAlternativeDnsNames", "NotBeforeTime", "NotAfterTime", "SerialNumber", "Sha256Fingerprint", }); + internal_static_google_cloud_kms_v1_EkmConnection_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_kms_v1_EkmConnection_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_EkmConnection_descriptor, + new java.lang.String[] { "Name", "CreateTime", "ServiceResolvers", "Etag", }); + internal_static_google_cloud_kms_v1_EkmConnection_ServiceResolver_descriptor = + internal_static_google_cloud_kms_v1_EkmConnection_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_kms_v1_EkmConnection_ServiceResolver_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_EkmConnection_ServiceResolver_descriptor, + new java.lang.String[] { "ServiceDirectoryService", "EndpointFilter", "Hostname", "ServerCertificates", }); + 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.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + 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.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptRequest.java similarity index 80% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptRequest.java index eda4c0c44fc4..79716b6a9705 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptRequest.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for
  * [KeyManagementService.Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.EncryptRequest}
  */
-public final class EncryptRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class EncryptRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.EncryptRequest)
     EncryptRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use EncryptRequest.newBuilder() to construct.
   private EncryptRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private EncryptRequest() {
     name_ = "";
     plaintext_ = com.google.protobuf.ByteString.EMPTY;
@@ -46,35 +28,32 @@ private EncryptRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new EncryptRequest();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_EncryptRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_EncryptRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_EncryptRequest_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_EncryptRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.EncryptRequest.class,
-            com.google.cloud.kms.v1.EncryptRequest.Builder.class);
+            com.google.cloud.kms.v1.EncryptRequest.class, com.google.cloud.kms.v1.EncryptRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name of the
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] or
@@ -84,10 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * will use its [primary version][google.cloud.kms.v1.CryptoKey.primary].
    * 
* - * - * string name = 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 @@ -96,15 +72,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] or
@@ -114,18 +89,17 @@ public java.lang.String getName() {
    * will use its [primary version][google.cloud.kms.v1.CryptoKey.primary].
    * 
* - * - * string name = 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 { @@ -136,8 +110,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PLAINTEXT_FIELD_NUMBER = 2; private com.google.protobuf.ByteString plaintext_; /** - * - * *
    * Required. The data to encrypt. Must be no larger than 64KiB.
    * The maximum size depends on the key version's
@@ -150,7 +122,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * bytes plaintext = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The plaintext. */ @java.lang.Override @@ -161,8 +132,6 @@ public com.google.protobuf.ByteString getPlaintext() { public static final int ADDITIONAL_AUTHENTICATED_DATA_FIELD_NUMBER = 3; private com.google.protobuf.ByteString additionalAuthenticatedData_; /** - * - * *
    * Optional. Optional data that, if specified, must also be provided during
    * decryption through
@@ -177,7 +146,6 @@ public com.google.protobuf.ByteString getPlaintext() {
    * 
* * bytes additional_authenticated_data = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The additionalAuthenticatedData. */ @java.lang.Override @@ -188,8 +156,6 @@ public com.google.protobuf.ByteString getAdditionalAuthenticatedData() { public static final int PLAINTEXT_CRC32C_FIELD_NUMBER = 7; private com.google.protobuf.Int64Value plaintextCrc32C_; /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext].
@@ -212,10 +178,7 @@ public com.google.protobuf.ByteString getAdditionalAuthenticatedData() {
    * this type.
    * 
* - * - * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the plaintextCrc32c field is set. */ @java.lang.Override @@ -223,8 +186,6 @@ public boolean hasPlaintextCrc32C() { return plaintextCrc32C_ != null; } /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext].
@@ -247,21 +208,14 @@ public boolean hasPlaintextCrc32C() {
    * this type.
    * 
* - * - * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The plaintextCrc32c. */ @java.lang.Override public com.google.protobuf.Int64Value getPlaintextCrc32C() { - return plaintextCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : plaintextCrc32C_; + return plaintextCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : plaintextCrc32C_; } /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext].
@@ -284,9 +238,7 @@ public com.google.protobuf.Int64Value getPlaintextCrc32C() {
    * this type.
    * 
* - * - * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getPlaintextCrc32COrBuilder() { @@ -296,8 +248,6 @@ public com.google.protobuf.Int64ValueOrBuilder getPlaintextCrc32COrBuilder() { public static final int ADDITIONAL_AUTHENTICATED_DATA_CRC32C_FIELD_NUMBER = 8; private com.google.protobuf.Int64Value additionalAuthenticatedDataCrc32C_; /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data].
@@ -320,10 +270,7 @@ public com.google.protobuf.Int64ValueOrBuilder getPlaintextCrc32COrBuilder() {
    * this type.
    * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the additionalAuthenticatedDataCrc32c field is set. */ @java.lang.Override @@ -331,8 +278,6 @@ public boolean hasAdditionalAuthenticatedDataCrc32C() { return additionalAuthenticatedDataCrc32C_ != null; } /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data].
@@ -355,21 +300,14 @@ public boolean hasAdditionalAuthenticatedDataCrc32C() {
    * this type.
    * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The additionalAuthenticatedDataCrc32c. */ @java.lang.Override public com.google.protobuf.Int64Value getAdditionalAuthenticatedDataCrc32C() { - return additionalAuthenticatedDataCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : additionalAuthenticatedDataCrc32C_; + return additionalAuthenticatedDataCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : additionalAuthenticatedDataCrc32C_; } /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data].
@@ -392,9 +330,7 @@ public com.google.protobuf.Int64Value getAdditionalAuthenticatedDataCrc32C() {
    * this type.
    * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getAdditionalAuthenticatedDataCrc32COrBuilder() { @@ -402,7 +338,6 @@ public com.google.protobuf.Int64ValueOrBuilder getAdditionalAuthenticatedDataCrc } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -414,7 +349,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -443,19 +379,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!plaintext_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, plaintext_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, plaintext_); } if (!additionalAuthenticatedData_.isEmpty()) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize(3, additionalAuthenticatedData_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, additionalAuthenticatedData_); } if (plaintextCrc32C_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getPlaintextCrc32C()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getPlaintextCrc32C()); } if (additionalAuthenticatedDataCrc32C_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, getAdditionalAuthenticatedDataCrc32C()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getAdditionalAuthenticatedDataCrc32C()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -465,23 +402,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.kms.v1.EncryptRequest)) { return super.equals(obj); } com.google.cloud.kms.v1.EncryptRequest other = (com.google.cloud.kms.v1.EncryptRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getPlaintext().equals(other.getPlaintext())) return false; - if (!getAdditionalAuthenticatedData().equals(other.getAdditionalAuthenticatedData())) - return false; + if (!getName() + .equals(other.getName())) return false; + if (!getPlaintext() + .equals(other.getPlaintext())) return false; + if (!getAdditionalAuthenticatedData() + .equals(other.getAdditionalAuthenticatedData())) return false; if (hasPlaintextCrc32C() != other.hasPlaintextCrc32C()) return false; if (hasPlaintextCrc32C()) { - if (!getPlaintextCrc32C().equals(other.getPlaintextCrc32C())) return false; + if (!getPlaintextCrc32C() + .equals(other.getPlaintextCrc32C())) return false; } - if (hasAdditionalAuthenticatedDataCrc32C() != other.hasAdditionalAuthenticatedDataCrc32C()) - return false; + if (hasAdditionalAuthenticatedDataCrc32C() != other.hasAdditionalAuthenticatedDataCrc32C()) return false; if (hasAdditionalAuthenticatedDataCrc32C()) { if (!getAdditionalAuthenticatedDataCrc32C() .equals(other.getAdditionalAuthenticatedDataCrc32C())) return false; @@ -516,104 +455,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.EncryptRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.EncryptRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.EncryptRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.EncryptRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.EncryptRequest parseFrom( 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.kms.v1.EncryptRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.EncryptRequest parseFrom( - byte[] data, com.google.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.kms.v1.EncryptRequest parseFrom(java.io.InputStream input) 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.kms.v1.EncryptRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.EncryptRequest 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.kms.v1.EncryptRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.EncryptRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.EncryptRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.EncryptRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for
    * [KeyManagementService.Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt].
@@ -621,32 +553,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.EncryptRequest}
    */
-  public static final class Builder extends 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.kms.v1.EncryptRequest)
       com.google.cloud.kms.v1.EncryptRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_EncryptRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_EncryptRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_EncryptRequest_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_EncryptRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.EncryptRequest.class,
-              com.google.cloud.kms.v1.EncryptRequest.Builder.class);
+              com.google.cloud.kms.v1.EncryptRequest.class, com.google.cloud.kms.v1.EncryptRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.EncryptRequest.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 +605,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_EncryptRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_EncryptRequest_descriptor;
     }
 
     @java.lang.Override
@@ -693,8 +626,7 @@ public com.google.cloud.kms.v1.EncryptRequest build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.EncryptRequest buildPartial() {
-      com.google.cloud.kms.v1.EncryptRequest result =
-          new com.google.cloud.kms.v1.EncryptRequest(this);
+      com.google.cloud.kms.v1.EncryptRequest result = new com.google.cloud.kms.v1.EncryptRequest(this);
       result.name_ = name_;
       result.plaintext_ = plaintext_;
       result.additionalAuthenticatedData_ = additionalAuthenticatedData_;
@@ -706,8 +638,7 @@ public com.google.cloud.kms.v1.EncryptRequest buildPartial() {
       if (additionalAuthenticatedDataCrc32CBuilder_ == null) {
         result.additionalAuthenticatedDataCrc32C_ = additionalAuthenticatedDataCrc32C_;
       } else {
-        result.additionalAuthenticatedDataCrc32C_ =
-            additionalAuthenticatedDataCrc32CBuilder_.build();
+        result.additionalAuthenticatedDataCrc32C_ = additionalAuthenticatedDataCrc32CBuilder_.build();
       }
       onBuilt();
       return result;
@@ -717,39 +648,38 @@ public com.google.cloud.kms.v1.EncryptRequest 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.kms.v1.EncryptRequest) {
-        return mergeFrom((com.google.cloud.kms.v1.EncryptRequest) other);
+        return mergeFrom((com.google.cloud.kms.v1.EncryptRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -800,45 +730,41 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 18:
-              {
-                plaintext_ = input.readBytes();
-
-                break;
-              } // case 18
-            case 26:
-              {
-                additionalAuthenticatedData_ = input.readBytes();
-
-                break;
-              } // case 26
-            case 58:
-              {
-                input.readMessage(getPlaintextCrc32CFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(
-                    getAdditionalAuthenticatedDataCrc32CFieldBuilder().getBuilder(),
-                    extensionRegistry);
-
-                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: {
+              plaintext_ = input.readBytes();
+
+              break;
+            } // case 18
+            case 26: {
+              additionalAuthenticatedData_ = input.readBytes();
+
+              break;
+            } // case 26
+            case 58: {
+              input.readMessage(
+                  getPlaintextCrc32CFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getAdditionalAuthenticatedDataCrc32CFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              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) {
@@ -851,8 +777,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] or
@@ -862,16 +786,14 @@ public Builder mergeFrom(
      * will use its [primary version][google.cloud.kms.v1.CryptoKey.primary].
      * 
* - * - * string name = 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; @@ -880,8 +802,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] or
@@ -891,17 +811,16 @@ public java.lang.String getName() {
      * will use its [primary version][google.cloud.kms.v1.CryptoKey.primary].
      * 
* - * - * string name = 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 { @@ -909,8 +828,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] or
@@ -920,25 +837,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      * will use its [primary version][google.cloud.kms.v1.CryptoKey.primary].
      * 
* - * - * 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
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] or
@@ -948,21 +861,16 @@ public Builder setName(java.lang.String value) {
      * will use its [primary version][google.cloud.kms.v1.CryptoKey.primary].
      * 
* - * - * string 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
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] or
@@ -972,19 +880,17 @@ public Builder clearName() {
      * will use its [primary version][google.cloud.kms.v1.CryptoKey.primary].
      * 
* - * - * 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; @@ -992,8 +898,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.ByteString plaintext_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Required. The data to encrypt. Must be no larger than 64KiB.
      * The maximum size depends on the key version's
@@ -1006,7 +910,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * bytes plaintext = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The plaintext. */ @java.lang.Override @@ -1014,8 +917,6 @@ public com.google.protobuf.ByteString getPlaintext() { return plaintext_; } /** - * - * *
      * Required. The data to encrypt. Must be no larger than 64KiB.
      * The maximum size depends on the key version's
@@ -1028,22 +929,19 @@ public com.google.protobuf.ByteString getPlaintext() {
      * 
* * bytes plaintext = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The plaintext to set. * @return This builder for chaining. */ public Builder setPlaintext(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + plaintext_ = value; onChanged(); return this; } /** - * - * *
      * Required. The data to encrypt. Must be no larger than 64KiB.
      * The maximum size depends on the key version's
@@ -1056,21 +954,17 @@ public Builder setPlaintext(com.google.protobuf.ByteString value) {
      * 
* * bytes plaintext = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPlaintext() { - + plaintext_ = getDefaultInstance().getPlaintext(); onChanged(); return this; } - private com.google.protobuf.ByteString additionalAuthenticatedData_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString additionalAuthenticatedData_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Optional. Optional data that, if specified, must also be provided during
      * decryption through
@@ -1084,9 +978,7 @@ public Builder clearPlaintext() {
      * than 8KiB.
      * 
* - * bytes additional_authenticated_data = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bytes additional_authenticated_data = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The additionalAuthenticatedData. */ @java.lang.Override @@ -1094,8 +986,6 @@ public com.google.protobuf.ByteString getAdditionalAuthenticatedData() { return additionalAuthenticatedData_; } /** - * - * *
      * Optional. Optional data that, if specified, must also be provided during
      * decryption through
@@ -1109,24 +999,20 @@ public com.google.protobuf.ByteString getAdditionalAuthenticatedData() {
      * than 8KiB.
      * 
* - * bytes additional_authenticated_data = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bytes additional_authenticated_data = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The additionalAuthenticatedData to set. * @return This builder for chaining. */ public Builder setAdditionalAuthenticatedData(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + additionalAuthenticatedData_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Optional data that, if specified, must also be provided during
      * decryption through
@@ -1140,13 +1026,11 @@ public Builder setAdditionalAuthenticatedData(com.google.protobuf.ByteString val
      * than 8KiB.
      * 
* - * bytes additional_authenticated_data = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bytes additional_authenticated_data = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearAdditionalAuthenticatedData() { - + additionalAuthenticatedData_ = getDefaultInstance().getAdditionalAuthenticatedData(); onChanged(); return this; @@ -1154,13 +1038,8 @@ public Builder clearAdditionalAuthenticatedData() { private com.google.protobuf.Int64Value plaintextCrc32C_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> - plaintextCrc32CBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> plaintextCrc32CBuilder_; /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext].
@@ -1183,18 +1062,13 @@ public Builder clearAdditionalAuthenticatedData() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the plaintextCrc32c field is set. */ public boolean hasPlaintextCrc32C() { return plaintextCrc32CBuilder_ != null || plaintextCrc32C_ != null; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext].
@@ -1217,24 +1091,17 @@ public boolean hasPlaintextCrc32C() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The plaintextCrc32c. */ public com.google.protobuf.Int64Value getPlaintextCrc32C() { if (plaintextCrc32CBuilder_ == null) { - return plaintextCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : plaintextCrc32C_; + return plaintextCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : plaintextCrc32C_; } else { return plaintextCrc32CBuilder_.getMessage(); } } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext].
@@ -1257,9 +1124,7 @@ public com.google.protobuf.Int64Value getPlaintextCrc32C() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPlaintextCrc32C(com.google.protobuf.Int64Value value) { if (plaintextCrc32CBuilder_ == null) { @@ -1275,8 +1140,6 @@ public Builder setPlaintextCrc32C(com.google.protobuf.Int64Value value) { return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext].
@@ -1299,11 +1162,10 @@ public Builder setPlaintextCrc32C(com.google.protobuf.Int64Value value) {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setPlaintextCrc32C(com.google.protobuf.Int64Value.Builder builderForValue) { + public Builder setPlaintextCrc32C( + com.google.protobuf.Int64Value.Builder builderForValue) { if (plaintextCrc32CBuilder_ == null) { plaintextCrc32C_ = builderForValue.build(); onChanged(); @@ -1314,8 +1176,6 @@ public Builder setPlaintextCrc32C(com.google.protobuf.Int64Value.Builder builder return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext].
@@ -1338,17 +1198,13 @@ public Builder setPlaintextCrc32C(com.google.protobuf.Int64Value.Builder builder
      * this type.
      * 
* - * - * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergePlaintextCrc32C(com.google.protobuf.Int64Value value) { if (plaintextCrc32CBuilder_ == null) { if (plaintextCrc32C_ != null) { plaintextCrc32C_ = - com.google.protobuf.Int64Value.newBuilder(plaintextCrc32C_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Int64Value.newBuilder(plaintextCrc32C_).mergeFrom(value).buildPartial(); } else { plaintextCrc32C_ = value; } @@ -1360,8 +1216,6 @@ public Builder mergePlaintextCrc32C(com.google.protobuf.Int64Value value) { return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext].
@@ -1384,9 +1238,7 @@ public Builder mergePlaintextCrc32C(com.google.protobuf.Int64Value value) {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPlaintextCrc32C() { if (plaintextCrc32CBuilder_ == null) { @@ -1400,8 +1252,6 @@ public Builder clearPlaintextCrc32C() { return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext].
@@ -1424,18 +1274,14 @@ public Builder clearPlaintextCrc32C() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Int64Value.Builder getPlaintextCrc32CBuilder() { - + onChanged(); return getPlaintextCrc32CFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext].
@@ -1458,22 +1304,17 @@ public com.google.protobuf.Int64Value.Builder getPlaintextCrc32CBuilder() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Int64ValueOrBuilder getPlaintextCrc32COrBuilder() { if (plaintextCrc32CBuilder_ != null) { return plaintextCrc32CBuilder_.getMessageOrBuilder(); } else { - return plaintextCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : plaintextCrc32C_; + return plaintextCrc32C_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : plaintextCrc32C_; } } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext].
@@ -1496,22 +1337,17 @@ public com.google.protobuf.Int64ValueOrBuilder getPlaintextCrc32COrBuilder() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getPlaintextCrc32CFieldBuilder() { if (plaintextCrc32CBuilder_ == null) { - plaintextCrc32CBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder>( - getPlaintextCrc32C(), getParentForChildren(), isClean()); + plaintextCrc32CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getPlaintextCrc32C(), + getParentForChildren(), + isClean()); plaintextCrc32C_ = null; } return plaintextCrc32CBuilder_; @@ -1519,13 +1355,8 @@ public com.google.protobuf.Int64ValueOrBuilder getPlaintextCrc32COrBuilder() { private com.google.protobuf.Int64Value additionalAuthenticatedDataCrc32C_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> - additionalAuthenticatedDataCrc32CBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> additionalAuthenticatedDataCrc32CBuilder_; /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data].
@@ -1548,19 +1379,13 @@ public com.google.protobuf.Int64ValueOrBuilder getPlaintextCrc32COrBuilder() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the additionalAuthenticatedDataCrc32c field is set. */ public boolean hasAdditionalAuthenticatedDataCrc32C() { - return additionalAuthenticatedDataCrc32CBuilder_ != null - || additionalAuthenticatedDataCrc32C_ != null; + return additionalAuthenticatedDataCrc32CBuilder_ != null || additionalAuthenticatedDataCrc32C_ != null; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data].
@@ -1583,24 +1408,17 @@ public boolean hasAdditionalAuthenticatedDataCrc32C() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The additionalAuthenticatedDataCrc32c. */ public com.google.protobuf.Int64Value getAdditionalAuthenticatedDataCrc32C() { if (additionalAuthenticatedDataCrc32CBuilder_ == null) { - return additionalAuthenticatedDataCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : additionalAuthenticatedDataCrc32C_; + return additionalAuthenticatedDataCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : additionalAuthenticatedDataCrc32C_; } else { return additionalAuthenticatedDataCrc32CBuilder_.getMessage(); } } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data].
@@ -1623,9 +1441,7 @@ public com.google.protobuf.Int64Value getAdditionalAuthenticatedDataCrc32C() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAdditionalAuthenticatedDataCrc32C(com.google.protobuf.Int64Value value) { if (additionalAuthenticatedDataCrc32CBuilder_ == null) { @@ -1641,8 +1457,6 @@ public Builder setAdditionalAuthenticatedDataCrc32C(com.google.protobuf.Int64Val return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data].
@@ -1665,9 +1479,7 @@ public Builder setAdditionalAuthenticatedDataCrc32C(com.google.protobuf.Int64Val
      * this type.
      * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAdditionalAuthenticatedDataCrc32C( com.google.protobuf.Int64Value.Builder builderForValue) { @@ -1681,8 +1493,6 @@ public Builder setAdditionalAuthenticatedDataCrc32C( return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data].
@@ -1705,17 +1515,13 @@ public Builder setAdditionalAuthenticatedDataCrc32C(
      * this type.
      * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeAdditionalAuthenticatedDataCrc32C(com.google.protobuf.Int64Value value) { if (additionalAuthenticatedDataCrc32CBuilder_ == null) { if (additionalAuthenticatedDataCrc32C_ != null) { additionalAuthenticatedDataCrc32C_ = - com.google.protobuf.Int64Value.newBuilder(additionalAuthenticatedDataCrc32C_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Int64Value.newBuilder(additionalAuthenticatedDataCrc32C_).mergeFrom(value).buildPartial(); } else { additionalAuthenticatedDataCrc32C_ = value; } @@ -1727,8 +1533,6 @@ public Builder mergeAdditionalAuthenticatedDataCrc32C(com.google.protobuf.Int64V return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data].
@@ -1751,9 +1555,7 @@ public Builder mergeAdditionalAuthenticatedDataCrc32C(com.google.protobuf.Int64V
      * this type.
      * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAdditionalAuthenticatedDataCrc32C() { if (additionalAuthenticatedDataCrc32CBuilder_ == null) { @@ -1767,8 +1569,6 @@ public Builder clearAdditionalAuthenticatedDataCrc32C() { return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data].
@@ -1791,18 +1591,14 @@ public Builder clearAdditionalAuthenticatedDataCrc32C() {
      * this type.
      * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Int64Value.Builder getAdditionalAuthenticatedDataCrc32CBuilder() { - + onChanged(); return getAdditionalAuthenticatedDataCrc32CFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data].
@@ -1825,22 +1621,17 @@ public com.google.protobuf.Int64Value.Builder getAdditionalAuthenticatedDataCrc3
      * this type.
      * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Int64ValueOrBuilder getAdditionalAuthenticatedDataCrc32COrBuilder() { if (additionalAuthenticatedDataCrc32CBuilder_ != null) { return additionalAuthenticatedDataCrc32CBuilder_.getMessageOrBuilder(); } else { - return additionalAuthenticatedDataCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : additionalAuthenticatedDataCrc32C_; + return additionalAuthenticatedDataCrc32C_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : additionalAuthenticatedDataCrc32C_; } } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data].
@@ -1863,29 +1654,24 @@ public com.google.protobuf.Int64ValueOrBuilder getAdditionalAuthenticatedDataCrc
      * this type.
      * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getAdditionalAuthenticatedDataCrc32CFieldBuilder() { if (additionalAuthenticatedDataCrc32CBuilder_ == null) { - additionalAuthenticatedDataCrc32CBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder>( - getAdditionalAuthenticatedDataCrc32C(), getParentForChildren(), isClean()); + additionalAuthenticatedDataCrc32CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getAdditionalAuthenticatedDataCrc32C(), + getParentForChildren(), + isClean()); additionalAuthenticatedDataCrc32C_ = null; } return additionalAuthenticatedDataCrc32CBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1895,12 +1681,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.EncryptRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.EncryptRequest) private static final com.google.cloud.kms.v1.EncryptRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.EncryptRequest(); } @@ -1909,27 +1695,27 @@ public static com.google.cloud.kms.v1.EncryptRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EncryptRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EncryptRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1944,4 +1730,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.EncryptRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptRequestOrBuilder.java similarity index 85% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptRequestOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptRequestOrBuilder.java index 48244a345b7c..cc66ece94d04 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptRequestOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptRequestOrBuilder.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/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface EncryptRequestOrBuilder - extends +public interface EncryptRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.EncryptRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] or
@@ -35,16 +17,11 @@ public interface EncryptRequestOrBuilder
    * will use its [primary version][google.cloud.kms.v1.CryptoKey.primary].
    * 
* - * - * string name = 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
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] or
@@ -54,17 +31,13 @@ public interface EncryptRequestOrBuilder
    * will use its [primary version][google.cloud.kms.v1.CryptoKey.primary].
    * 
* - * - * string name = 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 data to encrypt. Must be no larger than 64KiB.
    * The maximum size depends on the key version's
@@ -77,14 +50,11 @@ public interface EncryptRequestOrBuilder
    * 
* * bytes plaintext = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The plaintext. */ com.google.protobuf.ByteString getPlaintext(); /** - * - * *
    * Optional. Optional data that, if specified, must also be provided during
    * decryption through
@@ -99,14 +69,11 @@ public interface EncryptRequestOrBuilder
    * 
* * bytes additional_authenticated_data = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The additionalAuthenticatedData. */ com.google.protobuf.ByteString getAdditionalAuthenticatedData(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext].
@@ -129,16 +96,11 @@ public interface EncryptRequestOrBuilder
    * this type.
    * 
* - * - * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the plaintextCrc32c field is set. */ boolean hasPlaintextCrc32C(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext].
@@ -161,16 +123,11 @@ public interface EncryptRequestOrBuilder
    * this type.
    * 
* - * - * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The plaintextCrc32c. */ com.google.protobuf.Int64Value getPlaintextCrc32C(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext].
@@ -193,15 +150,11 @@ public interface EncryptRequestOrBuilder
    * this type.
    * 
* - * - * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value plaintext_crc32c = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.Int64ValueOrBuilder getPlaintextCrc32COrBuilder(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data].
@@ -224,16 +177,11 @@ public interface EncryptRequestOrBuilder
    * this type.
    * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the additionalAuthenticatedDataCrc32c field is set. */ boolean hasAdditionalAuthenticatedDataCrc32C(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data].
@@ -256,16 +204,11 @@ public interface EncryptRequestOrBuilder
    * this type.
    * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The additionalAuthenticatedDataCrc32c. */ com.google.protobuf.Int64Value getAdditionalAuthenticatedDataCrc32C(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data].
@@ -288,9 +231,7 @@ public interface EncryptRequestOrBuilder
    * this type.
    * 
* - * - * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 8 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.Int64ValueOrBuilder getAdditionalAuthenticatedDataCrc32COrBuilder(); } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptResponse.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptResponse.java similarity index 80% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptResponse.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptResponse.java index 0e262d6345f4..1ef8c4486c5f 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptResponse.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptResponse.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Response message for
  * [KeyManagementService.Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.EncryptResponse}
  */
-public final class EncryptResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class EncryptResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.EncryptResponse)
     EncryptResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use EncryptResponse.newBuilder() to construct.
   private EncryptResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private EncryptResponse() {
     name_ = "";
     ciphertext_ = com.google.protobuf.ByteString.EMPTY;
@@ -46,35 +28,32 @@ private EncryptResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new EncryptResponse();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_EncryptResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_EncryptResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_EncryptResponse_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_EncryptResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.EncryptResponse.class,
-            com.google.cloud.kms.v1.EncryptResponse.Builder.class);
+            com.google.cloud.kms.v1.EncryptResponse.class, com.google.cloud.kms.v1.EncryptResponse.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * The resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -83,7 +62,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -92,15 +70,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 resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -109,15 +86,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 { @@ -128,14 +106,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CIPHERTEXT_FIELD_NUMBER = 2; private com.google.protobuf.ByteString ciphertext_; /** - * - * *
    * The encrypted data.
    * 
* * bytes ciphertext = 2; - * * @return The ciphertext. */ @java.lang.Override @@ -146,8 +121,6 @@ public com.google.protobuf.ByteString getCiphertext() { public static final int CIPHERTEXT_CRC32C_FIELD_NUMBER = 4; private com.google.protobuf.Int64Value ciphertextCrc32C_; /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext].
@@ -165,7 +138,6 @@ public com.google.protobuf.ByteString getCiphertext() {
    * 
* * .google.protobuf.Int64Value ciphertext_crc32c = 4; - * * @return Whether the ciphertextCrc32c field is set. */ @java.lang.Override @@ -173,8 +145,6 @@ public boolean hasCiphertextCrc32C() { return ciphertextCrc32C_ != null; } /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext].
@@ -192,18 +162,13 @@ public boolean hasCiphertextCrc32C() {
    * 
* * .google.protobuf.Int64Value ciphertext_crc32c = 4; - * * @return The ciphertextCrc32c. */ @java.lang.Override public com.google.protobuf.Int64Value getCiphertextCrc32C() { - return ciphertextCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : ciphertextCrc32C_; + return ciphertextCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : ciphertextCrc32C_; } /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext].
@@ -230,8 +195,6 @@ public com.google.protobuf.Int64ValueOrBuilder getCiphertextCrc32COrBuilder() {
   public static final int VERIFIED_PLAINTEXT_CRC32C_FIELD_NUMBER = 5;
   private boolean verifiedPlaintextCrc32C_;
   /**
-   *
-   *
    * 
    * Integrity verification field. A flag indicating whether
    * [EncryptRequest.plaintext_crc32c][google.cloud.kms.v1.EncryptRequest.plaintext_crc32c]
@@ -250,7 +213,6 @@ public com.google.protobuf.Int64ValueOrBuilder getCiphertextCrc32COrBuilder() {
    * 
* * bool verified_plaintext_crc32c = 5; - * * @return The verifiedPlaintextCrc32c. */ @java.lang.Override @@ -261,8 +223,6 @@ public boolean getVerifiedPlaintextCrc32C() { public static final int VERIFIED_ADDITIONAL_AUTHENTICATED_DATA_CRC32C_FIELD_NUMBER = 6; private boolean verifiedAdditionalAuthenticatedDataCrc32C_; /** - * - * *
    * Integrity verification field. A flag indicating whether
    * [EncryptRequest.additional_authenticated_data_crc32c][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data_crc32c]
@@ -281,7 +241,6 @@ public boolean getVerifiedPlaintextCrc32C() {
    * 
* * bool verified_additional_authenticated_data_crc32c = 6; - * * @return The verifiedAdditionalAuthenticatedDataCrc32c. */ @java.lang.Override @@ -292,8 +251,6 @@ public boolean getVerifiedAdditionalAuthenticatedDataCrc32C() { public static final int PROTECTION_LEVEL_FIELD_NUMBER = 7; private int protectionLevel_; /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -301,16 +258,12 @@ public boolean getVerifiedAdditionalAuthenticatedDataCrc32C() {
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 7; - * * @return The enum numeric value on the wire for protectionLevel. */ - @java.lang.Override - public int getProtectionLevelValue() { + @java.lang.Override public int getProtectionLevelValue() { return protectionLevel_; } /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -318,19 +271,15 @@ public int getProtectionLevelValue() {
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 7; - * * @return The protectionLevel. */ - @java.lang.Override - public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { + @java.lang.Override public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.ProtectionLevel result = - com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); + com.google.cloud.kms.v1.ProtectionLevel result = com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); return result == null ? com.google.cloud.kms.v1.ProtectionLevel.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -342,7 +291,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -358,8 +308,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (verifiedAdditionalAuthenticatedDataCrc32C_ != false) { output.writeBool(6, verifiedAdditionalAuthenticatedDataCrc32C_); } - if (protectionLevel_ - != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { + if (protectionLevel_ != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(7, protectionLevel_); } getUnknownFields().writeTo(output); @@ -375,22 +324,24 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!ciphertext_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, ciphertext_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, ciphertext_); } if (ciphertextCrc32C_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCiphertextCrc32C()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCiphertextCrc32C()); } if (verifiedPlaintextCrc32C_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, verifiedPlaintextCrc32C_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, verifiedPlaintextCrc32C_); } if (verifiedAdditionalAuthenticatedDataCrc32C_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 6, verifiedAdditionalAuthenticatedDataCrc32C_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, verifiedAdditionalAuthenticatedDataCrc32C_); } - if (protectionLevel_ - != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, protectionLevel_); + if (protectionLevel_ != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, protectionLevel_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -400,20 +351,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.kms.v1.EncryptResponse)) { return super.equals(obj); } com.google.cloud.kms.v1.EncryptResponse other = (com.google.cloud.kms.v1.EncryptResponse) obj; - if (!getName().equals(other.getName())) return false; - if (!getCiphertext().equals(other.getCiphertext())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getCiphertext() + .equals(other.getCiphertext())) return false; if (hasCiphertextCrc32C() != other.hasCiphertextCrc32C()) return false; if (hasCiphertextCrc32C()) { - if (!getCiphertextCrc32C().equals(other.getCiphertextCrc32C())) return false; + if (!getCiphertextCrc32C() + .equals(other.getCiphertextCrc32C())) return false; } - if (getVerifiedPlaintextCrc32C() != other.getVerifiedPlaintextCrc32C()) return false; + if (getVerifiedPlaintextCrc32C() + != other.getVerifiedPlaintextCrc32C()) return false; if (getVerifiedAdditionalAuthenticatedDataCrc32C() != other.getVerifiedAdditionalAuthenticatedDataCrc32C()) return false; if (protectionLevel_ != other.protectionLevel_) return false; @@ -437,12 +392,11 @@ public int hashCode() { hash = (53 * hash) + getCiphertextCrc32C().hashCode(); } hash = (37 * hash) + VERIFIED_PLAINTEXT_CRC32C_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVerifiedPlaintextCrc32C()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getVerifiedPlaintextCrc32C()); hash = (37 * hash) + VERIFIED_ADDITIONAL_AUTHENTICATED_DATA_CRC32C_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean( - getVerifiedAdditionalAuthenticatedDataCrc32C()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getVerifiedAdditionalAuthenticatedDataCrc32C()); hash = (37 * hash) + PROTECTION_LEVEL_FIELD_NUMBER; hash = (53 * hash) + protectionLevel_; hash = (29 * hash) + getUnknownFields().hashCode(); @@ -450,104 +404,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.EncryptResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.EncryptResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.EncryptResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.EncryptResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.EncryptResponse parseFrom( 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.kms.v1.EncryptResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.EncryptResponse parseFrom( - byte[] data, com.google.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.kms.v1.EncryptResponse parseFrom(java.io.InputStream input) 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.kms.v1.EncryptResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.EncryptResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.EncryptResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.EncryptResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.EncryptResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.EncryptResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.EncryptResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for
    * [KeyManagementService.Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt].
@@ -555,32 +502,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.EncryptResponse}
    */
-  public static final class Builder extends 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.kms.v1.EncryptResponse)
       com.google.cloud.kms.v1.EncryptResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_EncryptResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_EncryptResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_EncryptResponse_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_EncryptResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.EncryptResponse.class,
-              com.google.cloud.kms.v1.EncryptResponse.Builder.class);
+              com.google.cloud.kms.v1.EncryptResponse.class, com.google.cloud.kms.v1.EncryptResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.EncryptResponse.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();
@@ -604,9 +552,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_EncryptResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_EncryptResponse_descriptor;
     }
 
     @java.lang.Override
@@ -625,8 +573,7 @@ public com.google.cloud.kms.v1.EncryptResponse build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.EncryptResponse buildPartial() {
-      com.google.cloud.kms.v1.EncryptResponse result =
-          new com.google.cloud.kms.v1.EncryptResponse(this);
+      com.google.cloud.kms.v1.EncryptResponse result = new com.google.cloud.kms.v1.EncryptResponse(this);
       result.name_ = name_;
       result.ciphertext_ = ciphertext_;
       if (ciphertextCrc32CBuilder_ == null) {
@@ -635,8 +582,7 @@ public com.google.cloud.kms.v1.EncryptResponse buildPartial() {
         result.ciphertextCrc32C_ = ciphertextCrc32CBuilder_.build();
       }
       result.verifiedPlaintextCrc32C_ = verifiedPlaintextCrc32C_;
-      result.verifiedAdditionalAuthenticatedDataCrc32C_ =
-          verifiedAdditionalAuthenticatedDataCrc32C_;
+      result.verifiedAdditionalAuthenticatedDataCrc32C_ = verifiedAdditionalAuthenticatedDataCrc32C_;
       result.protectionLevel_ = protectionLevel_;
       onBuilt();
       return result;
@@ -646,39 +592,38 @@ public com.google.cloud.kms.v1.EncryptResponse 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.kms.v1.EncryptResponse) {
-        return mergeFrom((com.google.cloud.kms.v1.EncryptResponse) other);
+        return mergeFrom((com.google.cloud.kms.v1.EncryptResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -701,8 +646,7 @@ public Builder mergeFrom(com.google.cloud.kms.v1.EncryptResponse other) {
         setVerifiedPlaintextCrc32C(other.getVerifiedPlaintextCrc32C());
       }
       if (other.getVerifiedAdditionalAuthenticatedDataCrc32C() != false) {
-        setVerifiedAdditionalAuthenticatedDataCrc32C(
-            other.getVerifiedAdditionalAuthenticatedDataCrc32C());
+        setVerifiedAdditionalAuthenticatedDataCrc32C(other.getVerifiedAdditionalAuthenticatedDataCrc32C());
       }
       if (other.protectionLevel_ != 0) {
         setProtectionLevelValue(other.getProtectionLevelValue());
@@ -733,50 +677,44 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 18:
-              {
-                ciphertext_ = input.readBytes();
-
-                break;
-              } // case 18
-            case 34:
-              {
-                input.readMessage(
-                    getCiphertextCrc32CFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 34
-            case 40:
-              {
-                verifiedPlaintextCrc32C_ = input.readBool();
-
-                break;
-              } // case 40
-            case 48:
-              {
-                verifiedAdditionalAuthenticatedDataCrc32C_ = input.readBool();
-
-                break;
-              } // case 48
-            case 56:
-              {
-                protectionLevel_ = input.readEnum();
-
-                break;
-              } // case 56
-            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: {
+              ciphertext_ = input.readBytes();
+
+              break;
+            } // case 18
+            case 34: {
+              input.readMessage(
+                  getCiphertextCrc32CFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 34
+            case 40: {
+              verifiedPlaintextCrc32C_ = input.readBool();
+
+              break;
+            } // case 40
+            case 48: {
+              verifiedAdditionalAuthenticatedDataCrc32C_ = input.readBool();
+
+              break;
+            } // case 48
+            case 56: {
+              protectionLevel_ = input.readEnum();
+
+              break;
+            } // case 56
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -789,8 +727,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -799,13 +735,13 @@ public Builder mergeFrom(
      * 
* * 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; @@ -814,8 +750,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -824,14 +758,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 { @@ -839,8 +774,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -849,22 +782,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 resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -873,18 +804,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 resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -893,16 +821,16 @@ 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; @@ -910,14 +838,11 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.ByteString ciphertext_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * The encrypted data.
      * 
* * bytes ciphertext = 2; - * * @return The ciphertext. */ @java.lang.Override @@ -925,39 +850,33 @@ public com.google.protobuf.ByteString getCiphertext() { return ciphertext_; } /** - * - * *
      * The encrypted data.
      * 
* * bytes ciphertext = 2; - * * @param value The ciphertext to set. * @return This builder for chaining. */ public Builder setCiphertext(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ciphertext_ = value; onChanged(); return this; } /** - * - * *
      * The encrypted data.
      * 
* * bytes ciphertext = 2; - * * @return This builder for chaining. */ public Builder clearCiphertext() { - + ciphertext_ = getDefaultInstance().getCiphertext(); onChanged(); return this; @@ -965,13 +884,8 @@ public Builder clearCiphertext() { private com.google.protobuf.Int64Value ciphertextCrc32C_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> - ciphertextCrc32CBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> ciphertextCrc32CBuilder_; /** - * - * *
      * Integrity verification field. A CRC32C checksum of the returned
      * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext].
@@ -989,15 +903,12 @@ public Builder clearCiphertext() {
      * 
* * .google.protobuf.Int64Value ciphertext_crc32c = 4; - * * @return Whether the ciphertextCrc32c field is set. */ public boolean hasCiphertextCrc32C() { return ciphertextCrc32CBuilder_ != null || ciphertextCrc32C_ != null; } /** - * - * *
      * Integrity verification field. A CRC32C checksum of the returned
      * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext].
@@ -1015,21 +926,16 @@ public boolean hasCiphertextCrc32C() {
      * 
* * .google.protobuf.Int64Value ciphertext_crc32c = 4; - * * @return The ciphertextCrc32c. */ public com.google.protobuf.Int64Value getCiphertextCrc32C() { if (ciphertextCrc32CBuilder_ == null) { - return ciphertextCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : ciphertextCrc32C_; + return ciphertextCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : ciphertextCrc32C_; } else { return ciphertextCrc32CBuilder_.getMessage(); } } /** - * - * *
      * Integrity verification field. A CRC32C checksum of the returned
      * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext].
@@ -1062,8 +968,6 @@ public Builder setCiphertextCrc32C(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext].
@@ -1082,7 +986,8 @@ public Builder setCiphertextCrc32C(com.google.protobuf.Int64Value value) {
      *
      * .google.protobuf.Int64Value ciphertext_crc32c = 4;
      */
-    public Builder setCiphertextCrc32C(com.google.protobuf.Int64Value.Builder builderForValue) {
+    public Builder setCiphertextCrc32C(
+        com.google.protobuf.Int64Value.Builder builderForValue) {
       if (ciphertextCrc32CBuilder_ == null) {
         ciphertextCrc32C_ = builderForValue.build();
         onChanged();
@@ -1093,8 +998,6 @@ public Builder setCiphertextCrc32C(com.google.protobuf.Int64Value.Builder builde
       return this;
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext].
@@ -1117,9 +1020,7 @@ public Builder mergeCiphertextCrc32C(com.google.protobuf.Int64Value value) {
       if (ciphertextCrc32CBuilder_ == null) {
         if (ciphertextCrc32C_ != null) {
           ciphertextCrc32C_ =
-              com.google.protobuf.Int64Value.newBuilder(ciphertextCrc32C_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Int64Value.newBuilder(ciphertextCrc32C_).mergeFrom(value).buildPartial();
         } else {
           ciphertextCrc32C_ = value;
         }
@@ -1131,8 +1032,6 @@ public Builder mergeCiphertextCrc32C(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext].
@@ -1163,8 +1062,6 @@ public Builder clearCiphertextCrc32C() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext].
@@ -1184,13 +1081,11 @@ public Builder clearCiphertextCrc32C() {
      * .google.protobuf.Int64Value ciphertext_crc32c = 4;
      */
     public com.google.protobuf.Int64Value.Builder getCiphertextCrc32CBuilder() {
-
+      
       onChanged();
       return getCiphertextCrc32CFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext].
@@ -1213,14 +1108,11 @@ public com.google.protobuf.Int64ValueOrBuilder getCiphertextCrc32COrBuilder() {
       if (ciphertextCrc32CBuilder_ != null) {
         return ciphertextCrc32CBuilder_.getMessageOrBuilder();
       } else {
-        return ciphertextCrc32C_ == null
-            ? com.google.protobuf.Int64Value.getDefaultInstance()
-            : ciphertextCrc32C_;
+        return ciphertextCrc32C_ == null ?
+            com.google.protobuf.Int64Value.getDefaultInstance() : ciphertextCrc32C_;
       }
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext].
@@ -1240,26 +1132,21 @@ public com.google.protobuf.Int64ValueOrBuilder getCiphertextCrc32COrBuilder() {
      * .google.protobuf.Int64Value ciphertext_crc32c = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Int64Value,
-            com.google.protobuf.Int64Value.Builder,
-            com.google.protobuf.Int64ValueOrBuilder>
+        com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> 
         getCiphertextCrc32CFieldBuilder() {
       if (ciphertextCrc32CBuilder_ == null) {
-        ciphertextCrc32CBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Int64Value,
-                com.google.protobuf.Int64Value.Builder,
-                com.google.protobuf.Int64ValueOrBuilder>(
-                getCiphertextCrc32C(), getParentForChildren(), isClean());
+        ciphertextCrc32CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
+                getCiphertextCrc32C(),
+                getParentForChildren(),
+                isClean());
         ciphertextCrc32C_ = null;
       }
       return ciphertextCrc32CBuilder_;
     }
 
-    private boolean verifiedPlaintextCrc32C_;
+    private boolean verifiedPlaintextCrc32C_ ;
     /**
-     *
-     *
      * 
      * Integrity verification field. A flag indicating whether
      * [EncryptRequest.plaintext_crc32c][google.cloud.kms.v1.EncryptRequest.plaintext_crc32c]
@@ -1278,7 +1165,6 @@ public com.google.protobuf.Int64ValueOrBuilder getCiphertextCrc32COrBuilder() {
      * 
* * bool verified_plaintext_crc32c = 5; - * * @return The verifiedPlaintextCrc32c. */ @java.lang.Override @@ -1286,8 +1172,6 @@ public boolean getVerifiedPlaintextCrc32C() { return verifiedPlaintextCrc32C_; } /** - * - * *
      * Integrity verification field. A flag indicating whether
      * [EncryptRequest.plaintext_crc32c][google.cloud.kms.v1.EncryptRequest.plaintext_crc32c]
@@ -1306,19 +1190,16 @@ public boolean getVerifiedPlaintextCrc32C() {
      * 
* * bool verified_plaintext_crc32c = 5; - * * @param value The verifiedPlaintextCrc32c to set. * @return This builder for chaining. */ public Builder setVerifiedPlaintextCrc32C(boolean value) { - + verifiedPlaintextCrc32C_ = value; onChanged(); return this; } /** - * - * *
      * Integrity verification field. A flag indicating whether
      * [EncryptRequest.plaintext_crc32c][google.cloud.kms.v1.EncryptRequest.plaintext_crc32c]
@@ -1337,20 +1218,17 @@ public Builder setVerifiedPlaintextCrc32C(boolean value) {
      * 
* * bool verified_plaintext_crc32c = 5; - * * @return This builder for chaining. */ public Builder clearVerifiedPlaintextCrc32C() { - + verifiedPlaintextCrc32C_ = false; onChanged(); return this; } - private boolean verifiedAdditionalAuthenticatedDataCrc32C_; + private boolean verifiedAdditionalAuthenticatedDataCrc32C_ ; /** - * - * *
      * Integrity verification field. A flag indicating whether
      * [EncryptRequest.additional_authenticated_data_crc32c][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data_crc32c]
@@ -1369,7 +1247,6 @@ public Builder clearVerifiedPlaintextCrc32C() {
      * 
* * bool verified_additional_authenticated_data_crc32c = 6; - * * @return The verifiedAdditionalAuthenticatedDataCrc32c. */ @java.lang.Override @@ -1377,8 +1254,6 @@ public boolean getVerifiedAdditionalAuthenticatedDataCrc32C() { return verifiedAdditionalAuthenticatedDataCrc32C_; } /** - * - * *
      * Integrity verification field. A flag indicating whether
      * [EncryptRequest.additional_authenticated_data_crc32c][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data_crc32c]
@@ -1397,19 +1272,16 @@ public boolean getVerifiedAdditionalAuthenticatedDataCrc32C() {
      * 
* * bool verified_additional_authenticated_data_crc32c = 6; - * * @param value The verifiedAdditionalAuthenticatedDataCrc32c to set. * @return This builder for chaining. */ public Builder setVerifiedAdditionalAuthenticatedDataCrc32C(boolean value) { - + verifiedAdditionalAuthenticatedDataCrc32C_ = value; onChanged(); return this; } /** - * - * *
      * Integrity verification field. A flag indicating whether
      * [EncryptRequest.additional_authenticated_data_crc32c][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data_crc32c]
@@ -1428,11 +1300,10 @@ public Builder setVerifiedAdditionalAuthenticatedDataCrc32C(boolean value) {
      * 
* * bool verified_additional_authenticated_data_crc32c = 6; - * * @return This builder for chaining. */ public Builder clearVerifiedAdditionalAuthenticatedDataCrc32C() { - + verifiedAdditionalAuthenticatedDataCrc32C_ = false; onChanged(); return this; @@ -1440,8 +1311,6 @@ public Builder clearVerifiedAdditionalAuthenticatedDataCrc32C() { private int protectionLevel_ = 0; /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -1449,16 +1318,12 @@ public Builder clearVerifiedAdditionalAuthenticatedDataCrc32C() {
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 7; - * * @return The enum numeric value on the wire for protectionLevel. */ - @java.lang.Override - public int getProtectionLevelValue() { + @java.lang.Override public int getProtectionLevelValue() { return protectionLevel_; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -1466,19 +1331,16 @@ public int getProtectionLevelValue() {
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 7; - * * @param value The enum numeric value on the wire for protectionLevel to set. * @return This builder for chaining. */ public Builder setProtectionLevelValue(int value) { - + protectionLevel_ = value; onChanged(); return this; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -1486,19 +1348,15 @@ public Builder setProtectionLevelValue(int value) {
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 7; - * * @return The protectionLevel. */ @java.lang.Override public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.ProtectionLevel result = - com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); + com.google.cloud.kms.v1.ProtectionLevel result = com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); return result == null ? com.google.cloud.kms.v1.ProtectionLevel.UNRECOGNIZED : result; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -1506,7 +1364,6 @@ public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() {
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 7; - * * @param value The protectionLevel to set. * @return This builder for chaining. */ @@ -1514,14 +1371,12 @@ public Builder setProtectionLevel(com.google.cloud.kms.v1.ProtectionLevel value) if (value == null) { throw new NullPointerException(); } - + protectionLevel_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -1529,18 +1384,17 @@ public Builder setProtectionLevel(com.google.cloud.kms.v1.ProtectionLevel value)
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 7; - * * @return This builder for chaining. */ public Builder clearProtectionLevel() { - + protectionLevel_ = 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); } @@ -1550,12 +1404,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.EncryptResponse) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.EncryptResponse) private static final com.google.cloud.kms.v1.EncryptResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.EncryptResponse(); } @@ -1564,27 +1418,27 @@ public static com.google.cloud.kms.v1.EncryptResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EncryptResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EncryptResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1599,4 +1453,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.EncryptResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptResponseOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptResponseOrBuilder.java similarity index 89% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptResponseOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptResponseOrBuilder.java index 51301cb53295..f8730f2d7190 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptResponseOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptResponseOrBuilder.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/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface EncryptResponseOrBuilder - extends +public interface EncryptResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.EncryptResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -34,13 +16,10 @@ public interface EncryptResponseOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -49,27 +28,22 @@ public interface EncryptResponseOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The encrypted data.
    * 
* * bytes ciphertext = 2; - * * @return The ciphertext. */ com.google.protobuf.ByteString getCiphertext(); /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext].
@@ -87,13 +61,10 @@ public interface EncryptResponseOrBuilder
    * 
* * .google.protobuf.Int64Value ciphertext_crc32c = 4; - * * @return Whether the ciphertextCrc32c field is set. */ boolean hasCiphertextCrc32C(); /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext].
@@ -111,13 +82,10 @@ public interface EncryptResponseOrBuilder
    * 
* * .google.protobuf.Int64Value ciphertext_crc32c = 4; - * * @return The ciphertextCrc32c. */ com.google.protobuf.Int64Value getCiphertextCrc32C(); /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext].
@@ -139,8 +107,6 @@ public interface EncryptResponseOrBuilder
   com.google.protobuf.Int64ValueOrBuilder getCiphertextCrc32COrBuilder();
 
   /**
-   *
-   *
    * 
    * Integrity verification field. A flag indicating whether
    * [EncryptRequest.plaintext_crc32c][google.cloud.kms.v1.EncryptRequest.plaintext_crc32c]
@@ -159,14 +125,11 @@ public interface EncryptResponseOrBuilder
    * 
* * bool verified_plaintext_crc32c = 5; - * * @return The verifiedPlaintextCrc32c. */ boolean getVerifiedPlaintextCrc32C(); /** - * - * *
    * Integrity verification field. A flag indicating whether
    * [EncryptRequest.additional_authenticated_data_crc32c][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data_crc32c]
@@ -185,14 +148,11 @@ public interface EncryptResponseOrBuilder
    * 
* * bool verified_additional_authenticated_data_crc32c = 6; - * * @return The verifiedAdditionalAuthenticatedDataCrc32c. */ boolean getVerifiedAdditionalAuthenticatedDataCrc32C(); /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -200,13 +160,10 @@ public interface EncryptResponseOrBuilder
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 7; - * * @return The enum numeric value on the wire for protectionLevel. */ int getProtectionLevelValue(); /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
@@ -214,7 +171,6 @@ public interface EncryptResponseOrBuilder
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 7; - * * @return The protectionLevel. */ com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel(); diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ExternalProtectionLevelOptions.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ExternalProtectionLevelOptions.java similarity index 69% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ExternalProtectionLevelOptions.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ExternalProtectionLevelOptions.java index e9a89da7930f..22180f415aeb 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ExternalProtectionLevelOptions.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ExternalProtectionLevelOptions.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/kms/v1/resources.proto package com.google.cloud.kms.v1; /** - * - * *
  * ExternalProtectionLevelOptions stores a group of additional fields for
  * configuring a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that
@@ -32,17 +15,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.ExternalProtectionLevelOptions}
  */
-public final class ExternalProtectionLevelOptions extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ExternalProtectionLevelOptions extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.ExternalProtectionLevelOptions)
     ExternalProtectionLevelOptionsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ExternalProtectionLevelOptions.newBuilder() to construct.
-  private ExternalProtectionLevelOptions(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ExternalProtectionLevelOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ExternalProtectionLevelOptions() {
     externalKeyUri_ = "";
     ekmConnectionKeyPath_ = "";
@@ -50,42 +31,38 @@ private ExternalProtectionLevelOptions() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ExternalProtectionLevelOptions();
   }
 
   @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.kms.v1.KmsResourcesProto
-        .internal_static_google_cloud_kms_v1_ExternalProtectionLevelOptions_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_ExternalProtectionLevelOptions_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsResourcesProto
-        .internal_static_google_cloud_kms_v1_ExternalProtectionLevelOptions_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_ExternalProtectionLevelOptions_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.ExternalProtectionLevelOptions.class,
-            com.google.cloud.kms.v1.ExternalProtectionLevelOptions.Builder.class);
+            com.google.cloud.kms.v1.ExternalProtectionLevelOptions.class, com.google.cloud.kms.v1.ExternalProtectionLevelOptions.Builder.class);
   }
 
   public static final int EXTERNAL_KEY_URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object externalKeyUri_;
   /**
-   *
-   *
    * 
    * The URI for an external resource that this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents.
    * 
* * string external_key_uri = 1; - * * @return The externalKeyUri. */ @java.lang.Override @@ -94,30 +71,30 @@ public java.lang.String getExternalKeyUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalKeyUri_ = s; return s; } } /** - * - * *
    * The URI for an external resource that this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents.
    * 
* * string external_key_uri = 1; - * * @return The bytes for externalKeyUri. */ @java.lang.Override - public com.google.protobuf.ByteString getExternalKeyUriBytes() { + public com.google.protobuf.ByteString + getExternalKeyUriBytes() { java.lang.Object ref = externalKeyUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); externalKeyUri_ = b; return b; } else { @@ -128,8 +105,6 @@ public com.google.protobuf.ByteString getExternalKeyUriBytes() { public static final int EKM_CONNECTION_KEY_PATH_FIELD_NUMBER = 2; private volatile java.lang.Object ekmConnectionKeyPath_; /** - * - * *
    * The path to the external key material on the EKM when using
    * [EkmConnection][google.cloud.kms.v1.EkmConnection] e.g., "v0/my/key". Set
@@ -138,7 +113,6 @@ public com.google.protobuf.ByteString getExternalKeyUriBytes() {
    * 
* * string ekm_connection_key_path = 2; - * * @return The ekmConnectionKeyPath. */ @java.lang.Override @@ -147,15 +121,14 @@ public java.lang.String getEkmConnectionKeyPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ekmConnectionKeyPath_ = s; return s; } } /** - * - * *
    * The path to the external key material on the EKM when using
    * [EkmConnection][google.cloud.kms.v1.EkmConnection] e.g., "v0/my/key". Set
@@ -164,15 +137,16 @@ public java.lang.String getEkmConnectionKeyPath() {
    * 
* * string ekm_connection_key_path = 2; - * * @return The bytes for ekmConnectionKeyPath. */ @java.lang.Override - public com.google.protobuf.ByteString getEkmConnectionKeyPathBytes() { + public com.google.protobuf.ByteString + getEkmConnectionKeyPathBytes() { java.lang.Object ref = ekmConnectionKeyPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ekmConnectionKeyPath_ = b; return b; } else { @@ -181,7 +155,6 @@ public com.google.protobuf.ByteString getEkmConnectionKeyPathBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,7 +166,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalKeyUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, externalKeyUri_); } @@ -223,16 +197,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.kms.v1.ExternalProtectionLevelOptions)) { return super.equals(obj); } - com.google.cloud.kms.v1.ExternalProtectionLevelOptions other = - (com.google.cloud.kms.v1.ExternalProtectionLevelOptions) obj; + com.google.cloud.kms.v1.ExternalProtectionLevelOptions other = (com.google.cloud.kms.v1.ExternalProtectionLevelOptions) obj; - if (!getExternalKeyUri().equals(other.getExternalKeyUri())) return false; - if (!getEkmConnectionKeyPath().equals(other.getEkmConnectionKeyPath())) return false; + if (!getExternalKeyUri() + .equals(other.getExternalKeyUri())) return false; + if (!getEkmConnectionKeyPath() + .equals(other.getEkmConnectionKeyPath())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -254,104 +229,96 @@ public int hashCode() { } public static com.google.cloud.kms.v1.ExternalProtectionLevelOptions 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.kms.v1.ExternalProtectionLevelOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.ExternalProtectionLevelOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ExternalProtectionLevelOptions parseFrom( 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.kms.v1.ExternalProtectionLevelOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ExternalProtectionLevelOptions parseFrom( - byte[] data, com.google.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.kms.v1.ExternalProtectionLevelOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.ExternalProtectionLevelOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.ExternalProtectionLevelOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.ExternalProtectionLevelOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.ExternalProtectionLevelOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.ExternalProtectionLevelOptions parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.ExternalProtectionLevelOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.ExternalProtectionLevelOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.ExternalProtectionLevelOptions prototype) { + public static Builder newBuilder(com.google.cloud.kms.v1.ExternalProtectionLevelOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ExternalProtectionLevelOptions stores a group of additional fields for
    * configuring a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that
@@ -363,32 +330,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.ExternalProtectionLevelOptions}
    */
-  public static final class Builder extends 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.kms.v1.ExternalProtectionLevelOptions)
       com.google.cloud.kms.v1.ExternalProtectionLevelOptionsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsResourcesProto
-          .internal_static_google_cloud_kms_v1_ExternalProtectionLevelOptions_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_ExternalProtectionLevelOptions_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsResourcesProto
-          .internal_static_google_cloud_kms_v1_ExternalProtectionLevelOptions_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_ExternalProtectionLevelOptions_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.ExternalProtectionLevelOptions.class,
-              com.google.cloud.kms.v1.ExternalProtectionLevelOptions.Builder.class);
+              com.google.cloud.kms.v1.ExternalProtectionLevelOptions.class, com.google.cloud.kms.v1.ExternalProtectionLevelOptions.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.ExternalProtectionLevelOptions.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();
@@ -400,9 +368,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsResourcesProto
-          .internal_static_google_cloud_kms_v1_ExternalProtectionLevelOptions_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_ExternalProtectionLevelOptions_descriptor;
     }
 
     @java.lang.Override
@@ -421,8 +389,7 @@ public com.google.cloud.kms.v1.ExternalProtectionLevelOptions build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.ExternalProtectionLevelOptions buildPartial() {
-      com.google.cloud.kms.v1.ExternalProtectionLevelOptions result =
-          new com.google.cloud.kms.v1.ExternalProtectionLevelOptions(this);
+      com.google.cloud.kms.v1.ExternalProtectionLevelOptions result = new com.google.cloud.kms.v1.ExternalProtectionLevelOptions(this);
       result.externalKeyUri_ = externalKeyUri_;
       result.ekmConnectionKeyPath_ = ekmConnectionKeyPath_;
       onBuilt();
@@ -433,39 +400,38 @@ public com.google.cloud.kms.v1.ExternalProtectionLevelOptions 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.kms.v1.ExternalProtectionLevelOptions) {
-        return mergeFrom((com.google.cloud.kms.v1.ExternalProtectionLevelOptions) other);
+        return mergeFrom((com.google.cloud.kms.v1.ExternalProtectionLevelOptions)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -473,8 +439,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.kms.v1.ExternalProtectionLevelOptions other) {
-      if (other == com.google.cloud.kms.v1.ExternalProtectionLevelOptions.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.kms.v1.ExternalProtectionLevelOptions.getDefaultInstance()) return this;
       if (!other.getExternalKeyUri().isEmpty()) {
         externalKeyUri_ = other.externalKeyUri_;
         onChanged();
@@ -509,25 +474,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                externalKeyUri_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 18:
-              {
-                ekmConnectionKeyPath_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              externalKeyUri_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 18: {
+              ekmConnectionKeyPath_ = 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) {
@@ -540,21 +502,19 @@ public Builder mergeFrom(
 
     private java.lang.Object externalKeyUri_ = "";
     /**
-     *
-     *
      * 
      * The URI for an external resource that this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents.
      * 
* * string external_key_uri = 1; - * * @return The externalKeyUri. */ public java.lang.String getExternalKeyUri() { java.lang.Object ref = externalKeyUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalKeyUri_ = s; return s; @@ -563,22 +523,21 @@ public java.lang.String getExternalKeyUri() { } } /** - * - * *
      * The URI for an external resource that this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents.
      * 
* * string external_key_uri = 1; - * * @return The bytes for externalKeyUri. */ - public com.google.protobuf.ByteString getExternalKeyUriBytes() { + public com.google.protobuf.ByteString + getExternalKeyUriBytes() { java.lang.Object ref = externalKeyUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); externalKeyUri_ = b; return b; } else { @@ -586,64 +545,57 @@ public com.google.protobuf.ByteString getExternalKeyUriBytes() { } } /** - * - * *
      * The URI for an external resource that this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents.
      * 
* * string external_key_uri = 1; - * * @param value The externalKeyUri to set. * @return This builder for chaining. */ - public Builder setExternalKeyUri(java.lang.String value) { + public Builder setExternalKeyUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + externalKeyUri_ = value; onChanged(); return this; } /** - * - * *
      * The URI for an external resource that this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents.
      * 
* * string external_key_uri = 1; - * * @return This builder for chaining. */ public Builder clearExternalKeyUri() { - + externalKeyUri_ = getDefaultInstance().getExternalKeyUri(); onChanged(); return this; } /** - * - * *
      * The URI for an external resource that this
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents.
      * 
* * string external_key_uri = 1; - * * @param value The bytes for externalKeyUri to set. * @return This builder for chaining. */ - public Builder setExternalKeyUriBytes(com.google.protobuf.ByteString value) { + public Builder setExternalKeyUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalKeyUri_ = value; onChanged(); return this; @@ -651,8 +603,6 @@ public Builder setExternalKeyUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object ekmConnectionKeyPath_ = ""; /** - * - * *
      * The path to the external key material on the EKM when using
      * [EkmConnection][google.cloud.kms.v1.EkmConnection] e.g., "v0/my/key". Set
@@ -661,13 +611,13 @@ public Builder setExternalKeyUriBytes(com.google.protobuf.ByteString value) {
      * 
* * string ekm_connection_key_path = 2; - * * @return The ekmConnectionKeyPath. */ public java.lang.String getEkmConnectionKeyPath() { java.lang.Object ref = ekmConnectionKeyPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ekmConnectionKeyPath_ = s; return s; @@ -676,8 +626,6 @@ public java.lang.String getEkmConnectionKeyPath() { } } /** - * - * *
      * The path to the external key material on the EKM when using
      * [EkmConnection][google.cloud.kms.v1.EkmConnection] e.g., "v0/my/key". Set
@@ -686,14 +634,15 @@ public java.lang.String getEkmConnectionKeyPath() {
      * 
* * string ekm_connection_key_path = 2; - * * @return The bytes for ekmConnectionKeyPath. */ - public com.google.protobuf.ByteString getEkmConnectionKeyPathBytes() { + public com.google.protobuf.ByteString + getEkmConnectionKeyPathBytes() { java.lang.Object ref = ekmConnectionKeyPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ekmConnectionKeyPath_ = b; return b; } else { @@ -701,8 +650,6 @@ public com.google.protobuf.ByteString getEkmConnectionKeyPathBytes() { } } /** - * - * *
      * The path to the external key material on the EKM when using
      * [EkmConnection][google.cloud.kms.v1.EkmConnection] e.g., "v0/my/key". Set
@@ -711,22 +658,20 @@ public com.google.protobuf.ByteString getEkmConnectionKeyPathBytes() {
      * 
* * string ekm_connection_key_path = 2; - * * @param value The ekmConnectionKeyPath to set. * @return This builder for chaining. */ - public Builder setEkmConnectionKeyPath(java.lang.String value) { + public Builder setEkmConnectionKeyPath( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ekmConnectionKeyPath_ = value; onChanged(); return this; } /** - * - * *
      * The path to the external key material on the EKM when using
      * [EkmConnection][google.cloud.kms.v1.EkmConnection] e.g., "v0/my/key". Set
@@ -735,18 +680,15 @@ public Builder setEkmConnectionKeyPath(java.lang.String value) {
      * 
* * string ekm_connection_key_path = 2; - * * @return This builder for chaining. */ public Builder clearEkmConnectionKeyPath() { - + ekmConnectionKeyPath_ = getDefaultInstance().getEkmConnectionKeyPath(); onChanged(); return this; } /** - * - * *
      * The path to the external key material on the EKM when using
      * [EkmConnection][google.cloud.kms.v1.EkmConnection] e.g., "v0/my/key". Set
@@ -755,23 +697,23 @@ public Builder clearEkmConnectionKeyPath() {
      * 
* * string ekm_connection_key_path = 2; - * * @param value The bytes for ekmConnectionKeyPath to set. * @return This builder for chaining. */ - public Builder setEkmConnectionKeyPathBytes(com.google.protobuf.ByteString value) { + public Builder setEkmConnectionKeyPathBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ekmConnectionKeyPath_ = 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); } @@ -781,12 +723,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.ExternalProtectionLevelOptions) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.ExternalProtectionLevelOptions) private static final com.google.cloud.kms.v1.ExternalProtectionLevelOptions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.ExternalProtectionLevelOptions(); } @@ -795,27 +737,27 @@ public static com.google.cloud.kms.v1.ExternalProtectionLevelOptions getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExternalProtectionLevelOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExternalProtectionLevelOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -830,4 +772,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.kms.v1.ExternalProtectionLevelOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ExternalProtectionLevelOptionsOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ExternalProtectionLevelOptionsOrBuilder.java similarity index 66% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ExternalProtectionLevelOptionsOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ExternalProtectionLevelOptionsOrBuilder.java index 6b407c1a3fc7..daa4ee6260e5 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ExternalProtectionLevelOptionsOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ExternalProtectionLevelOptionsOrBuilder.java @@ -1,58 +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/kms/v1/resources.proto package com.google.cloud.kms.v1; -public interface ExternalProtectionLevelOptionsOrBuilder - extends +public interface ExternalProtectionLevelOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.ExternalProtectionLevelOptions) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The URI for an external resource that this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents.
    * 
* * string external_key_uri = 1; - * * @return The externalKeyUri. */ java.lang.String getExternalKeyUri(); /** - * - * *
    * The URI for an external resource that this
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents.
    * 
* * string external_key_uri = 1; - * * @return The bytes for externalKeyUri. */ - com.google.protobuf.ByteString getExternalKeyUriBytes(); + com.google.protobuf.ByteString + getExternalKeyUriBytes(); /** - * - * *
    * The path to the external key material on the EKM when using
    * [EkmConnection][google.cloud.kms.v1.EkmConnection] e.g., "v0/my/key". Set
@@ -61,13 +38,10 @@ public interface ExternalProtectionLevelOptionsOrBuilder
    * 
* * string ekm_connection_key_path = 2; - * * @return The ekmConnectionKeyPath. */ java.lang.String getEkmConnectionKeyPath(); /** - * - * *
    * The path to the external key material on the EKM when using
    * [EkmConnection][google.cloud.kms.v1.EkmConnection] e.g., "v0/my/key". Set
@@ -76,8 +50,8 @@ public interface ExternalProtectionLevelOptionsOrBuilder
    * 
* * string ekm_connection_key_path = 2; - * * @return The bytes for ekmConnectionKeyPath. */ - com.google.protobuf.ByteString getEkmConnectionKeyPathBytes(); + com.google.protobuf.ByteString + getEkmConnectionKeyPathBytes(); } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GenerateRandomBytesRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GenerateRandomBytesRequest.java similarity index 70% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GenerateRandomBytesRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GenerateRandomBytesRequest.java index 54ee611ecfe4..4ce9671a85da 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GenerateRandomBytesRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GenerateRandomBytesRequest.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for
  * [KeyManagementService.GenerateRandomBytes][google.cloud.kms.v1.KeyManagementService.GenerateRandomBytes].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.GenerateRandomBytesRequest}
  */
-public final class GenerateRandomBytesRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GenerateRandomBytesRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.GenerateRandomBytesRequest)
     GenerateRandomBytesRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GenerateRandomBytesRequest.newBuilder() to construct.
   private GenerateRandomBytesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GenerateRandomBytesRequest() {
     location_ = "";
     protectionLevel_ = 0;
@@ -45,42 +27,38 @@ private GenerateRandomBytesRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GenerateRandomBytesRequest();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_GenerateRandomBytesRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GenerateRandomBytesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_GenerateRandomBytesRequest_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GenerateRandomBytesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.GenerateRandomBytesRequest.class,
-            com.google.cloud.kms.v1.GenerateRandomBytesRequest.Builder.class);
+            com.google.cloud.kms.v1.GenerateRandomBytesRequest.class, com.google.cloud.kms.v1.GenerateRandomBytesRequest.Builder.class);
   }
 
   public static final int LOCATION_FIELD_NUMBER = 1;
   private volatile java.lang.Object location_;
   /**
-   *
-   *
    * 
    * The project-specific location in which to generate random bytes.
    * For example, "projects/my-project/locations/us-central1".
    * 
* * string location = 1; - * * @return The location. */ @java.lang.Override @@ -89,30 +67,30 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** - * - * *
    * The project-specific location in which to generate random bytes.
    * For example, "projects/my-project/locations/us-central1".
    * 
* * string location = 1; - * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -123,15 +101,12 @@ public com.google.protobuf.ByteString getLocationBytes() { public static final int LENGTH_BYTES_FIELD_NUMBER = 2; private int lengthBytes_; /** - * - * *
    * The length in bytes of the amount of randomness to retrieve.  Minimum 8
    * bytes, maximum 1024 bytes.
    * 
* * int32 length_bytes = 2; - * * @return The lengthBytes. */ @java.lang.Override @@ -142,8 +117,6 @@ public int getLengthBytes() { public static final int PROTECTION_LEVEL_FIELD_NUMBER = 3; private int protectionLevel_; /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when
    * generating the random data. Currently, only
@@ -152,16 +125,12 @@ public int getLengthBytes() {
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 3; - * * @return The enum numeric value on the wire for protectionLevel. */ - @java.lang.Override - public int getProtectionLevelValue() { + @java.lang.Override public int getProtectionLevelValue() { return protectionLevel_; } /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when
    * generating the random data. Currently, only
@@ -170,19 +139,15 @@ public int getProtectionLevelValue() {
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 3; - * * @return The protectionLevel. */ - @java.lang.Override - public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { + @java.lang.Override public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.ProtectionLevel result = - com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); + com.google.cloud.kms.v1.ProtectionLevel result = com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); return result == null ? com.google.cloud.kms.v1.ProtectionLevel.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -194,15 +159,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); } if (lengthBytes_ != 0) { output.writeInt32(2, lengthBytes_); } - if (protectionLevel_ - != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { + if (protectionLevel_ != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(3, protectionLevel_); } getUnknownFields().writeTo(output); @@ -218,11 +183,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, location_); } if (lengthBytes_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, lengthBytes_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, lengthBytes_); } - if (protectionLevel_ - != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, protectionLevel_); + if (protectionLevel_ != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, protectionLevel_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -232,16 +198,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.kms.v1.GenerateRandomBytesRequest)) { return super.equals(obj); } - com.google.cloud.kms.v1.GenerateRandomBytesRequest other = - (com.google.cloud.kms.v1.GenerateRandomBytesRequest) obj; + com.google.cloud.kms.v1.GenerateRandomBytesRequest other = (com.google.cloud.kms.v1.GenerateRandomBytesRequest) obj; - if (!getLocation().equals(other.getLocation())) return false; - if (getLengthBytes() != other.getLengthBytes()) return false; + if (!getLocation() + .equals(other.getLocation())) return false; + if (getLengthBytes() + != other.getLengthBytes()) return false; if (protectionLevel_ != other.protectionLevel_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -266,103 +233,96 @@ public int hashCode() { } public static com.google.cloud.kms.v1.GenerateRandomBytesRequest 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.kms.v1.GenerateRandomBytesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.GenerateRandomBytesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.GenerateRandomBytesRequest parseFrom( 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.kms.v1.GenerateRandomBytesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.GenerateRandomBytesRequest parseFrom( - byte[] data, com.google.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.kms.v1.GenerateRandomBytesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.GenerateRandomBytesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.GenerateRandomBytesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.GenerateRandomBytesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.GenerateRandomBytesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.GenerateRandomBytesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.GenerateRandomBytesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.GenerateRandomBytesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.GenerateRandomBytesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for
    * [KeyManagementService.GenerateRandomBytes][google.cloud.kms.v1.KeyManagementService.GenerateRandomBytes].
@@ -370,32 +330,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.GenerateRandomBytesRequest}
    */
-  public static final class Builder extends 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.kms.v1.GenerateRandomBytesRequest)
       com.google.cloud.kms.v1.GenerateRandomBytesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_GenerateRandomBytesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GenerateRandomBytesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_GenerateRandomBytesRequest_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GenerateRandomBytesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.GenerateRandomBytesRequest.class,
-              com.google.cloud.kms.v1.GenerateRandomBytesRequest.Builder.class);
+              com.google.cloud.kms.v1.GenerateRandomBytesRequest.class, com.google.cloud.kms.v1.GenerateRandomBytesRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.GenerateRandomBytesRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -409,9 +370,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_GenerateRandomBytesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GenerateRandomBytesRequest_descriptor;
     }
 
     @java.lang.Override
@@ -430,8 +391,7 @@ public com.google.cloud.kms.v1.GenerateRandomBytesRequest build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.GenerateRandomBytesRequest buildPartial() {
-      com.google.cloud.kms.v1.GenerateRandomBytesRequest result =
-          new com.google.cloud.kms.v1.GenerateRandomBytesRequest(this);
+      com.google.cloud.kms.v1.GenerateRandomBytesRequest result = new com.google.cloud.kms.v1.GenerateRandomBytesRequest(this);
       result.location_ = location_;
       result.lengthBytes_ = lengthBytes_;
       result.protectionLevel_ = protectionLevel_;
@@ -443,39 +403,38 @@ public com.google.cloud.kms.v1.GenerateRandomBytesRequest 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.kms.v1.GenerateRandomBytesRequest) {
-        return mergeFrom((com.google.cloud.kms.v1.GenerateRandomBytesRequest) other);
+        return mergeFrom((com.google.cloud.kms.v1.GenerateRandomBytesRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -483,8 +442,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.kms.v1.GenerateRandomBytesRequest other) {
-      if (other == com.google.cloud.kms.v1.GenerateRandomBytesRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.kms.v1.GenerateRandomBytesRequest.getDefaultInstance()) return this;
       if (!other.getLocation().isEmpty()) {
         location_ = other.location_;
         onChanged();
@@ -521,31 +479,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                location_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 16:
-              {
-                lengthBytes_ = input.readInt32();
-
-                break;
-              } // case 16
-            case 24:
-              {
-                protectionLevel_ = input.readEnum();
-
-                break;
-              } // case 24
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              location_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 16: {
+              lengthBytes_ = input.readInt32();
+
+              break;
+            } // case 16
+            case 24: {
+              protectionLevel_ = input.readEnum();
+
+              break;
+            } // case 24
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -558,21 +512,19 @@ public Builder mergeFrom(
 
     private java.lang.Object location_ = "";
     /**
-     *
-     *
      * 
      * The project-specific location in which to generate random bytes.
      * For example, "projects/my-project/locations/us-central1".
      * 
* * string location = 1; - * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -581,22 +533,21 @@ public java.lang.String getLocation() { } } /** - * - * *
      * The project-specific location in which to generate random bytes.
      * For example, "projects/my-project/locations/us-central1".
      * 
* * string location = 1; - * * @return The bytes for location. */ - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -604,80 +555,70 @@ public com.google.protobuf.ByteString getLocationBytes() { } } /** - * - * *
      * The project-specific location in which to generate random bytes.
      * For example, "projects/my-project/locations/us-central1".
      * 
* * string location = 1; - * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation(java.lang.String value) { + public Builder setLocation( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + location_ = value; onChanged(); return this; } /** - * - * *
      * The project-specific location in which to generate random bytes.
      * For example, "projects/my-project/locations/us-central1".
      * 
* * string location = 1; - * * @return This builder for chaining. */ public Builder clearLocation() { - + location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /** - * - * *
      * The project-specific location in which to generate random bytes.
      * For example, "projects/my-project/locations/us-central1".
      * 
* * string location = 1; - * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { + public Builder setLocationBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; onChanged(); return this; } - private int lengthBytes_; + private int lengthBytes_ ; /** - * - * *
      * The length in bytes of the amount of randomness to retrieve.  Minimum 8
      * bytes, maximum 1024 bytes.
      * 
* * int32 length_bytes = 2; - * * @return The lengthBytes. */ @java.lang.Override @@ -685,38 +626,32 @@ public int getLengthBytes() { return lengthBytes_; } /** - * - * *
      * The length in bytes of the amount of randomness to retrieve.  Minimum 8
      * bytes, maximum 1024 bytes.
      * 
* * int32 length_bytes = 2; - * * @param value The lengthBytes to set. * @return This builder for chaining. */ public Builder setLengthBytes(int value) { - + lengthBytes_ = value; onChanged(); return this; } /** - * - * *
      * The length in bytes of the amount of randomness to retrieve.  Minimum 8
      * bytes, maximum 1024 bytes.
      * 
* * int32 length_bytes = 2; - * * @return This builder for chaining. */ public Builder clearLengthBytes() { - + lengthBytes_ = 0; onChanged(); return this; @@ -724,8 +659,6 @@ public Builder clearLengthBytes() { private int protectionLevel_ = 0; /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when
      * generating the random data. Currently, only
@@ -734,16 +667,12 @@ public Builder clearLengthBytes() {
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 3; - * * @return The enum numeric value on the wire for protectionLevel. */ - @java.lang.Override - public int getProtectionLevelValue() { + @java.lang.Override public int getProtectionLevelValue() { return protectionLevel_; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when
      * generating the random data. Currently, only
@@ -752,19 +681,16 @@ public int getProtectionLevelValue() {
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 3; - * * @param value The enum numeric value on the wire for protectionLevel to set. * @return This builder for chaining. */ public Builder setProtectionLevelValue(int value) { - + protectionLevel_ = value; onChanged(); return this; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when
      * generating the random data. Currently, only
@@ -773,19 +699,15 @@ public Builder setProtectionLevelValue(int value) {
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 3; - * * @return The protectionLevel. */ @java.lang.Override public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.ProtectionLevel result = - com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); + com.google.cloud.kms.v1.ProtectionLevel result = com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); return result == null ? com.google.cloud.kms.v1.ProtectionLevel.UNRECOGNIZED : result; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when
      * generating the random data. Currently, only
@@ -794,7 +716,6 @@ public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() {
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 3; - * * @param value The protectionLevel to set. * @return This builder for chaining. */ @@ -802,14 +723,12 @@ public Builder setProtectionLevel(com.google.cloud.kms.v1.ProtectionLevel value) if (value == null) { throw new NullPointerException(); } - + protectionLevel_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when
      * generating the random data. Currently, only
@@ -818,18 +737,17 @@ public Builder setProtectionLevel(com.google.cloud.kms.v1.ProtectionLevel value)
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 3; - * * @return This builder for chaining. */ public Builder clearProtectionLevel() { - + protectionLevel_ = 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); } @@ -839,12 +757,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.GenerateRandomBytesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.GenerateRandomBytesRequest) private static final com.google.cloud.kms.v1.GenerateRandomBytesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.GenerateRandomBytesRequest(); } @@ -853,27 +771,27 @@ public static com.google.cloud.kms.v1.GenerateRandomBytesRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateRandomBytesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateRandomBytesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -888,4 +806,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.kms.v1.GenerateRandomBytesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GenerateRandomBytesRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GenerateRandomBytesRequestOrBuilder.java similarity index 70% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GenerateRandomBytesRequestOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GenerateRandomBytesRequestOrBuilder.java index a308a64db132..83efa2c50a8d 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GenerateRandomBytesRequestOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GenerateRandomBytesRequestOrBuilder.java @@ -1,72 +1,46 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface GenerateRandomBytesRequestOrBuilder - extends +public interface GenerateRandomBytesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.GenerateRandomBytesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The project-specific location in which to generate random bytes.
    * For example, "projects/my-project/locations/us-central1".
    * 
* * string location = 1; - * * @return The location. */ java.lang.String getLocation(); /** - * - * *
    * The project-specific location in which to generate random bytes.
    * For example, "projects/my-project/locations/us-central1".
    * 
* * string location = 1; - * * @return The bytes for location. */ - com.google.protobuf.ByteString getLocationBytes(); + com.google.protobuf.ByteString + getLocationBytes(); /** - * - * *
    * The length in bytes of the amount of randomness to retrieve.  Minimum 8
    * bytes, maximum 1024 bytes.
    * 
* * int32 length_bytes = 2; - * * @return The lengthBytes. */ int getLengthBytes(); /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when
    * generating the random data. Currently, only
@@ -75,13 +49,10 @@ public interface GenerateRandomBytesRequestOrBuilder
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 3; - * * @return The enum numeric value on the wire for protectionLevel. */ int getProtectionLevelValue(); /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when
    * generating the random data. Currently, only
@@ -90,7 +61,6 @@ public interface GenerateRandomBytesRequestOrBuilder
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 3; - * * @return The protectionLevel. */ com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel(); diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GenerateRandomBytesResponse.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GenerateRandomBytesResponse.java similarity index 77% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GenerateRandomBytesResponse.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GenerateRandomBytesResponse.java index 84b2b7150d8c..98ca1d5a53fb 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GenerateRandomBytesResponse.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GenerateRandomBytesResponse.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Response message for
  * [KeyManagementService.GenerateRandomBytes][google.cloud.kms.v1.KeyManagementService.GenerateRandomBytes].
@@ -28,57 +11,52 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.GenerateRandomBytesResponse}
  */
-public final class GenerateRandomBytesResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GenerateRandomBytesResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.GenerateRandomBytesResponse)
     GenerateRandomBytesResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GenerateRandomBytesResponse.newBuilder() to construct.
   private GenerateRandomBytesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GenerateRandomBytesResponse() {
     data_ = com.google.protobuf.ByteString.EMPTY;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GenerateRandomBytesResponse();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_GenerateRandomBytesResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GenerateRandomBytesResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_GenerateRandomBytesResponse_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GenerateRandomBytesResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.GenerateRandomBytesResponse.class,
-            com.google.cloud.kms.v1.GenerateRandomBytesResponse.Builder.class);
+            com.google.cloud.kms.v1.GenerateRandomBytesResponse.class, com.google.cloud.kms.v1.GenerateRandomBytesResponse.Builder.class);
   }
 
   public static final int DATA_FIELD_NUMBER = 1;
   private com.google.protobuf.ByteString data_;
   /**
-   *
-   *
    * 
    * The generated data.
    * 
* * bytes data = 1; - * * @return The data. */ @java.lang.Override @@ -89,8 +67,6 @@ public com.google.protobuf.ByteString getData() { public static final int DATA_CRC32C_FIELD_NUMBER = 3; private com.google.protobuf.Int64Value dataCrc32C_; /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data].
@@ -108,7 +84,6 @@ public com.google.protobuf.ByteString getData() {
    * 
* * .google.protobuf.Int64Value data_crc32c = 3; - * * @return Whether the dataCrc32c field is set. */ @java.lang.Override @@ -116,8 +91,6 @@ public boolean hasDataCrc32C() { return dataCrc32C_ != null; } /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data].
@@ -135,7 +108,6 @@ public boolean hasDataCrc32C() {
    * 
* * .google.protobuf.Int64Value data_crc32c = 3; - * * @return The dataCrc32c. */ @java.lang.Override @@ -143,8 +115,6 @@ public com.google.protobuf.Int64Value getDataCrc32C() { return dataCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : dataCrc32C_; } /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data].
@@ -169,7 +139,6 @@ public com.google.protobuf.Int64ValueOrBuilder getDataCrc32COrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -181,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 (!data_.isEmpty()) {
       output.writeBytes(1, data_);
     }
@@ -198,10 +168,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (!data_.isEmpty()) {
-      size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, data_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBytesSize(1, data_);
     }
     if (dataCrc32C_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDataCrc32C());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getDataCrc32C());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -211,18 +183,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.kms.v1.GenerateRandomBytesResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.kms.v1.GenerateRandomBytesResponse other =
-        (com.google.cloud.kms.v1.GenerateRandomBytesResponse) obj;
+    com.google.cloud.kms.v1.GenerateRandomBytesResponse other = (com.google.cloud.kms.v1.GenerateRandomBytesResponse) obj;
 
-    if (!getData().equals(other.getData())) return false;
+    if (!getData()
+        .equals(other.getData())) return false;
     if (hasDataCrc32C() != other.hasDataCrc32C()) return false;
     if (hasDataCrc32C()) {
-      if (!getDataCrc32C().equals(other.getDataCrc32C())) return false;
+      if (!getDataCrc32C()
+          .equals(other.getDataCrc32C())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -247,103 +220,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.kms.v1.GenerateRandomBytesResponse 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.kms.v1.GenerateRandomBytesResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.GenerateRandomBytesResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.kms.v1.GenerateRandomBytesResponse parseFrom(
       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.kms.v1.GenerateRandomBytesResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.kms.v1.GenerateRandomBytesResponse parseFrom(
-      byte[] data, com.google.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.kms.v1.GenerateRandomBytesResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.kms.v1.GenerateRandomBytesResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.kms.v1.GenerateRandomBytesResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.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.kms.v1.GenerateRandomBytesResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.kms.v1.GenerateRandomBytesResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.kms.v1.GenerateRandomBytesResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.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.kms.v1.GenerateRandomBytesResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.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.kms.v1.GenerateRandomBytesResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  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.kms.v1.GenerateRandomBytesResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Response message for
    * [KeyManagementService.GenerateRandomBytes][google.cloud.kms.v1.KeyManagementService.GenerateRandomBytes].
@@ -351,32 +317,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.GenerateRandomBytesResponse}
    */
-  public static final class Builder extends 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.kms.v1.GenerateRandomBytesResponse)
       com.google.cloud.kms.v1.GenerateRandomBytesResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_GenerateRandomBytesResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GenerateRandomBytesResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_GenerateRandomBytesResponse_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GenerateRandomBytesResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.GenerateRandomBytesResponse.class,
-              com.google.cloud.kms.v1.GenerateRandomBytesResponse.Builder.class);
+              com.google.cloud.kms.v1.GenerateRandomBytesResponse.class, com.google.cloud.kms.v1.GenerateRandomBytesResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.GenerateRandomBytesResponse.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();
@@ -392,9 +359,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_GenerateRandomBytesResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GenerateRandomBytesResponse_descriptor;
     }
 
     @java.lang.Override
@@ -413,8 +380,7 @@ public com.google.cloud.kms.v1.GenerateRandomBytesResponse build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.GenerateRandomBytesResponse buildPartial() {
-      com.google.cloud.kms.v1.GenerateRandomBytesResponse result =
-          new com.google.cloud.kms.v1.GenerateRandomBytesResponse(this);
+      com.google.cloud.kms.v1.GenerateRandomBytesResponse result = new com.google.cloud.kms.v1.GenerateRandomBytesResponse(this);
       result.data_ = data_;
       if (dataCrc32CBuilder_ == null) {
         result.dataCrc32C_ = dataCrc32C_;
@@ -429,39 +395,38 @@ public com.google.cloud.kms.v1.GenerateRandomBytesResponse 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.kms.v1.GenerateRandomBytesResponse) {
-        return mergeFrom((com.google.cloud.kms.v1.GenerateRandomBytesResponse) other);
+        return mergeFrom((com.google.cloud.kms.v1.GenerateRandomBytesResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -469,8 +434,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.kms.v1.GenerateRandomBytesResponse other) {
-      if (other == com.google.cloud.kms.v1.GenerateRandomBytesResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.kms.v1.GenerateRandomBytesResponse.getDefaultInstance()) return this;
       if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
         setData(other.getData());
       }
@@ -503,25 +467,24 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                data_ = input.readBytes();
-
-                break;
-              } // case 10
-            case 26:
-              {
-                input.readMessage(getDataCrc32CFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              data_ = input.readBytes();
+
+              break;
+            } // case 10
+            case 26: {
+              input.readMessage(
+                  getDataCrc32CFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              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) {
@@ -534,14 +497,11 @@ public Builder mergeFrom(
 
     private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
     /**
-     *
-     *
      * 
      * The generated data.
      * 
* * bytes data = 1; - * * @return The data. */ @java.lang.Override @@ -549,39 +509,33 @@ public com.google.protobuf.ByteString getData() { return data_; } /** - * - * *
      * The generated data.
      * 
* * bytes data = 1; - * * @param value The data to set. * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + data_ = value; onChanged(); return this; } /** - * - * *
      * The generated data.
      * 
* * bytes data = 1; - * * @return This builder for chaining. */ public Builder clearData() { - + data_ = getDefaultInstance().getData(); onChanged(); return this; @@ -589,13 +543,8 @@ public Builder clearData() { private com.google.protobuf.Int64Value dataCrc32C_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> - dataCrc32CBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> dataCrc32CBuilder_; /** - * - * *
      * Integrity verification field. A CRC32C checksum of the returned
      * [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data].
@@ -613,15 +562,12 @@ public Builder clearData() {
      * 
* * .google.protobuf.Int64Value data_crc32c = 3; - * * @return Whether the dataCrc32c field is set. */ public boolean hasDataCrc32C() { return dataCrc32CBuilder_ != null || dataCrc32C_ != null; } /** - * - * *
      * Integrity verification field. A CRC32C checksum of the returned
      * [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data].
@@ -639,21 +585,16 @@ public boolean hasDataCrc32C() {
      * 
* * .google.protobuf.Int64Value data_crc32c = 3; - * * @return The dataCrc32c. */ public com.google.protobuf.Int64Value getDataCrc32C() { if (dataCrc32CBuilder_ == null) { - return dataCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : dataCrc32C_; + return dataCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : dataCrc32C_; } else { return dataCrc32CBuilder_.getMessage(); } } /** - * - * *
      * Integrity verification field. A CRC32C checksum of the returned
      * [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data].
@@ -686,8 +627,6 @@ public Builder setDataCrc32C(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data].
@@ -706,7 +645,8 @@ public Builder setDataCrc32C(com.google.protobuf.Int64Value value) {
      *
      * .google.protobuf.Int64Value data_crc32c = 3;
      */
-    public Builder setDataCrc32C(com.google.protobuf.Int64Value.Builder builderForValue) {
+    public Builder setDataCrc32C(
+        com.google.protobuf.Int64Value.Builder builderForValue) {
       if (dataCrc32CBuilder_ == null) {
         dataCrc32C_ = builderForValue.build();
         onChanged();
@@ -717,8 +657,6 @@ public Builder setDataCrc32C(com.google.protobuf.Int64Value.Builder builderForVa
       return this;
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data].
@@ -741,9 +679,7 @@ public Builder mergeDataCrc32C(com.google.protobuf.Int64Value value) {
       if (dataCrc32CBuilder_ == null) {
         if (dataCrc32C_ != null) {
           dataCrc32C_ =
-              com.google.protobuf.Int64Value.newBuilder(dataCrc32C_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Int64Value.newBuilder(dataCrc32C_).mergeFrom(value).buildPartial();
         } else {
           dataCrc32C_ = value;
         }
@@ -755,8 +691,6 @@ public Builder mergeDataCrc32C(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data].
@@ -787,8 +721,6 @@ public Builder clearDataCrc32C() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data].
@@ -808,13 +740,11 @@ public Builder clearDataCrc32C() {
      * .google.protobuf.Int64Value data_crc32c = 3;
      */
     public com.google.protobuf.Int64Value.Builder getDataCrc32CBuilder() {
-
+      
       onChanged();
       return getDataCrc32CFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data].
@@ -837,14 +767,11 @@ public com.google.protobuf.Int64ValueOrBuilder getDataCrc32COrBuilder() {
       if (dataCrc32CBuilder_ != null) {
         return dataCrc32CBuilder_.getMessageOrBuilder();
       } else {
-        return dataCrc32C_ == null
-            ? com.google.protobuf.Int64Value.getDefaultInstance()
-            : dataCrc32C_;
+        return dataCrc32C_ == null ?
+            com.google.protobuf.Int64Value.getDefaultInstance() : dataCrc32C_;
       }
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data].
@@ -864,24 +791,21 @@ public com.google.protobuf.Int64ValueOrBuilder getDataCrc32COrBuilder() {
      * .google.protobuf.Int64Value data_crc32c = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Int64Value,
-            com.google.protobuf.Int64Value.Builder,
-            com.google.protobuf.Int64ValueOrBuilder>
+        com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> 
         getDataCrc32CFieldBuilder() {
       if (dataCrc32CBuilder_ == null) {
-        dataCrc32CBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Int64Value,
-                com.google.protobuf.Int64Value.Builder,
-                com.google.protobuf.Int64ValueOrBuilder>(
-                getDataCrc32C(), getParentForChildren(), isClean());
+        dataCrc32CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
+                getDataCrc32C(),
+                getParentForChildren(),
+                isClean());
         dataCrc32C_ = null;
       }
       return dataCrc32CBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -891,12 +815,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.GenerateRandomBytesResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.GenerateRandomBytesResponse)
   private static final com.google.cloud.kms.v1.GenerateRandomBytesResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.kms.v1.GenerateRandomBytesResponse();
   }
@@ -905,27 +829,27 @@ public static com.google.cloud.kms.v1.GenerateRandomBytesResponse getDefaultInst
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public GenerateRandomBytesResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public GenerateRandomBytesResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -940,4 +864,6 @@ public com.google.protobuf.Parser getParserForType(
   public com.google.cloud.kms.v1.GenerateRandomBytesResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GenerateRandomBytesResponseOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GenerateRandomBytesResponseOrBuilder.java
similarity index 84%
rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GenerateRandomBytesResponseOrBuilder.java
rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GenerateRandomBytesResponseOrBuilder.java
index fb30f4d2ac4c..8bed19716173 100644
--- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GenerateRandomBytesResponseOrBuilder.java
+++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GenerateRandomBytesResponseOrBuilder.java
@@ -1,44 +1,23 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/kms/v1/service.proto
 
 package com.google.cloud.kms.v1;
 
-public interface GenerateRandomBytesResponseOrBuilder
-    extends
+public interface GenerateRandomBytesResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.GenerateRandomBytesResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The generated data.
    * 
* * bytes data = 1; - * * @return The data. */ com.google.protobuf.ByteString getData(); /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data].
@@ -56,13 +35,10 @@ public interface GenerateRandomBytesResponseOrBuilder
    * 
* * .google.protobuf.Int64Value data_crc32c = 3; - * * @return Whether the dataCrc32c field is set. */ boolean hasDataCrc32C(); /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data].
@@ -80,13 +56,10 @@ public interface GenerateRandomBytesResponseOrBuilder
    * 
* * .google.protobuf.Int64Value data_crc32c = 3; - * * @return The dataCrc32c. */ com.google.protobuf.Int64Value getDataCrc32C(); /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data].
diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyRequest.java
similarity index 62%
rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyRequest.java
rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyRequest.java
index ec2decdd1b51..05c6d08c49ce 100644
--- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyRequest.java
+++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyRequest.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/kms/v1/service.proto
 
 package com.google.cloud.kms.v1;
 
 /**
- *
- *
  * 
  * Request message for
  * [KeyManagementService.GetCryptoKey][google.cloud.kms.v1.KeyManagementService.GetCryptoKey].
@@ -28,60 +11,53 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.GetCryptoKeyRequest}
  */
-public final class GetCryptoKeyRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GetCryptoKeyRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.GetCryptoKeyRequest)
     GetCryptoKeyRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GetCryptoKeyRequest.newBuilder() to construct.
   private GetCryptoKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GetCryptoKeyRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GetCryptoKeyRequest();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_GetCryptoKeyRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetCryptoKeyRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_GetCryptoKeyRequest_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetCryptoKeyRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.GetCryptoKeyRequest.class,
-            com.google.cloud.kms.v1.GetCryptoKeyRequest.Builder.class);
+            com.google.cloud.kms.v1.GetCryptoKeyRequest.class, com.google.cloud.kms.v1.GetCryptoKeyRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] to get.
    * 
* - * - * string name = 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 @@ -90,32 +66,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -124,7 +98,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -136,7 +109,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -160,15 +134,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.kms.v1.GetCryptoKeyRequest)) { return super.equals(obj); } - com.google.cloud.kms.v1.GetCryptoKeyRequest other = - (com.google.cloud.kms.v1.GetCryptoKeyRequest) obj; + com.google.cloud.kms.v1.GetCryptoKeyRequest other = (com.google.cloud.kms.v1.GetCryptoKeyRequest) 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,104 +161,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.GetCryptoKeyRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.GetCryptoKeyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.GetCryptoKeyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.GetCryptoKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.GetCryptoKeyRequest parseFrom( 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.kms.v1.GetCryptoKeyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.GetCryptoKeyRequest parseFrom( - byte[] data, com.google.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.kms.v1.GetCryptoKeyRequest parseFrom(java.io.InputStream input) 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.kms.v1.GetCryptoKeyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.GetCryptoKeyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.GetCryptoKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.GetCryptoKeyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.GetCryptoKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.GetCryptoKeyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.GetCryptoKeyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for
    * [KeyManagementService.GetCryptoKey][google.cloud.kms.v1.KeyManagementService.GetCryptoKey].
@@ -292,32 +259,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.GetCryptoKeyRequest}
    */
-  public static final class Builder extends 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.kms.v1.GetCryptoKeyRequest)
       com.google.cloud.kms.v1.GetCryptoKeyRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_GetCryptoKeyRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetCryptoKeyRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_GetCryptoKeyRequest_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetCryptoKeyRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.GetCryptoKeyRequest.class,
-              com.google.cloud.kms.v1.GetCryptoKeyRequest.Builder.class);
+              com.google.cloud.kms.v1.GetCryptoKeyRequest.class, com.google.cloud.kms.v1.GetCryptoKeyRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.GetCryptoKeyRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -327,9 +295,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_GetCryptoKeyRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetCryptoKeyRequest_descriptor;
     }
 
     @java.lang.Override
@@ -348,8 +316,7 @@ public com.google.cloud.kms.v1.GetCryptoKeyRequest build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.GetCryptoKeyRequest buildPartial() {
-      com.google.cloud.kms.v1.GetCryptoKeyRequest result =
-          new com.google.cloud.kms.v1.GetCryptoKeyRequest(this);
+      com.google.cloud.kms.v1.GetCryptoKeyRequest result = new com.google.cloud.kms.v1.GetCryptoKeyRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -359,39 +326,38 @@ public com.google.cloud.kms.v1.GetCryptoKeyRequest 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.kms.v1.GetCryptoKeyRequest) {
-        return mergeFrom((com.google.cloud.kms.v1.GetCryptoKeyRequest) other);
+        return mergeFrom((com.google.cloud.kms.v1.GetCryptoKeyRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -430,19 +396,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 +419,19 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to get.
      * 
* - * - * string name = 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 +440,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to get.
      * 
* - * - * string name = 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 +462,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to get.
      * 
* - * - * 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 [name][google.cloud.kms.v1.CryptoKey.name] of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to get.
      * 
* - * - * string 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 [name][google.cloud.kms.v1.CryptoKey.name] of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to get.
      * 
* - * - * 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 +529,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.GetCryptoKeyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.GetCryptoKeyRequest) private static final com.google.cloud.kms.v1.GetCryptoKeyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.GetCryptoKeyRequest(); } @@ -599,27 +543,27 @@ public static com.google.cloud.kms.v1.GetCryptoKeyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCryptoKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCryptoKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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 +578,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.GetCryptoKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyRequestOrBuilder.java new file mode 100644 index 000000000000..dec70ef48731 --- /dev/null +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/service.proto + +package com.google.cloud.kms.v1; + +public interface GetCryptoKeyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.GetCryptoKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
+   * [CryptoKey][google.cloud.kms.v1.CryptoKey] to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
+   * [CryptoKey][google.cloud.kms.v1.CryptoKey] to get.
+   * 
+ * + * 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-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyVersionRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyVersionRequest.java similarity index 62% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyVersionRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyVersionRequest.java index 0a88f9268d48..45f27f989e41 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyVersionRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyVersionRequest.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for
  * [KeyManagementService.GetCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.GetCryptoKeyVersion].
@@ -28,60 +11,53 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.GetCryptoKeyVersionRequest}
  */
-public final class GetCryptoKeyVersionRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GetCryptoKeyVersionRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.GetCryptoKeyVersionRequest)
     GetCryptoKeyVersionRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GetCryptoKeyVersionRequest.newBuilder() to construct.
   private GetCryptoKeyVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GetCryptoKeyVersionRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GetCryptoKeyVersionRequest();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_GetCryptoKeyVersionRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetCryptoKeyVersionRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_GetCryptoKeyVersionRequest_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetCryptoKeyVersionRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.GetCryptoKeyVersionRequest.class,
-            com.google.cloud.kms.v1.GetCryptoKeyVersionRequest.Builder.class);
+            com.google.cloud.kms.v1.GetCryptoKeyVersionRequest.class, com.google.cloud.kms.v1.GetCryptoKeyVersionRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to get.
    * 
* - * - * string name = 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 @@ -90,32 +66,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -124,7 +98,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -136,7 +109,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -160,15 +134,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.kms.v1.GetCryptoKeyVersionRequest)) { return super.equals(obj); } - com.google.cloud.kms.v1.GetCryptoKeyVersionRequest other = - (com.google.cloud.kms.v1.GetCryptoKeyVersionRequest) obj; + com.google.cloud.kms.v1.GetCryptoKeyVersionRequest other = (com.google.cloud.kms.v1.GetCryptoKeyVersionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -188,103 +162,96 @@ public int hashCode() { } public static com.google.cloud.kms.v1.GetCryptoKeyVersionRequest 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.kms.v1.GetCryptoKeyVersionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.GetCryptoKeyVersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.GetCryptoKeyVersionRequest parseFrom( 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.kms.v1.GetCryptoKeyVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.GetCryptoKeyVersionRequest parseFrom( - byte[] data, com.google.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.kms.v1.GetCryptoKeyVersionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.GetCryptoKeyVersionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.GetCryptoKeyVersionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.GetCryptoKeyVersionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.GetCryptoKeyVersionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.GetCryptoKeyVersionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.GetCryptoKeyVersionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.GetCryptoKeyVersionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.GetCryptoKeyVersionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for
    * [KeyManagementService.GetCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.GetCryptoKeyVersion].
@@ -292,32 +259,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.GetCryptoKeyVersionRequest}
    */
-  public static final class Builder extends 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.kms.v1.GetCryptoKeyVersionRequest)
       com.google.cloud.kms.v1.GetCryptoKeyVersionRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_GetCryptoKeyVersionRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetCryptoKeyVersionRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_GetCryptoKeyVersionRequest_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetCryptoKeyVersionRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.GetCryptoKeyVersionRequest.class,
-              com.google.cloud.kms.v1.GetCryptoKeyVersionRequest.Builder.class);
+              com.google.cloud.kms.v1.GetCryptoKeyVersionRequest.class, com.google.cloud.kms.v1.GetCryptoKeyVersionRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.GetCryptoKeyVersionRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -327,9 +295,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_GetCryptoKeyVersionRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetCryptoKeyVersionRequest_descriptor;
     }
 
     @java.lang.Override
@@ -348,8 +316,7 @@ public com.google.cloud.kms.v1.GetCryptoKeyVersionRequest build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.GetCryptoKeyVersionRequest buildPartial() {
-      com.google.cloud.kms.v1.GetCryptoKeyVersionRequest result =
-          new com.google.cloud.kms.v1.GetCryptoKeyVersionRequest(this);
+      com.google.cloud.kms.v1.GetCryptoKeyVersionRequest result = new com.google.cloud.kms.v1.GetCryptoKeyVersionRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -359,39 +326,38 @@ public com.google.cloud.kms.v1.GetCryptoKeyVersionRequest 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.kms.v1.GetCryptoKeyVersionRequest) {
-        return mergeFrom((com.google.cloud.kms.v1.GetCryptoKeyVersionRequest) other);
+        return mergeFrom((com.google.cloud.kms.v1.GetCryptoKeyVersionRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -399,8 +365,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.kms.v1.GetCryptoKeyVersionRequest other) {
-      if (other == com.google.cloud.kms.v1.GetCryptoKeyVersionRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.kms.v1.GetCryptoKeyVersionRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -431,19 +396,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) {
@@ -456,23 +419,19 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to get.
      * 
* - * - * string name = 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; @@ -481,24 +440,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to get.
      * 
* - * - * string name = 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 { @@ -506,77 +462,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to get.
      * 
* - * - * 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 [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to get.
      * 
* - * - * string 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 [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to get.
      * 
* - * - * 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); } @@ -586,12 +529,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.GetCryptoKeyVersionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.GetCryptoKeyVersionRequest) private static final com.google.cloud.kms.v1.GetCryptoKeyVersionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.GetCryptoKeyVersionRequest(); } @@ -600,27 +543,27 @@ public static com.google.cloud.kms.v1.GetCryptoKeyVersionRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCryptoKeyVersionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCryptoKeyVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -635,4 +578,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.kms.v1.GetCryptoKeyVersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyVersionRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyVersionRequestOrBuilder.java new file mode 100644 index 000000000000..77627fb047f2 --- /dev/null +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetCryptoKeyVersionRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/service.proto + +package com.google.cloud.kms.v1; + +public interface GetCryptoKeyVersionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.GetCryptoKeyVersionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
+   * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
+   * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to get.
+   * 
+ * + * 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-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetEkmConnectionRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetEkmConnectionRequest.java similarity index 62% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetEkmConnectionRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetEkmConnectionRequest.java index 5374d9000e49..6354d5789052 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetEkmConnectionRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetEkmConnectionRequest.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/kms/v1/ekm_service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for [KeyManagementService.GetEkmConnection][].
  * 
* * Protobuf type {@code google.cloud.kms.v1.GetEkmConnectionRequest} */ -public final class GetEkmConnectionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetEkmConnectionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.GetEkmConnectionRequest) GetEkmConnectionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetEkmConnectionRequest.newBuilder() to construct. private GetEkmConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetEkmConnectionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetEkmConnectionRequest(); } @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.kms.v1.EkmServiceProto - .internal_static_google_cloud_kms_v1_GetEkmConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_GetEkmConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.v1.EkmServiceProto - .internal_static_google_cloud_kms_v1_GetEkmConnectionRequest_fieldAccessorTable + return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_GetEkmConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.v1.GetEkmConnectionRequest.class, - com.google.cloud.kms.v1.GetEkmConnectionRequest.Builder.class); + com.google.cloud.kms.v1.GetEkmConnectionRequest.class, com.google.cloud.kms.v1.GetEkmConnectionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The [name][google.cloud.kms.v1.EkmConnection.name] of the
    * [EkmConnection][google.cloud.kms.v1.EkmConnection] to get.
    * 
* - * - * string name = 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 [name][google.cloud.kms.v1.EkmConnection.name] of the
    * [EkmConnection][google.cloud.kms.v1.EkmConnection] to get.
    * 
* - * - * string name = 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.kms.v1.GetEkmConnectionRequest)) { return super.equals(obj); } - com.google.cloud.kms.v1.GetEkmConnectionRequest other = - (com.google.cloud.kms.v1.GetEkmConnectionRequest) obj; + com.google.cloud.kms.v1.GetEkmConnectionRequest other = (com.google.cloud.kms.v1.GetEkmConnectionRequest) 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.kms.v1.GetEkmConnectionRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.GetEkmConnectionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.GetEkmConnectionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.GetEkmConnectionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.GetEkmConnectionRequest parseFrom( 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.kms.v1.GetEkmConnectionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.GetEkmConnectionRequest parseFrom( - byte[] data, com.google.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.kms.v1.GetEkmConnectionRequest parseFrom(java.io.InputStream input) 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.kms.v1.GetEkmConnectionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.GetEkmConnectionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.GetEkmConnectionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.GetEkmConnectionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.GetEkmConnectionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.GetEkmConnectionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.GetEkmConnectionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [KeyManagementService.GetEkmConnection][].
    * 
* * Protobuf type {@code google.cloud.kms.v1.GetEkmConnectionRequest} */ - public static final class Builder extends 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.kms.v1.GetEkmConnectionRequest) com.google.cloud.kms.v1.GetEkmConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.kms.v1.EkmServiceProto - .internal_static_google_cloud_kms_v1_GetEkmConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_GetEkmConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.v1.EkmServiceProto - .internal_static_google_cloud_kms_v1_GetEkmConnectionRequest_fieldAccessorTable + return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_GetEkmConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.v1.GetEkmConnectionRequest.class, - com.google.cloud.kms.v1.GetEkmConnectionRequest.Builder.class); + com.google.cloud.kms.v1.GetEkmConnectionRequest.class, com.google.cloud.kms.v1.GetEkmConnectionRequest.Builder.class); } // Construct using com.google.cloud.kms.v1.GetEkmConnectionRequest.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.kms.v1.EkmServiceProto - .internal_static_google_cloud_kms_v1_GetEkmConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_GetEkmConnectionRequest_descriptor; } @java.lang.Override @@ -346,8 +314,7 @@ public com.google.cloud.kms.v1.GetEkmConnectionRequest build() { @java.lang.Override public com.google.cloud.kms.v1.GetEkmConnectionRequest buildPartial() { - com.google.cloud.kms.v1.GetEkmConnectionRequest result = - new com.google.cloud.kms.v1.GetEkmConnectionRequest(this); + com.google.cloud.kms.v1.GetEkmConnectionRequest result = new com.google.cloud.kms.v1.GetEkmConnectionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -357,39 +324,38 @@ public com.google.cloud.kms.v1.GetEkmConnectionRequest 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.kms.v1.GetEkmConnectionRequest) { - return mergeFrom((com.google.cloud.kms.v1.GetEkmConnectionRequest) other); + return mergeFrom((com.google.cloud.kms.v1.GetEkmConnectionRequest)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.kms.v1.GetEkmConnectionRequest other) { - if (other == com.google.cloud.kms.v1.GetEkmConnectionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.kms.v1.GetEkmConnectionRequest.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 [name][google.cloud.kms.v1.EkmConnection.name] of the
      * [EkmConnection][google.cloud.kms.v1.EkmConnection] to get.
      * 
* - * - * string name = 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 [name][google.cloud.kms.v1.EkmConnection.name] of the
      * [EkmConnection][google.cloud.kms.v1.EkmConnection] to get.
      * 
* - * - * string name = 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 [name][google.cloud.kms.v1.EkmConnection.name] of the
      * [EkmConnection][google.cloud.kms.v1.EkmConnection] to get.
      * 
* - * - * 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 [name][google.cloud.kms.v1.EkmConnection.name] of the
      * [EkmConnection][google.cloud.kms.v1.EkmConnection] to get.
      * 
* - * - * string 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 [name][google.cloud.kms.v1.EkmConnection.name] of the
      * [EkmConnection][google.cloud.kms.v1.EkmConnection] to get.
      * 
* - * - * 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.kms.v1.GetEkmConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.GetEkmConnectionRequest) private static final com.google.cloud.kms.v1.GetEkmConnectionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.GetEkmConnectionRequest(); } @@ -598,27 +541,27 @@ public static com.google.cloud.kms.v1.GetEkmConnectionRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetEkmConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetEkmConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.kms.v1.GetEkmConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetEkmConnectionRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetEkmConnectionRequestOrBuilder.java new file mode 100644 index 000000000000..7c54c5b623ef --- /dev/null +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetEkmConnectionRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/ekm_service.proto + +package com.google.cloud.kms.v1; + +public interface GetEkmConnectionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.GetEkmConnectionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The [name][google.cloud.kms.v1.EkmConnection.name] of the
+   * [EkmConnection][google.cloud.kms.v1.EkmConnection] to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The [name][google.cloud.kms.v1.EkmConnection.name] of the
+   * [EkmConnection][google.cloud.kms.v1.EkmConnection] to get.
+   * 
+ * + * 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-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetImportJobRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetImportJobRequest.java similarity index 62% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetImportJobRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetImportJobRequest.java index d7409d6d5ad4..7eafb04a812b 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetImportJobRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetImportJobRequest.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for
  * [KeyManagementService.GetImportJob][google.cloud.kms.v1.KeyManagementService.GetImportJob].
@@ -28,60 +11,53 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.GetImportJobRequest}
  */
-public final class GetImportJobRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GetImportJobRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.GetImportJobRequest)
     GetImportJobRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GetImportJobRequest.newBuilder() to construct.
   private GetImportJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GetImportJobRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GetImportJobRequest();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_GetImportJobRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetImportJobRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_GetImportJobRequest_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetImportJobRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.GetImportJobRequest.class,
-            com.google.cloud.kms.v1.GetImportJobRequest.Builder.class);
+            com.google.cloud.kms.v1.GetImportJobRequest.class, com.google.cloud.kms.v1.GetImportJobRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The [name][google.cloud.kms.v1.ImportJob.name] of the
    * [ImportJob][google.cloud.kms.v1.ImportJob] to get.
    * 
* - * - * string name = 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 @@ -90,32 +66,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The [name][google.cloud.kms.v1.ImportJob.name] of the
    * [ImportJob][google.cloud.kms.v1.ImportJob] to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -124,7 +98,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -136,7 +109,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -160,15 +134,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.kms.v1.GetImportJobRequest)) { return super.equals(obj); } - com.google.cloud.kms.v1.GetImportJobRequest other = - (com.google.cloud.kms.v1.GetImportJobRequest) obj; + com.google.cloud.kms.v1.GetImportJobRequest other = (com.google.cloud.kms.v1.GetImportJobRequest) 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,104 +161,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.GetImportJobRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.GetImportJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.GetImportJobRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.GetImportJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.GetImportJobRequest parseFrom( 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.kms.v1.GetImportJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.GetImportJobRequest parseFrom( - byte[] data, com.google.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.kms.v1.GetImportJobRequest parseFrom(java.io.InputStream input) 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.kms.v1.GetImportJobRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.GetImportJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.GetImportJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.GetImportJobRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.GetImportJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.GetImportJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.GetImportJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for
    * [KeyManagementService.GetImportJob][google.cloud.kms.v1.KeyManagementService.GetImportJob].
@@ -292,32 +259,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.GetImportJobRequest}
    */
-  public static final class Builder extends 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.kms.v1.GetImportJobRequest)
       com.google.cloud.kms.v1.GetImportJobRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_GetImportJobRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetImportJobRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_GetImportJobRequest_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetImportJobRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.GetImportJobRequest.class,
-              com.google.cloud.kms.v1.GetImportJobRequest.Builder.class);
+              com.google.cloud.kms.v1.GetImportJobRequest.class, com.google.cloud.kms.v1.GetImportJobRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.GetImportJobRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -327,9 +295,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_GetImportJobRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetImportJobRequest_descriptor;
     }
 
     @java.lang.Override
@@ -348,8 +316,7 @@ public com.google.cloud.kms.v1.GetImportJobRequest build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.GetImportJobRequest buildPartial() {
-      com.google.cloud.kms.v1.GetImportJobRequest result =
-          new com.google.cloud.kms.v1.GetImportJobRequest(this);
+      com.google.cloud.kms.v1.GetImportJobRequest result = new com.google.cloud.kms.v1.GetImportJobRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -359,39 +326,38 @@ public com.google.cloud.kms.v1.GetImportJobRequest 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.kms.v1.GetImportJobRequest) {
-        return mergeFrom((com.google.cloud.kms.v1.GetImportJobRequest) other);
+        return mergeFrom((com.google.cloud.kms.v1.GetImportJobRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -430,19 +396,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 +419,19 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The [name][google.cloud.kms.v1.ImportJob.name] of the
      * [ImportJob][google.cloud.kms.v1.ImportJob] to get.
      * 
* - * - * string name = 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 +440,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The [name][google.cloud.kms.v1.ImportJob.name] of the
      * [ImportJob][google.cloud.kms.v1.ImportJob] to get.
      * 
* - * - * string name = 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 +462,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The [name][google.cloud.kms.v1.ImportJob.name] of the
      * [ImportJob][google.cloud.kms.v1.ImportJob] to get.
      * 
* - * - * 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 [name][google.cloud.kms.v1.ImportJob.name] of the
      * [ImportJob][google.cloud.kms.v1.ImportJob] to get.
      * 
* - * - * string 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 [name][google.cloud.kms.v1.ImportJob.name] of the
      * [ImportJob][google.cloud.kms.v1.ImportJob] to get.
      * 
* - * - * 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 +529,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.GetImportJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.GetImportJobRequest) private static final com.google.cloud.kms.v1.GetImportJobRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.GetImportJobRequest(); } @@ -599,27 +543,27 @@ public static com.google.cloud.kms.v1.GetImportJobRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetImportJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetImportJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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 +578,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.GetImportJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetImportJobRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetImportJobRequestOrBuilder.java new file mode 100644 index 000000000000..0e3435a4e328 --- /dev/null +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetImportJobRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/service.proto + +package com.google.cloud.kms.v1; + +public interface GetImportJobRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.GetImportJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The [name][google.cloud.kms.v1.ImportJob.name] of the
+   * [ImportJob][google.cloud.kms.v1.ImportJob] to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The [name][google.cloud.kms.v1.ImportJob.name] of the
+   * [ImportJob][google.cloud.kms.v1.ImportJob] to get.
+   * 
+ * + * 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-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetKeyRingRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetKeyRingRequest.java similarity index 62% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetKeyRingRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetKeyRingRequest.java index 41bc1c25d9ef..4870d451992e 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetKeyRingRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetKeyRingRequest.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for
  * [KeyManagementService.GetKeyRing][google.cloud.kms.v1.KeyManagementService.GetKeyRing].
@@ -28,60 +11,53 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.GetKeyRingRequest}
  */
-public final class GetKeyRingRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GetKeyRingRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.GetKeyRingRequest)
     GetKeyRingRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GetKeyRingRequest.newBuilder() to construct.
   private GetKeyRingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GetKeyRingRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GetKeyRingRequest();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_GetKeyRingRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetKeyRingRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_GetKeyRingRequest_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetKeyRingRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.GetKeyRingRequest.class,
-            com.google.cloud.kms.v1.GetKeyRingRequest.Builder.class);
+            com.google.cloud.kms.v1.GetKeyRingRequest.class, com.google.cloud.kms.v1.GetKeyRingRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The [name][google.cloud.kms.v1.KeyRing.name] of the
    * [KeyRing][google.cloud.kms.v1.KeyRing] to get.
    * 
* - * - * string name = 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 @@ -90,32 +66,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The [name][google.cloud.kms.v1.KeyRing.name] of the
    * [KeyRing][google.cloud.kms.v1.KeyRing] to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -124,7 +98,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -136,7 +109,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -160,15 +134,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.kms.v1.GetKeyRingRequest)) { return super.equals(obj); } - com.google.cloud.kms.v1.GetKeyRingRequest other = - (com.google.cloud.kms.v1.GetKeyRingRequest) obj; + com.google.cloud.kms.v1.GetKeyRingRequest other = (com.google.cloud.kms.v1.GetKeyRingRequest) 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,104 +161,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.GetKeyRingRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.GetKeyRingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.GetKeyRingRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.GetKeyRingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.GetKeyRingRequest parseFrom( 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.kms.v1.GetKeyRingRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.GetKeyRingRequest parseFrom( - byte[] data, com.google.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.kms.v1.GetKeyRingRequest parseFrom(java.io.InputStream input) 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.kms.v1.GetKeyRingRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.GetKeyRingRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.GetKeyRingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.GetKeyRingRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.GetKeyRingRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.GetKeyRingRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.GetKeyRingRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for
    * [KeyManagementService.GetKeyRing][google.cloud.kms.v1.KeyManagementService.GetKeyRing].
@@ -292,32 +259,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.GetKeyRingRequest}
    */
-  public static final class Builder extends 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.kms.v1.GetKeyRingRequest)
       com.google.cloud.kms.v1.GetKeyRingRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_GetKeyRingRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetKeyRingRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_GetKeyRingRequest_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetKeyRingRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.GetKeyRingRequest.class,
-              com.google.cloud.kms.v1.GetKeyRingRequest.Builder.class);
+              com.google.cloud.kms.v1.GetKeyRingRequest.class, com.google.cloud.kms.v1.GetKeyRingRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.GetKeyRingRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -327,9 +295,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_GetKeyRingRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetKeyRingRequest_descriptor;
     }
 
     @java.lang.Override
@@ -348,8 +316,7 @@ public com.google.cloud.kms.v1.GetKeyRingRequest build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.GetKeyRingRequest buildPartial() {
-      com.google.cloud.kms.v1.GetKeyRingRequest result =
-          new com.google.cloud.kms.v1.GetKeyRingRequest(this);
+      com.google.cloud.kms.v1.GetKeyRingRequest result = new com.google.cloud.kms.v1.GetKeyRingRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -359,39 +326,38 @@ public com.google.cloud.kms.v1.GetKeyRingRequest 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.kms.v1.GetKeyRingRequest) {
-        return mergeFrom((com.google.cloud.kms.v1.GetKeyRingRequest) other);
+        return mergeFrom((com.google.cloud.kms.v1.GetKeyRingRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -430,19 +396,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 +419,19 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The [name][google.cloud.kms.v1.KeyRing.name] of the
      * [KeyRing][google.cloud.kms.v1.KeyRing] to get.
      * 
* - * - * string name = 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 +440,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The [name][google.cloud.kms.v1.KeyRing.name] of the
      * [KeyRing][google.cloud.kms.v1.KeyRing] to get.
      * 
* - * - * string name = 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 +462,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The [name][google.cloud.kms.v1.KeyRing.name] of the
      * [KeyRing][google.cloud.kms.v1.KeyRing] to get.
      * 
* - * - * 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 [name][google.cloud.kms.v1.KeyRing.name] of the
      * [KeyRing][google.cloud.kms.v1.KeyRing] to get.
      * 
* - * - * string 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 [name][google.cloud.kms.v1.KeyRing.name] of the
      * [KeyRing][google.cloud.kms.v1.KeyRing] to get.
      * 
* - * - * 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 +529,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.GetKeyRingRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.GetKeyRingRequest) private static final com.google.cloud.kms.v1.GetKeyRingRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.GetKeyRingRequest(); } @@ -599,27 +543,27 @@ public static com.google.cloud.kms.v1.GetKeyRingRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetKeyRingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetKeyRingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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 +578,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.GetKeyRingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetKeyRingRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetKeyRingRequestOrBuilder.java new file mode 100644 index 000000000000..fdbe4b52fc91 --- /dev/null +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetKeyRingRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/service.proto + +package com.google.cloud.kms.v1; + +public interface GetKeyRingRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.GetKeyRingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The [name][google.cloud.kms.v1.KeyRing.name] of the
+   * [KeyRing][google.cloud.kms.v1.KeyRing] to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The [name][google.cloud.kms.v1.KeyRing.name] of the
+   * [KeyRing][google.cloud.kms.v1.KeyRing] to get.
+   * 
+ * + * 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-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetPublicKeyRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetPublicKeyRequest.java similarity index 63% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetPublicKeyRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetPublicKeyRequest.java index b607976ec45b..842514dfba98 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetPublicKeyRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetPublicKeyRequest.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for
  * [KeyManagementService.GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
@@ -28,60 +11,53 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.GetPublicKeyRequest}
  */
-public final class GetPublicKeyRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GetPublicKeyRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.GetPublicKeyRequest)
     GetPublicKeyRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GetPublicKeyRequest.newBuilder() to construct.
   private GetPublicKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GetPublicKeyRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GetPublicKeyRequest();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_GetPublicKeyRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetPublicKeyRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_GetPublicKeyRequest_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetPublicKeyRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.GetPublicKeyRequest.class,
-            com.google.cloud.kms.v1.GetPublicKeyRequest.Builder.class);
+            com.google.cloud.kms.v1.GetPublicKeyRequest.class, com.google.cloud.kms.v1.GetPublicKeyRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to get.
    * 
* - * - * string name = 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 @@ -90,32 +66,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -124,7 +98,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -136,7 +109,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -160,15 +134,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.kms.v1.GetPublicKeyRequest)) { return super.equals(obj); } - com.google.cloud.kms.v1.GetPublicKeyRequest other = - (com.google.cloud.kms.v1.GetPublicKeyRequest) obj; + com.google.cloud.kms.v1.GetPublicKeyRequest other = (com.google.cloud.kms.v1.GetPublicKeyRequest) 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,104 +161,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.GetPublicKeyRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.GetPublicKeyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.GetPublicKeyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.GetPublicKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.GetPublicKeyRequest parseFrom( 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.kms.v1.GetPublicKeyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.GetPublicKeyRequest parseFrom( - byte[] data, com.google.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.kms.v1.GetPublicKeyRequest parseFrom(java.io.InputStream input) 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.kms.v1.GetPublicKeyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.GetPublicKeyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.GetPublicKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.GetPublicKeyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.GetPublicKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.GetPublicKeyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.GetPublicKeyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for
    * [KeyManagementService.GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
@@ -292,32 +259,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.GetPublicKeyRequest}
    */
-  public static final class Builder extends 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.kms.v1.GetPublicKeyRequest)
       com.google.cloud.kms.v1.GetPublicKeyRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_GetPublicKeyRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetPublicKeyRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_GetPublicKeyRequest_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetPublicKeyRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.GetPublicKeyRequest.class,
-              com.google.cloud.kms.v1.GetPublicKeyRequest.Builder.class);
+              com.google.cloud.kms.v1.GetPublicKeyRequest.class, com.google.cloud.kms.v1.GetPublicKeyRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.GetPublicKeyRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -327,9 +295,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_GetPublicKeyRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetPublicKeyRequest_descriptor;
     }
 
     @java.lang.Override
@@ -348,8 +316,7 @@ public com.google.cloud.kms.v1.GetPublicKeyRequest build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.GetPublicKeyRequest buildPartial() {
-      com.google.cloud.kms.v1.GetPublicKeyRequest result =
-          new com.google.cloud.kms.v1.GetPublicKeyRequest(this);
+      com.google.cloud.kms.v1.GetPublicKeyRequest result = new com.google.cloud.kms.v1.GetPublicKeyRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -359,39 +326,38 @@ public com.google.cloud.kms.v1.GetPublicKeyRequest 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.kms.v1.GetPublicKeyRequest) {
-        return mergeFrom((com.google.cloud.kms.v1.GetPublicKeyRequest) other);
+        return mergeFrom((com.google.cloud.kms.v1.GetPublicKeyRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -430,19 +396,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 +419,19 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to get.
      * 
* - * - * string name = 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 +440,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to get.
      * 
* - * - * string name = 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 +462,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to get.
      * 
* - * - * 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 [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to get.
      * 
* - * - * string 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 [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to get.
      * 
* - * - * 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 +529,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.GetPublicKeyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.GetPublicKeyRequest) private static final com.google.cloud.kms.v1.GetPublicKeyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.GetPublicKeyRequest(); } @@ -599,27 +543,27 @@ public static com.google.cloud.kms.v1.GetPublicKeyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPublicKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPublicKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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 +578,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.GetPublicKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetPublicKeyRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetPublicKeyRequestOrBuilder.java new file mode 100644 index 000000000000..789f251d7b44 --- /dev/null +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetPublicKeyRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/service.proto + +package com.google.cloud.kms.v1; + +public interface GetPublicKeyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.GetPublicKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
+   * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
+   * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to get.
+   * 
+ * + * 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-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportCryptoKeyVersionRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportCryptoKeyVersionRequest.java similarity index 75% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportCryptoKeyVersionRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportCryptoKeyVersionRequest.java index 15b517a6e71c..693b2348423e 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportCryptoKeyVersionRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportCryptoKeyVersionRequest.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for
  * [KeyManagementService.ImportCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.ImportCryptoKeyVersion].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.ImportCryptoKeyVersionRequest}
  */
-public final class ImportCryptoKeyVersionRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ImportCryptoKeyVersionRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.ImportCryptoKeyVersionRequest)
     ImportCryptoKeyVersionRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ImportCryptoKeyVersionRequest.newBuilder() to construct.
   private ImportCryptoKeyVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ImportCryptoKeyVersionRequest() {
     parent_ = "";
     cryptoKeyVersion_ = "";
@@ -47,41 +29,37 @@ private ImportCryptoKeyVersionRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ImportCryptoKeyVersionRequest();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_ImportCryptoKeyVersionRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ImportCryptoKeyVersionRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_ImportCryptoKeyVersionRequest_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ImportCryptoKeyVersionRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest.class,
-            com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest.Builder.class);
+            com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest.class, com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest.Builder.class);
   }
 
   private int wrappedKeyMaterialCase_ = 0;
   private java.lang.Object wrappedKeyMaterial_;
-
   public enum WrappedKeyMaterialCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     RSA_AES_WRAPPED_KEY(5),
     WRAPPEDKEYMATERIAL_NOT_SET(0);
     private final int value;
-
     private WrappedKeyMaterialCase(int value) {
       this.value = value;
     }
@@ -97,29 +75,25 @@ public static WrappedKeyMaterialCase valueOf(int value) {
 
     public static WrappedKeyMaterialCase forNumber(int value) {
       switch (value) {
-        case 5:
-          return RSA_AES_WRAPPED_KEY;
-        case 0:
-          return WRAPPEDKEYMATERIAL_NOT_SET;
-        default:
-          return null;
+        case 5: return RSA_AES_WRAPPED_KEY;
+        case 0: return WRAPPEDKEYMATERIAL_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public WrappedKeyMaterialCase getWrappedKeyMaterialCase() {
-    return WrappedKeyMaterialCase.forNumber(wrappedKeyMaterialCase_);
+  public WrappedKeyMaterialCase
+  getWrappedKeyMaterialCase() {
+    return WrappedKeyMaterialCase.forNumber(
+        wrappedKeyMaterialCase_);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
-   *
-   *
    * 
    * Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] to be imported into.
@@ -127,10 +101,7 @@ public WrappedKeyMaterialCase getWrappedKeyMaterialCase() {
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
    * 
* - * - * string parent = 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 @@ -139,15 +110,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 [name][google.cloud.kms.v1.CryptoKey.name] of the
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] to be imported into.
@@ -155,18 +125,17 @@ public java.lang.String getParent() {
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
    * 
* - * - * string parent = 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 { @@ -177,8 +146,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CRYPTO_KEY_VERSION_FIELD_NUMBER = 6; private volatile java.lang.Object cryptoKeyVersion_; /** - * - * *
    * Optional. The optional [name][google.cloud.kms.v1.CryptoKeyVersion.name] of
    * an existing [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to
@@ -201,10 +168,7 @@ public com.google.protobuf.ByteString getParentBytes() {
    * key material.
    * 
* - * - * string crypto_key_version = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string crypto_key_version = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The cryptoKeyVersion. */ @java.lang.Override @@ -213,15 +177,14 @@ public java.lang.String getCryptoKeyVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cryptoKeyVersion_ = s; return s; } } /** - * - * *
    * Optional. The optional [name][google.cloud.kms.v1.CryptoKeyVersion.name] of
    * an existing [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to
@@ -244,18 +207,17 @@ public java.lang.String getCryptoKeyVersion() {
    * key material.
    * 
* - * - * string crypto_key_version = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string crypto_key_version = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for cryptoKeyVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getCryptoKeyVersionBytes() { + public com.google.protobuf.ByteString + getCryptoKeyVersionBytes() { java.lang.Object ref = cryptoKeyVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cryptoKeyVersion_ = b; return b; } else { @@ -266,8 +228,6 @@ public com.google.protobuf.ByteString getCryptoKeyVersionBytes() { public static final int ALGORITHM_FIELD_NUMBER = 2; private int algorithm_; /** - * - * *
    * Required. The
    * [algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -276,19 +236,13 @@ public com.google.protobuf.ByteString getCryptoKeyVersionBytes() {
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] this version imports into.
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for algorithm. */ - @java.lang.Override - public int getAlgorithmValue() { + @java.lang.Override public int getAlgorithmValue() { return algorithm_; } /** - * - * *
    * Required. The
    * [algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -297,27 +251,18 @@ public int getAlgorithmValue() {
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] this version imports into.
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The algorithm. */ - @java.lang.Override - public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm() { + @java.lang.Override public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm result = - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.valueOf(algorithm_); - return result == null - ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.UNRECOGNIZED - : result; + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm result = com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.valueOf(algorithm_); + return result == null ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.UNRECOGNIZED : result; } public static final int IMPORT_JOB_FIELD_NUMBER = 4; private volatile java.lang.Object importJob_; /** - * - * *
    * Required. The [name][google.cloud.kms.v1.ImportJob.name] of the
    * [ImportJob][google.cloud.kms.v1.ImportJob] that was used to wrap this key
@@ -325,7 +270,6 @@ public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlg
    * 
* * string import_job = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The importJob. */ @java.lang.Override @@ -334,15 +278,14 @@ public java.lang.String getImportJob() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importJob_ = s; return s; } } /** - * - * *
    * Required. The [name][google.cloud.kms.v1.ImportJob.name] of the
    * [ImportJob][google.cloud.kms.v1.ImportJob] that was used to wrap this key
@@ -350,15 +293,16 @@ public java.lang.String getImportJob() {
    * 
* * string import_job = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for importJob. */ @java.lang.Override - public com.google.protobuf.ByteString getImportJobBytes() { + public com.google.protobuf.ByteString + getImportJobBytes() { java.lang.Object ref = importJob_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); importJob_ = b; return b; } else { @@ -368,8 +312,6 @@ public com.google.protobuf.ByteString getImportJobBytes() { public static final int RSA_AES_WRAPPED_KEY_FIELD_NUMBER = 5; /** - * - * *
    * Wrapped key material produced with
    * [RSA_OAEP_3072_SHA1_AES_256][google.cloud.kms.v1.ImportJob.ImportMethod.RSA_OAEP_3072_SHA1_AES_256]
@@ -395,7 +337,6 @@ public com.google.protobuf.ByteString getImportJobBytes() {
    * 
* * bytes rsa_aes_wrapped_key = 5; - * * @return Whether the rsaAesWrappedKey field is set. */ @java.lang.Override @@ -403,8 +344,6 @@ public boolean hasRsaAesWrappedKey() { return wrappedKeyMaterialCase_ == 5; } /** - * - * *
    * Wrapped key material produced with
    * [RSA_OAEP_3072_SHA1_AES_256][google.cloud.kms.v1.ImportJob.ImportMethod.RSA_OAEP_3072_SHA1_AES_256]
@@ -430,7 +369,6 @@ public boolean hasRsaAesWrappedKey() {
    * 
* * bytes rsa_aes_wrapped_key = 5; - * * @return The rsaAesWrappedKey. */ @java.lang.Override @@ -442,7 +380,6 @@ public com.google.protobuf.ByteString getRsaAesWrappedKey() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -454,21 +391,20 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (algorithm_ - != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm - .CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED - .getNumber()) { + if (algorithm_ != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED.getNumber()) { output.writeEnum(2, algorithm_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(importJob_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, importJob_); } if (wrappedKeyMaterialCase_ == 5) { - output.writeBytes(5, (com.google.protobuf.ByteString) wrappedKeyMaterial_); + output.writeBytes( + 5, (com.google.protobuf.ByteString) wrappedKeyMaterial_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cryptoKeyVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, cryptoKeyVersion_); @@ -485,19 +421,17 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (algorithm_ - != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm - .CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, algorithm_); + if (algorithm_ != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, algorithm_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(importJob_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, importJob_); } if (wrappedKeyMaterialCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 5, (com.google.protobuf.ByteString) wrappedKeyMaterial_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 5, (com.google.protobuf.ByteString) wrappedKeyMaterial_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cryptoKeyVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, cryptoKeyVersion_); @@ -510,22 +444,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest)) { return super.equals(obj); } - com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest other = - (com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest) obj; + com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest other = (com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getCryptoKeyVersion().equals(other.getCryptoKeyVersion())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getCryptoKeyVersion() + .equals(other.getCryptoKeyVersion())) return false; if (algorithm_ != other.algorithm_) return false; - if (!getImportJob().equals(other.getImportJob())) return false; + if (!getImportJob() + .equals(other.getImportJob())) return false; if (!getWrappedKeyMaterialCase().equals(other.getWrappedKeyMaterialCase())) return false; switch (wrappedKeyMaterialCase_) { case 5: - if (!getRsaAesWrappedKey().equals(other.getRsaAesWrappedKey())) return false; + if (!getRsaAesWrappedKey() + .equals(other.getRsaAesWrappedKey())) return false; break; case 0: default: @@ -563,104 +500,96 @@ public int hashCode() { } public static com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest 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.kms.v1.ImportCryptoKeyVersionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.ImportCryptoKeyVersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest parseFrom( 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.kms.v1.ImportCryptoKeyVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest parseFrom( - byte[] data, com.google.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.kms.v1.ImportCryptoKeyVersionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.ImportCryptoKeyVersionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.ImportCryptoKeyVersionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.ImportCryptoKeyVersionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.ImportCryptoKeyVersionRequest prototype) { + public static Builder newBuilder(com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for
    * [KeyManagementService.ImportCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.ImportCryptoKeyVersion].
@@ -668,32 +597,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.ImportCryptoKeyVersionRequest}
    */
-  public static final class Builder extends 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.kms.v1.ImportCryptoKeyVersionRequest)
       com.google.cloud.kms.v1.ImportCryptoKeyVersionRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_ImportCryptoKeyVersionRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ImportCryptoKeyVersionRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_ImportCryptoKeyVersionRequest_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ImportCryptoKeyVersionRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest.class,
-              com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest.Builder.class);
+              com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest.class, com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest.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();
@@ -711,9 +641,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_ImportCryptoKeyVersionRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ImportCryptoKeyVersionRequest_descriptor;
     }
 
     @java.lang.Override
@@ -732,8 +662,7 @@ public com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest buildPartial() {
-      com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest result =
-          new com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest(this);
+      com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest result = new com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest(this);
       result.parent_ = parent_;
       result.cryptoKeyVersion_ = cryptoKeyVersion_;
       result.algorithm_ = algorithm_;
@@ -750,39 +679,38 @@ public com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest 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.kms.v1.ImportCryptoKeyVersionRequest) {
-        return mergeFrom((com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest) other);
+        return mergeFrom((com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -790,8 +718,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest other) {
-      if (other == com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -808,15 +735,13 @@ public Builder mergeFrom(com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest o
         onChanged();
       }
       switch (other.getWrappedKeyMaterialCase()) {
-        case RSA_AES_WRAPPED_KEY:
-          {
-            setRsaAesWrappedKey(other.getRsaAesWrappedKey());
-            break;
-          }
-        case WRAPPEDKEYMATERIAL_NOT_SET:
-          {
-            break;
-          }
+        case RSA_AES_WRAPPED_KEY: {
+          setRsaAesWrappedKey(other.getRsaAesWrappedKey());
+          break;
+        }
+        case WRAPPEDKEYMATERIAL_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -844,43 +769,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 10
-            case 16:
-              {
-                algorithm_ = input.readEnum();
+              break;
+            } // case 10
+            case 16: {
+              algorithm_ = input.readEnum();
 
-                break;
-              } // case 16
-            case 34:
-              {
-                importJob_ = input.readStringRequireUtf8();
+              break;
+            } // case 16
+            case 34: {
+              importJob_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 34
-            case 42:
-              {
-                wrappedKeyMaterial_ = input.readBytes();
-                wrappedKeyMaterialCase_ = 5;
-                break;
-              } // case 42
-            case 50:
-              {
-                cryptoKeyVersion_ = input.readStringRequireUtf8();
+              break;
+            } // case 34
+            case 42: {
+              wrappedKeyMaterial_ = input.readBytes();
+              wrappedKeyMaterialCase_ = 5;
+              break;
+            } // case 42
+            case 50: {
+              cryptoKeyVersion_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 50
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              break;
+            } // case 50
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -890,12 +809,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int wrappedKeyMaterialCase_ = 0;
     private java.lang.Object wrappedKeyMaterial_;
-
-    public WrappedKeyMaterialCase getWrappedKeyMaterialCase() {
-      return WrappedKeyMaterialCase.forNumber(wrappedKeyMaterialCase_);
+    public WrappedKeyMaterialCase
+        getWrappedKeyMaterialCase() {
+      return WrappedKeyMaterialCase.forNumber(
+          wrappedKeyMaterialCase_);
     }
 
     public Builder clearWrappedKeyMaterial() {
@@ -905,10 +824,9 @@ public Builder clearWrappedKeyMaterial() {
       return this;
     }
 
+
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to be imported into.
@@ -916,16 +834,14 @@ public Builder clearWrappedKeyMaterial() {
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
      * 
* - * - * string parent = 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; @@ -934,8 +850,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to be imported into.
@@ -943,17 +857,16 @@ public java.lang.String getParent() {
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
      * 
* - * - * string parent = 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 { @@ -961,8 +874,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to be imported into.
@@ -970,25 +881,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
      * 
* - * - * 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 [name][google.cloud.kms.v1.CryptoKey.name] of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to be imported into.
@@ -996,21 +903,16 @@ public Builder setParent(java.lang.String value) {
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
      * 
* - * - * string 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 [name][google.cloud.kms.v1.CryptoKey.name] of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to be imported into.
@@ -1018,19 +920,17 @@ public Builder clearParent() {
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
      * 
* - * - * 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; @@ -1038,8 +938,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object cryptoKeyVersion_ = ""; /** - * - * *
      * Optional. The optional [name][google.cloud.kms.v1.CryptoKeyVersion.name] of
      * an existing [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to
@@ -1062,16 +960,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * key material.
      * 
* - * - * string crypto_key_version = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string crypto_key_version = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The cryptoKeyVersion. */ public java.lang.String getCryptoKeyVersion() { java.lang.Object ref = cryptoKeyVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cryptoKeyVersion_ = s; return s; @@ -1080,8 +976,6 @@ public java.lang.String getCryptoKeyVersion() { } } /** - * - * *
      * Optional. The optional [name][google.cloud.kms.v1.CryptoKeyVersion.name] of
      * an existing [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to
@@ -1104,17 +998,16 @@ public java.lang.String getCryptoKeyVersion() {
      * key material.
      * 
* - * - * string crypto_key_version = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string crypto_key_version = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for cryptoKeyVersion. */ - public com.google.protobuf.ByteString getCryptoKeyVersionBytes() { + public com.google.protobuf.ByteString + getCryptoKeyVersionBytes() { java.lang.Object ref = cryptoKeyVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cryptoKeyVersion_ = b; return b; } else { @@ -1122,8 +1015,6 @@ public com.google.protobuf.ByteString getCryptoKeyVersionBytes() { } } /** - * - * *
      * Optional. The optional [name][google.cloud.kms.v1.CryptoKeyVersion.name] of
      * an existing [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to
@@ -1146,25 +1037,21 @@ public com.google.protobuf.ByteString getCryptoKeyVersionBytes() {
      * key material.
      * 
* - * - * string crypto_key_version = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string crypto_key_version = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The cryptoKeyVersion to set. * @return This builder for chaining. */ - public Builder setCryptoKeyVersion(java.lang.String value) { + public Builder setCryptoKeyVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cryptoKeyVersion_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The optional [name][google.cloud.kms.v1.CryptoKeyVersion.name] of
      * an existing [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to
@@ -1187,21 +1074,16 @@ public Builder setCryptoKeyVersion(java.lang.String value) {
      * key material.
      * 
* - * - * string crypto_key_version = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string crypto_key_version = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearCryptoKeyVersion() { - + cryptoKeyVersion_ = getDefaultInstance().getCryptoKeyVersion(); onChanged(); return this; } /** - * - * *
      * Optional. The optional [name][google.cloud.kms.v1.CryptoKeyVersion.name] of
      * an existing [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to
@@ -1224,19 +1106,17 @@ public Builder clearCryptoKeyVersion() {
      * key material.
      * 
* - * - * string crypto_key_version = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string crypto_key_version = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The bytes for cryptoKeyVersion to set. * @return This builder for chaining. */ - public Builder setCryptoKeyVersionBytes(com.google.protobuf.ByteString value) { + public Builder setCryptoKeyVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cryptoKeyVersion_ = value; onChanged(); return this; @@ -1244,8 +1124,6 @@ public Builder setCryptoKeyVersionBytes(com.google.protobuf.ByteString value) { private int algorithm_ = 0; /** - * - * *
      * Required. The
      * [algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -1254,19 +1132,13 @@ public Builder setCryptoKeyVersionBytes(com.google.protobuf.ByteString value) {
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] this version imports into.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for algorithm. */ - @java.lang.Override - public int getAlgorithmValue() { + @java.lang.Override public int getAlgorithmValue() { return algorithm_; } /** - * - * *
      * Required. The
      * [algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -1275,22 +1147,17 @@ public int getAlgorithmValue() {
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] this version imports into.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for algorithm to set. * @return This builder for chaining. */ public Builder setAlgorithmValue(int value) { - + algorithm_ = value; onChanged(); return this; } /** - * - * *
      * Required. The
      * [algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -1299,24 +1166,16 @@ public Builder setAlgorithmValue(int value) {
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] this version imports into.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The algorithm. */ @java.lang.Override public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm result = - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.valueOf(algorithm_); - return result == null - ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.UNRECOGNIZED - : result; + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm result = com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.valueOf(algorithm_); + return result == null ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.UNRECOGNIZED : result; } /** - * - * *
      * Required. The
      * [algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -1325,26 +1184,20 @@ public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlg
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] this version imports into.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The algorithm to set. * @return This builder for chaining. */ - public Builder setAlgorithm( - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm value) { + public Builder setAlgorithm(com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm value) { if (value == null) { throw new NullPointerException(); } - + algorithm_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. The
      * [algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -1353,14 +1206,11 @@ public Builder setAlgorithm(
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] this version imports into.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearAlgorithm() { - + algorithm_ = 0; onChanged(); return this; @@ -1368,8 +1218,6 @@ public Builder clearAlgorithm() { private java.lang.Object importJob_ = ""; /** - * - * *
      * Required. The [name][google.cloud.kms.v1.ImportJob.name] of the
      * [ImportJob][google.cloud.kms.v1.ImportJob] that was used to wrap this key
@@ -1377,13 +1225,13 @@ public Builder clearAlgorithm() {
      * 
* * string import_job = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The importJob. */ public java.lang.String getImportJob() { java.lang.Object ref = importJob_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importJob_ = s; return s; @@ -1392,8 +1240,6 @@ public java.lang.String getImportJob() { } } /** - * - * *
      * Required. The [name][google.cloud.kms.v1.ImportJob.name] of the
      * [ImportJob][google.cloud.kms.v1.ImportJob] that was used to wrap this key
@@ -1401,14 +1247,15 @@ public java.lang.String getImportJob() {
      * 
* * string import_job = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for importJob. */ - public com.google.protobuf.ByteString getImportJobBytes() { + public com.google.protobuf.ByteString + getImportJobBytes() { java.lang.Object ref = importJob_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); importJob_ = b; return b; } else { @@ -1416,8 +1263,6 @@ public com.google.protobuf.ByteString getImportJobBytes() { } } /** - * - * *
      * Required. The [name][google.cloud.kms.v1.ImportJob.name] of the
      * [ImportJob][google.cloud.kms.v1.ImportJob] that was used to wrap this key
@@ -1425,22 +1270,20 @@ public com.google.protobuf.ByteString getImportJobBytes() {
      * 
* * string import_job = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The importJob to set. * @return This builder for chaining. */ - public Builder setImportJob(java.lang.String value) { + public Builder setImportJob( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + importJob_ = value; onChanged(); return this; } /** - * - * *
      * Required. The [name][google.cloud.kms.v1.ImportJob.name] of the
      * [ImportJob][google.cloud.kms.v1.ImportJob] that was used to wrap this key
@@ -1448,18 +1291,15 @@ public Builder setImportJob(java.lang.String value) {
      * 
* * string import_job = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearImportJob() { - + importJob_ = getDefaultInstance().getImportJob(); onChanged(); return this; } /** - * - * *
      * Required. The [name][google.cloud.kms.v1.ImportJob.name] of the
      * [ImportJob][google.cloud.kms.v1.ImportJob] that was used to wrap this key
@@ -1467,24 +1307,22 @@ public Builder clearImportJob() {
      * 
* * string import_job = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for importJob to set. * @return This builder for chaining. */ - public Builder setImportJobBytes(com.google.protobuf.ByteString value) { + public Builder setImportJobBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + importJob_ = value; onChanged(); return this; } /** - * - * *
      * Wrapped key material produced with
      * [RSA_OAEP_3072_SHA1_AES_256][google.cloud.kms.v1.ImportJob.ImportMethod.RSA_OAEP_3072_SHA1_AES_256]
@@ -1510,15 +1348,12 @@ public Builder setImportJobBytes(com.google.protobuf.ByteString value) {
      * 
* * bytes rsa_aes_wrapped_key = 5; - * * @return Whether the rsaAesWrappedKey field is set. */ public boolean hasRsaAesWrappedKey() { return wrappedKeyMaterialCase_ == 5; } /** - * - * *
      * Wrapped key material produced with
      * [RSA_OAEP_3072_SHA1_AES_256][google.cloud.kms.v1.ImportJob.ImportMethod.RSA_OAEP_3072_SHA1_AES_256]
@@ -1544,7 +1379,6 @@ public boolean hasRsaAesWrappedKey() {
      * 
* * bytes rsa_aes_wrapped_key = 5; - * * @return The rsaAesWrappedKey. */ public com.google.protobuf.ByteString getRsaAesWrappedKey() { @@ -1554,8 +1388,6 @@ public com.google.protobuf.ByteString getRsaAesWrappedKey() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * Wrapped key material produced with
      * [RSA_OAEP_3072_SHA1_AES_256][google.cloud.kms.v1.ImportJob.ImportMethod.RSA_OAEP_3072_SHA1_AES_256]
@@ -1581,22 +1413,19 @@ public com.google.protobuf.ByteString getRsaAesWrappedKey() {
      * 
* * bytes rsa_aes_wrapped_key = 5; - * * @param value The rsaAesWrappedKey to set. * @return This builder for chaining. */ public Builder setRsaAesWrappedKey(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - wrappedKeyMaterialCase_ = 5; + throw new NullPointerException(); + } + wrappedKeyMaterialCase_ = 5; wrappedKeyMaterial_ = value; onChanged(); return this; } /** - * - * *
      * Wrapped key material produced with
      * [RSA_OAEP_3072_SHA1_AES_256][google.cloud.kms.v1.ImportJob.ImportMethod.RSA_OAEP_3072_SHA1_AES_256]
@@ -1622,7 +1451,6 @@ public Builder setRsaAesWrappedKey(com.google.protobuf.ByteString value) {
      * 
* * bytes rsa_aes_wrapped_key = 5; - * * @return This builder for chaining. */ public Builder clearRsaAesWrappedKey() { @@ -1633,9 +1461,9 @@ public Builder clearRsaAesWrappedKey() { } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1645,12 +1473,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.ImportCryptoKeyVersionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.ImportCryptoKeyVersionRequest) private static final com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest(); } @@ -1659,27 +1487,27 @@ public static com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportCryptoKeyVersionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportCryptoKeyVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1694,4 +1522,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportCryptoKeyVersionRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportCryptoKeyVersionRequestOrBuilder.java similarity index 80% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportCryptoKeyVersionRequestOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportCryptoKeyVersionRequestOrBuilder.java index 1fe021564d55..6ea5cf1d2019 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportCryptoKeyVersionRequestOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportCryptoKeyVersionRequestOrBuilder.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/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface ImportCryptoKeyVersionRequestOrBuilder - extends +public interface ImportCryptoKeyVersionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.ImportCryptoKeyVersionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] to be imported into.
@@ -33,16 +15,11 @@ public interface ImportCryptoKeyVersionRequestOrBuilder
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
    * 
* - * - * string parent = 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 [name][google.cloud.kms.v1.CryptoKey.name] of the
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] to be imported into.
@@ -50,17 +27,13 @@ public interface ImportCryptoKeyVersionRequestOrBuilder
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The optional [name][google.cloud.kms.v1.CryptoKeyVersion.name] of
    * an existing [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to
@@ -83,16 +56,11 @@ public interface ImportCryptoKeyVersionRequestOrBuilder
    * key material.
    * 
* - * - * string crypto_key_version = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string crypto_key_version = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The cryptoKeyVersion. */ java.lang.String getCryptoKeyVersion(); /** - * - * *
    * Optional. The optional [name][google.cloud.kms.v1.CryptoKeyVersion.name] of
    * an existing [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to
@@ -115,17 +83,13 @@ public interface ImportCryptoKeyVersionRequestOrBuilder
    * key material.
    * 
* - * - * string crypto_key_version = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string crypto_key_version = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for cryptoKeyVersion. */ - com.google.protobuf.ByteString getCryptoKeyVersionBytes(); + com.google.protobuf.ByteString + getCryptoKeyVersionBytes(); /** - * - * *
    * Required. The
    * [algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -134,16 +98,11 @@ public interface ImportCryptoKeyVersionRequestOrBuilder
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] this version imports into.
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for algorithm. */ int getAlgorithmValue(); /** - * - * *
    * Required. The
    * [algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -152,17 +111,12 @@ public interface ImportCryptoKeyVersionRequestOrBuilder
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] this version imports into.
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The algorithm. */ com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm(); /** - * - * *
    * Required. The [name][google.cloud.kms.v1.ImportJob.name] of the
    * [ImportJob][google.cloud.kms.v1.ImportJob] that was used to wrap this key
@@ -170,13 +124,10 @@ public interface ImportCryptoKeyVersionRequestOrBuilder
    * 
* * string import_job = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The importJob. */ java.lang.String getImportJob(); /** - * - * *
    * Required. The [name][google.cloud.kms.v1.ImportJob.name] of the
    * [ImportJob][google.cloud.kms.v1.ImportJob] that was used to wrap this key
@@ -184,14 +135,12 @@ public interface ImportCryptoKeyVersionRequestOrBuilder
    * 
* * string import_job = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for importJob. */ - com.google.protobuf.ByteString getImportJobBytes(); + com.google.protobuf.ByteString + getImportJobBytes(); /** - * - * *
    * Wrapped key material produced with
    * [RSA_OAEP_3072_SHA1_AES_256][google.cloud.kms.v1.ImportJob.ImportMethod.RSA_OAEP_3072_SHA1_AES_256]
@@ -217,13 +166,10 @@ public interface ImportCryptoKeyVersionRequestOrBuilder
    * 
* * bytes rsa_aes_wrapped_key = 5; - * * @return Whether the rsaAesWrappedKey field is set. */ boolean hasRsaAesWrappedKey(); /** - * - * *
    * Wrapped key material produced with
    * [RSA_OAEP_3072_SHA1_AES_256][google.cloud.kms.v1.ImportJob.ImportMethod.RSA_OAEP_3072_SHA1_AES_256]
@@ -249,11 +195,9 @@ public interface ImportCryptoKeyVersionRequestOrBuilder
    * 
* * bytes rsa_aes_wrapped_key = 5; - * * @return The rsaAesWrappedKey. */ com.google.protobuf.ByteString getRsaAesWrappedKey(); - public com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest.WrappedKeyMaterialCase - getWrappedKeyMaterialCase(); + public com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest.WrappedKeyMaterialCase getWrappedKeyMaterialCase(); } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportJob.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportJob.java similarity index 70% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportJob.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportJob.java index 876646200f5f..ef3821263168 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportJob.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportJob.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/kms/v1/resources.proto package com.google.cloud.kms.v1; /** - * - * *
  * An [ImportJob][google.cloud.kms.v1.ImportJob] can be used to create
  * [CryptoKeys][google.cloud.kms.v1.CryptoKey] and
@@ -55,16 +38,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.ImportJob}
  */
-public final class ImportJob extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ImportJob extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.ImportJob)
     ImportJobOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ImportJob.newBuilder() to construct.
   private ImportJob(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ImportJob() {
     name_ = "";
     importMethod_ = 0;
@@ -74,33 +56,30 @@ private ImportJob() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ImportJob();
   }
 
   @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.kms.v1.KmsResourcesProto
-        .internal_static_google_cloud_kms_v1_ImportJob_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_ImportJob_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsResourcesProto
-        .internal_static_google_cloud_kms_v1_ImportJob_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_ImportJob_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.ImportJob.class,
-            com.google.cloud.kms.v1.ImportJob.Builder.class);
+            com.google.cloud.kms.v1.ImportJob.class, com.google.cloud.kms.v1.ImportJob.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * [ImportMethod][google.cloud.kms.v1.ImportJob.ImportMethod] describes the
    * key wrapping method chosen for this
@@ -109,10 +88,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.kms.v1.ImportJob.ImportMethod}
    */
-  public enum ImportMethod implements com.google.protobuf.ProtocolMessageEnum {
+  public enum ImportMethod
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Not specified.
      * 
@@ -121,8 +99,6 @@ public enum ImportMethod implements com.google.protobuf.ProtocolMessageEnum { */ IMPORT_METHOD_UNSPECIFIED(0), /** - * - * *
      * This ImportMethod represents the CKM_RSA_AES_KEY_WRAP key wrapping
      * scheme defined in the PKCS #11 standard. In summary, this involves
@@ -136,8 +112,6 @@ public enum ImportMethod implements com.google.protobuf.ProtocolMessageEnum {
      */
     RSA_OAEP_3072_SHA1_AES_256(1),
     /**
-     *
-     *
      * 
      * This ImportMethod represents the CKM_RSA_AES_KEY_WRAP key wrapping
      * scheme defined in the PKCS #11 standard. In summary, this involves
@@ -154,8 +128,6 @@ public enum ImportMethod implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Not specified.
      * 
@@ -164,8 +136,6 @@ public enum ImportMethod implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IMPORT_METHOD_UNSPECIFIED_VALUE = 0; /** - * - * *
      * This ImportMethod represents the CKM_RSA_AES_KEY_WRAP key wrapping
      * scheme defined in the PKCS #11 standard. In summary, this involves
@@ -179,8 +149,6 @@ public enum ImportMethod implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int RSA_OAEP_3072_SHA1_AES_256_VALUE = 1;
     /**
-     *
-     *
      * 
      * This ImportMethod represents the CKM_RSA_AES_KEY_WRAP key wrapping
      * scheme defined in the PKCS #11 standard. In summary, this involves
@@ -194,6 +162,7 @@ public enum ImportMethod implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int RSA_OAEP_4096_SHA1_AES_256_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -218,49 +187,49 @@ public static ImportMethod valueOf(int value) {
      */
     public static ImportMethod forNumber(int value) {
       switch (value) {
-        case 0:
-          return IMPORT_METHOD_UNSPECIFIED;
-        case 1:
-          return RSA_OAEP_3072_SHA1_AES_256;
-        case 2:
-          return RSA_OAEP_4096_SHA1_AES_256;
-        default:
-          return null;
+        case 0: return IMPORT_METHOD_UNSPECIFIED;
+        case 1: return RSA_OAEP_3072_SHA1_AES_256;
+        case 2: return RSA_OAEP_4096_SHA1_AES_256;
+        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<
+        ImportMethod> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public ImportMethod findValueByNumber(int number) {
+              return ImportMethod.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public ImportMethod findValueByNumber(int number) {
-            return ImportMethod.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.kms.v1.ImportJob.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final ImportMethod[] VALUES = values();
 
-    public static ImportMethod valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static ImportMethod 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;
@@ -278,8 +247,6 @@ private ImportMethod(int value) {
   }
 
   /**
-   *
-   *
    * 
    * The state of the [ImportJob][google.cloud.kms.v1.ImportJob], indicating if
    * it can be used.
@@ -287,10 +254,9 @@ private ImportMethod(int value) {
    *
    * Protobuf enum {@code google.cloud.kms.v1.ImportJob.ImportJobState}
    */
-  public enum ImportJobState implements com.google.protobuf.ProtocolMessageEnum {
+  public enum ImportJobState
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Not specified.
      * 
@@ -299,8 +265,6 @@ public enum ImportJobState implements com.google.protobuf.ProtocolMessageEnum { */ IMPORT_JOB_STATE_UNSPECIFIED(0), /** - * - * *
      * The wrapping key for this job is still being generated. It may not be
      * used. Cloud KMS will automatically mark this job as
@@ -312,8 +276,6 @@ public enum ImportJobState implements com.google.protobuf.ProtocolMessageEnum {
      */
     PENDING_GENERATION(1),
     /**
-     *
-     *
      * 
      * This job may be used in
      * [CreateCryptoKey][google.cloud.kms.v1.KeyManagementService.CreateCryptoKey]
@@ -326,8 +288,6 @@ public enum ImportJobState implements com.google.protobuf.ProtocolMessageEnum {
      */
     ACTIVE(2),
     /**
-     *
-     *
      * 
      * This job can no longer be used and may not leave this state once entered.
      * 
@@ -339,8 +299,6 @@ public enum ImportJobState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Not specified.
      * 
@@ -349,8 +307,6 @@ public enum ImportJobState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IMPORT_JOB_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The wrapping key for this job is still being generated. It may not be
      * used. Cloud KMS will automatically mark this job as
@@ -362,8 +318,6 @@ public enum ImportJobState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int PENDING_GENERATION_VALUE = 1;
     /**
-     *
-     *
      * 
      * This job may be used in
      * [CreateCryptoKey][google.cloud.kms.v1.KeyManagementService.CreateCryptoKey]
@@ -376,8 +330,6 @@ public enum ImportJobState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ACTIVE_VALUE = 2;
     /**
-     *
-     *
      * 
      * This job can no longer be used and may not leave this state once entered.
      * 
@@ -386,6 +338,7 @@ public enum ImportJobState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EXPIRED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -410,51 +363,50 @@ public static ImportJobState valueOf(int value) { */ public static ImportJobState forNumber(int value) { switch (value) { - case 0: - return IMPORT_JOB_STATE_UNSPECIFIED; - case 1: - return PENDING_GENERATION; - case 2: - return ACTIVE; - case 3: - return EXPIRED; - default: - return null; + case 0: return IMPORT_JOB_STATE_UNSPECIFIED; + case 1: return PENDING_GENERATION; + case 2: return ACTIVE; + case 3: return EXPIRED; + 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< + ImportJobState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ImportJobState findValueByNumber(int number) { + return ImportJobState.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ImportJobState findValueByNumber(int number) { - return ImportJobState.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.kms.v1.ImportJob.getDescriptor().getEnumTypes().get(1); } private static final ImportJobState[] VALUES = values(); - public static ImportJobState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ImportJobState 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; @@ -471,14 +423,11 @@ private ImportJobState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.kms.v1.ImportJob.ImportJobState) } - public interface WrappingPublicKeyOrBuilder - extends + public interface WrappingPublicKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.ImportJob.WrappingPublicKey) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The public key, encoded in PEM format. For more information, see the [RFC
      * 7468](https://tools.ietf.org/html/rfc7468) sections for [General
@@ -488,13 +437,10 @@ public interface WrappingPublicKeyOrBuilder
      * 
* * string pem = 1; - * * @return The pem. */ java.lang.String getPem(); /** - * - * *
      * The public key, encoded in PEM format. For more information, see the [RFC
      * 7468](https://tools.ietf.org/html/rfc7468) sections for [General
@@ -504,14 +450,12 @@ public interface WrappingPublicKeyOrBuilder
      * 
* * string pem = 1; - * * @return The bytes for pem. */ - com.google.protobuf.ByteString getPemBytes(); + com.google.protobuf.ByteString + getPemBytes(); } /** - * - * *
    * The public key component of the wrapping key. For details of the type of
    * key this public key corresponds to, see the
@@ -520,51 +464,47 @@ public interface WrappingPublicKeyOrBuilder
    *
    * Protobuf type {@code google.cloud.kms.v1.ImportJob.WrappingPublicKey}
    */
-  public static final class WrappingPublicKey extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class WrappingPublicKey extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.ImportJob.WrappingPublicKey)
       WrappingPublicKeyOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use WrappingPublicKey.newBuilder() to construct.
     private WrappingPublicKey(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private WrappingPublicKey() {
       pem_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new WrappingPublicKey();
     }
 
     @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.kms.v1.KmsResourcesProto
-          .internal_static_google_cloud_kms_v1_ImportJob_WrappingPublicKey_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_ImportJob_WrappingPublicKey_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsResourcesProto
-          .internal_static_google_cloud_kms_v1_ImportJob_WrappingPublicKey_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_ImportJob_WrappingPublicKey_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.ImportJob.WrappingPublicKey.class,
-              com.google.cloud.kms.v1.ImportJob.WrappingPublicKey.Builder.class);
+              com.google.cloud.kms.v1.ImportJob.WrappingPublicKey.class, com.google.cloud.kms.v1.ImportJob.WrappingPublicKey.Builder.class);
     }
 
     public static final int PEM_FIELD_NUMBER = 1;
     private volatile java.lang.Object pem_;
     /**
-     *
-     *
      * 
      * The public key, encoded in PEM format. For more information, see the [RFC
      * 7468](https://tools.ietf.org/html/rfc7468) sections for [General
@@ -574,7 +514,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string pem = 1; - * * @return The pem. */ @java.lang.Override @@ -583,15 +522,14 @@ public java.lang.String getPem() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pem_ = s; return s; } } /** - * - * *
      * The public key, encoded in PEM format. For more information, see the [RFC
      * 7468](https://tools.ietf.org/html/rfc7468) sections for [General
@@ -601,15 +539,16 @@ public java.lang.String getPem() {
      * 
* * string pem = 1; - * * @return The bytes for pem. */ @java.lang.Override - public com.google.protobuf.ByteString getPemBytes() { + public com.google.protobuf.ByteString + getPemBytes() { java.lang.Object ref = pem_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pem_ = b; return b; } else { @@ -618,7 +557,6 @@ public com.google.protobuf.ByteString getPemBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -630,7 +568,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pem_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pem_); } @@ -654,15 +593,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.kms.v1.ImportJob.WrappingPublicKey)) { return super.equals(obj); } - com.google.cloud.kms.v1.ImportJob.WrappingPublicKey other = - (com.google.cloud.kms.v1.ImportJob.WrappingPublicKey) obj; + com.google.cloud.kms.v1.ImportJob.WrappingPublicKey other = (com.google.cloud.kms.v1.ImportJob.WrappingPublicKey) obj; - if (!getPem().equals(other.getPem())) return false; + if (!getPem() + .equals(other.getPem())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -682,94 +621,87 @@ public int hashCode() { } public static com.google.cloud.kms.v1.ImportJob.WrappingPublicKey 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.kms.v1.ImportJob.WrappingPublicKey parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.ImportJob.WrappingPublicKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ImportJob.WrappingPublicKey parseFrom( 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.kms.v1.ImportJob.WrappingPublicKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ImportJob.WrappingPublicKey parseFrom( - byte[] data, com.google.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.kms.v1.ImportJob.WrappingPublicKey parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.ImportJob.WrappingPublicKey parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.ImportJob.WrappingPublicKey parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.ImportJob.WrappingPublicKey parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.ImportJob.WrappingPublicKey parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.ImportJob.WrappingPublicKey parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.ImportJob.WrappingPublicKey parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.ImportJob.WrappingPublicKey parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.ImportJob.WrappingPublicKey prototype) { + public static Builder newBuilder(com.google.cloud.kms.v1.ImportJob.WrappingPublicKey prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -779,8 +711,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The public key component of the wrapping key. For details of the type of
      * key this public key corresponds to, see the
@@ -789,33 +719,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.kms.v1.ImportJob.WrappingPublicKey}
      */
-    public static final class Builder
-        extends 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.kms.v1.ImportJob.WrappingPublicKey)
         com.google.cloud.kms.v1.ImportJob.WrappingPublicKeyOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.kms.v1.KmsResourcesProto
-            .internal_static_google_cloud_kms_v1_ImportJob_WrappingPublicKey_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_ImportJob_WrappingPublicKey_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.kms.v1.KmsResourcesProto
-            .internal_static_google_cloud_kms_v1_ImportJob_WrappingPublicKey_fieldAccessorTable
+        return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_ImportJob_WrappingPublicKey_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.kms.v1.ImportJob.WrappingPublicKey.class,
-                com.google.cloud.kms.v1.ImportJob.WrappingPublicKey.Builder.class);
+                com.google.cloud.kms.v1.ImportJob.WrappingPublicKey.class, com.google.cloud.kms.v1.ImportJob.WrappingPublicKey.Builder.class);
       }
 
       // Construct using com.google.cloud.kms.v1.ImportJob.WrappingPublicKey.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();
@@ -825,9 +755,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.kms.v1.KmsResourcesProto
-            .internal_static_google_cloud_kms_v1_ImportJob_WrappingPublicKey_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_ImportJob_WrappingPublicKey_descriptor;
       }
 
       @java.lang.Override
@@ -846,8 +776,7 @@ public com.google.cloud.kms.v1.ImportJob.WrappingPublicKey build() {
 
       @java.lang.Override
       public com.google.cloud.kms.v1.ImportJob.WrappingPublicKey buildPartial() {
-        com.google.cloud.kms.v1.ImportJob.WrappingPublicKey result =
-            new com.google.cloud.kms.v1.ImportJob.WrappingPublicKey(this);
+        com.google.cloud.kms.v1.ImportJob.WrappingPublicKey result = new com.google.cloud.kms.v1.ImportJob.WrappingPublicKey(this);
         result.pem_ = pem_;
         onBuilt();
         return result;
@@ -857,41 +786,38 @@ public com.google.cloud.kms.v1.ImportJob.WrappingPublicKey buildPartial() {
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.kms.v1.ImportJob.WrappingPublicKey) {
-          return mergeFrom((com.google.cloud.kms.v1.ImportJob.WrappingPublicKey) other);
+          return mergeFrom((com.google.cloud.kms.v1.ImportJob.WrappingPublicKey)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -899,8 +825,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.kms.v1.ImportJob.WrappingPublicKey other) {
-        if (other == com.google.cloud.kms.v1.ImportJob.WrappingPublicKey.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.kms.v1.ImportJob.WrappingPublicKey.getDefaultInstance()) return this;
         if (!other.getPem().isEmpty()) {
           pem_ = other.pem_;
           onChanged();
@@ -931,19 +856,17 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  pem_ = input.readStringRequireUtf8();
-
-                  break;
-                } // case 10
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                pem_ = 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) {
@@ -956,8 +879,6 @@ public Builder mergeFrom(
 
       private java.lang.Object pem_ = "";
       /**
-       *
-       *
        * 
        * The public key, encoded in PEM format. For more information, see the [RFC
        * 7468](https://tools.ietf.org/html/rfc7468) sections for [General
@@ -967,13 +888,13 @@ public Builder mergeFrom(
        * 
* * string pem = 1; - * * @return The pem. */ public java.lang.String getPem() { java.lang.Object ref = pem_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pem_ = s; return s; @@ -982,8 +903,6 @@ public java.lang.String getPem() { } } /** - * - * *
        * The public key, encoded in PEM format. For more information, see the [RFC
        * 7468](https://tools.ietf.org/html/rfc7468) sections for [General
@@ -993,14 +912,15 @@ public java.lang.String getPem() {
        * 
* * string pem = 1; - * * @return The bytes for pem. */ - public com.google.protobuf.ByteString getPemBytes() { + public com.google.protobuf.ByteString + getPemBytes() { java.lang.Object ref = pem_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pem_ = b; return b; } else { @@ -1008,8 +928,6 @@ public com.google.protobuf.ByteString getPemBytes() { } } /** - * - * *
        * The public key, encoded in PEM format. For more information, see the [RFC
        * 7468](https://tools.ietf.org/html/rfc7468) sections for [General
@@ -1019,22 +937,20 @@ public com.google.protobuf.ByteString getPemBytes() {
        * 
* * string pem = 1; - * * @param value The pem to set. * @return This builder for chaining. */ - public Builder setPem(java.lang.String value) { + public Builder setPem( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pem_ = value; onChanged(); return this; } /** - * - * *
        * The public key, encoded in PEM format. For more information, see the [RFC
        * 7468](https://tools.ietf.org/html/rfc7468) sections for [General
@@ -1044,18 +960,15 @@ public Builder setPem(java.lang.String value) {
        * 
* * string pem = 1; - * * @return This builder for chaining. */ public Builder clearPem() { - + pem_ = getDefaultInstance().getPem(); onChanged(); return this; } /** - * - * *
        * The public key, encoded in PEM format. For more information, see the [RFC
        * 7468](https://tools.ietf.org/html/rfc7468) sections for [General
@@ -1065,21 +978,20 @@ public Builder clearPem() {
        * 
* * string pem = 1; - * * @param value The bytes for pem to set. * @return This builder for chaining. */ - public Builder setPemBytes(com.google.protobuf.ByteString value) { + public Builder setPemBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pem_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1092,12 +1004,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.ImportJob.WrappingPublicKey) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.ImportJob.WrappingPublicKey) private static final com.google.cloud.kms.v1.ImportJob.WrappingPublicKey DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.ImportJob.WrappingPublicKey(); } @@ -1106,28 +1018,27 @@ public static com.google.cloud.kms.v1.ImportJob.WrappingPublicKey getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WrappingPublicKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WrappingPublicKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1142,13 +1053,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.ImportJob.WrappingPublicKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name for this
    * [ImportJob][google.cloud.kms.v1.ImportJob] in the format
@@ -1156,7 +1066,6 @@ public com.google.cloud.kms.v1.ImportJob.WrappingPublicKey getDefaultInstanceFor
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -1165,15 +1074,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; } } /** - * - * *
    * Output only. The resource name for this
    * [ImportJob][google.cloud.kms.v1.ImportJob] in the format
@@ -1181,15 +1089,16 @@ public java.lang.String getName() {
    * 
* * 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 { @@ -1200,50 +1109,35 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int IMPORT_METHOD_FIELD_NUMBER = 2; private int importMethod_; /** - * - * *
    * Required. Immutable. The wrapping method to be used for incoming key
    * material.
    * 
* - * - * .google.cloud.kms.v1.ImportJob.ImportMethod import_method = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.kms.v1.ImportJob.ImportMethod import_method = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for importMethod. */ - @java.lang.Override - public int getImportMethodValue() { + @java.lang.Override public int getImportMethodValue() { return importMethod_; } /** - * - * *
    * Required. Immutable. The wrapping method to be used for incoming key
    * material.
    * 
* - * - * .google.cloud.kms.v1.ImportJob.ImportMethod import_method = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.kms.v1.ImportJob.ImportMethod import_method = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The importMethod. */ - @java.lang.Override - public com.google.cloud.kms.v1.ImportJob.ImportMethod getImportMethod() { + @java.lang.Override public com.google.cloud.kms.v1.ImportJob.ImportMethod getImportMethod() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.ImportJob.ImportMethod result = - com.google.cloud.kms.v1.ImportJob.ImportMethod.valueOf(importMethod_); + com.google.cloud.kms.v1.ImportJob.ImportMethod result = com.google.cloud.kms.v1.ImportJob.ImportMethod.valueOf(importMethod_); return result == null ? com.google.cloud.kms.v1.ImportJob.ImportMethod.UNRECOGNIZED : result; } public static final int PROTECTION_LEVEL_FIELD_NUMBER = 9; private int protectionLevel_; /** - * - * *
    * Required. Immutable. The protection level of the
    * [ImportJob][google.cloud.kms.v1.ImportJob]. This must match the
@@ -1253,19 +1147,13 @@ public com.google.cloud.kms.v1.ImportJob.ImportMethod getImportMethod() {
    * into.
    * 
* - * - * .google.cloud.kms.v1.ProtectionLevel protection_level = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for protectionLevel. */ - @java.lang.Override - public int getProtectionLevelValue() { + @java.lang.Override public int getProtectionLevelValue() { return protectionLevel_; } /** - * - * *
    * Required. Immutable. The protection level of the
    * [ImportJob][google.cloud.kms.v1.ImportJob]. This must match the
@@ -1275,33 +1163,24 @@ public int getProtectionLevelValue() {
    * into.
    * 
* - * - * .google.cloud.kms.v1.ProtectionLevel protection_level = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The protectionLevel. */ - @java.lang.Override - public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { + @java.lang.Override public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.ProtectionLevel result = - com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); + com.google.cloud.kms.v1.ProtectionLevel result = com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); return result == null ? com.google.cloud.kms.v1.ProtectionLevel.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time at which this
    * [ImportJob][google.cloud.kms.v1.ImportJob] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -1309,16 +1188,12 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time at which this
    * [ImportJob][google.cloud.kms.v1.ImportJob] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -1326,15 +1201,12 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time at which this
    * [ImportJob][google.cloud.kms.v1.ImportJob] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1344,17 +1216,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int GENERATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp generateTime_; /** - * - * *
    * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]'s key
    * material was generated.
    * 
* - * - * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the generateTime field is set. */ @java.lang.Override @@ -1362,36 +1229,25 @@ public boolean hasGenerateTime() { return generateTime_ != null; } /** - * - * *
    * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]'s key
    * material was generated.
    * 
* - * - * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The generateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getGenerateTime() { - return generateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : generateTime_; + return generateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : generateTime_; } /** - * - * *
    * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]'s key
    * material was generated.
    * 
* - * - * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getGenerateTimeOrBuilder() { @@ -1401,17 +1257,13 @@ public com.google.protobuf.TimestampOrBuilder getGenerateTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp expireTime_; /** - * - * *
    * Output only. The time at which this
    * [ImportJob][google.cloud.kms.v1.ImportJob] is scheduled for expiration and
    * can no longer be used to import key material.
    * 
* - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ @java.lang.Override @@ -1419,17 +1271,13 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * *
    * Output only. The time at which this
    * [ImportJob][google.cloud.kms.v1.ImportJob] is scheduled for expiration and
    * can no longer be used to import key material.
    * 
* - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ @java.lang.Override @@ -1437,16 +1285,13 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * *
    * Output only. The time at which this
    * [ImportJob][google.cloud.kms.v1.ImportJob] is scheduled for expiration and
    * can no longer be used to import key material.
    * 
* - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -1456,18 +1301,13 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { public static final int EXPIRE_EVENT_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp expireEventTime_; /** - * - * *
    * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]
    * expired. Only present if [state][google.cloud.kms.v1.ImportJob.state] is
    * [EXPIRED][google.cloud.kms.v1.ImportJob.ImportJobState.EXPIRED].
    * 
* - * - * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireEventTime field is set. */ @java.lang.Override @@ -1475,38 +1315,27 @@ public boolean hasExpireEventTime() { return expireEventTime_ != null; } /** - * - * *
    * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]
    * expired. Only present if [state][google.cloud.kms.v1.ImportJob.state] is
    * [EXPIRED][google.cloud.kms.v1.ImportJob.ImportJobState.EXPIRED].
    * 
* - * - * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireEventTime. */ @java.lang.Override public com.google.protobuf.Timestamp getExpireEventTime() { - return expireEventTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireEventTime_; + return expireEventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireEventTime_; } /** - * - * *
    * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]
    * expired. Only present if [state][google.cloud.kms.v1.ImportJob.state] is
    * [EXPIRED][google.cloud.kms.v1.ImportJob.ImportJobState.EXPIRED].
    * 
* - * - * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireEventTimeOrBuilder() { @@ -1516,60 +1345,42 @@ public com.google.protobuf.TimestampOrBuilder getExpireEventTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 6; private int state_; /** - * - * *
    * Output only. The current state of the
    * [ImportJob][google.cloud.kms.v1.ImportJob], indicating if it can be used.
    * 
* - * - * .google.cloud.kms.v1.ImportJob.ImportJobState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.ImportJob.ImportJobState 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 current state of the
    * [ImportJob][google.cloud.kms.v1.ImportJob], indicating if it can be used.
    * 
* - * - * .google.cloud.kms.v1.ImportJob.ImportJobState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.ImportJob.ImportJobState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.kms.v1.ImportJob.ImportJobState getState() { + @java.lang.Override public com.google.cloud.kms.v1.ImportJob.ImportJobState getState() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.ImportJob.ImportJobState result = - com.google.cloud.kms.v1.ImportJob.ImportJobState.valueOf(state_); + com.google.cloud.kms.v1.ImportJob.ImportJobState result = com.google.cloud.kms.v1.ImportJob.ImportJobState.valueOf(state_); return result == null ? com.google.cloud.kms.v1.ImportJob.ImportJobState.UNRECOGNIZED : result; } public static final int PUBLIC_KEY_FIELD_NUMBER = 7; private com.google.cloud.kms.v1.ImportJob.WrappingPublicKey publicKey_; /** - * - * *
    * Output only. The public key with which to wrap key material prior to
    * import. Only returned if [state][google.cloud.kms.v1.ImportJob.state] is
    * [ACTIVE][google.cloud.kms.v1.ImportJob.ImportJobState.ACTIVE].
    * 
* - * - * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the publicKey field is set. */ @java.lang.Override @@ -1577,38 +1388,27 @@ public boolean hasPublicKey() { return publicKey_ != null; } /** - * - * *
    * Output only. The public key with which to wrap key material prior to
    * import. Only returned if [state][google.cloud.kms.v1.ImportJob.state] is
    * [ACTIVE][google.cloud.kms.v1.ImportJob.ImportJobState.ACTIVE].
    * 
* - * - * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The publicKey. */ @java.lang.Override public com.google.cloud.kms.v1.ImportJob.WrappingPublicKey getPublicKey() { - return publicKey_ == null - ? com.google.cloud.kms.v1.ImportJob.WrappingPublicKey.getDefaultInstance() - : publicKey_; + return publicKey_ == null ? com.google.cloud.kms.v1.ImportJob.WrappingPublicKey.getDefaultInstance() : publicKey_; } /** - * - * *
    * Output only. The public key with which to wrap key material prior to
    * import. Only returned if [state][google.cloud.kms.v1.ImportJob.state] is
    * [ACTIVE][google.cloud.kms.v1.ImportJob.ImportJobState.ACTIVE].
    * 
* - * - * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.kms.v1.ImportJob.WrappingPublicKeyOrBuilder getPublicKeyOrBuilder() { @@ -1618,8 +1418,6 @@ public com.google.cloud.kms.v1.ImportJob.WrappingPublicKeyOrBuilder getPublicKey public static final int ATTESTATION_FIELD_NUMBER = 8; private com.google.cloud.kms.v1.KeyOperationAttestation attestation_; /** - * - * *
    * Output only. Statement that was generated and signed by the key creator
    * (for example, an HSM) at key creation time. Use this statement to verify
@@ -1629,10 +1427,7 @@ public com.google.cloud.kms.v1.ImportJob.WrappingPublicKeyOrBuilder getPublicKey
    * protection level of [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
    * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the attestation field is set. */ @java.lang.Override @@ -1640,8 +1435,6 @@ public boolean hasAttestation() { return attestation_ != null; } /** - * - * *
    * Output only. Statement that was generated and signed by the key creator
    * (for example, an HSM) at key creation time. Use this statement to verify
@@ -1651,21 +1444,14 @@ public boolean hasAttestation() {
    * protection level of [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
    * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The attestation. */ @java.lang.Override public com.google.cloud.kms.v1.KeyOperationAttestation getAttestation() { - return attestation_ == null - ? com.google.cloud.kms.v1.KeyOperationAttestation.getDefaultInstance() - : attestation_; + return attestation_ == null ? com.google.cloud.kms.v1.KeyOperationAttestation.getDefaultInstance() : attestation_; } /** - * - * *
    * Output only. Statement that was generated and signed by the key creator
    * (for example, an HSM) at key creation time. Use this statement to verify
@@ -1675,9 +1461,7 @@ public com.google.cloud.kms.v1.KeyOperationAttestation getAttestation() {
    * protection level of [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
    * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder getAttestationOrBuilder() { @@ -1685,7 +1469,6 @@ public com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder getAttestationOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1697,12 +1480,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (importMethod_ - != com.google.cloud.kms.v1.ImportJob.ImportMethod.IMPORT_METHOD_UNSPECIFIED.getNumber()) { + if (importMethod_ != com.google.cloud.kms.v1.ImportJob.ImportMethod.IMPORT_METHOD_UNSPECIFIED.getNumber()) { output.writeEnum(2, importMethod_); } if (createTime_ != null) { @@ -1714,9 +1497,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (expireTime_ != null) { output.writeMessage(5, getExpireTime()); } - if (state_ - != com.google.cloud.kms.v1.ImportJob.ImportJobState.IMPORT_JOB_STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.kms.v1.ImportJob.ImportJobState.IMPORT_JOB_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(6, state_); } if (publicKey_ != null) { @@ -1725,8 +1506,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (attestation_ != null) { output.writeMessage(8, getAttestation()); } - if (protectionLevel_ - != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { + if (protectionLevel_ != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(9, protectionLevel_); } if (expireEventTime_ != null) { @@ -1744,36 +1524,41 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (importMethod_ - != com.google.cloud.kms.v1.ImportJob.ImportMethod.IMPORT_METHOD_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, importMethod_); + if (importMethod_ != com.google.cloud.kms.v1.ImportJob.ImportMethod.IMPORT_METHOD_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, importMethod_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } if (generateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGenerateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getGenerateTime()); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getExpireTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getExpireTime()); } - if (state_ - != com.google.cloud.kms.v1.ImportJob.ImportJobState.IMPORT_JOB_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + if (state_ != com.google.cloud.kms.v1.ImportJob.ImportJobState.IMPORT_JOB_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, state_); } if (publicKey_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getPublicKey()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getPublicKey()); } if (attestation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getAttestation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getAttestation()); } - if (protectionLevel_ - != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, protectionLevel_); + if (protectionLevel_ != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, protectionLevel_); } if (expireEventTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getExpireEventTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getExpireEventTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1783,40 +1568,47 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.kms.v1.ImportJob)) { return super.equals(obj); } com.google.cloud.kms.v1.ImportJob other = (com.google.cloud.kms.v1.ImportJob) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (importMethod_ != other.importMethod_) return false; if (protectionLevel_ != other.protectionLevel_) 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 (hasGenerateTime() != other.hasGenerateTime()) return false; if (hasGenerateTime()) { - if (!getGenerateTime().equals(other.getGenerateTime())) return false; + if (!getGenerateTime() + .equals(other.getGenerateTime())) return false; } if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime().equals(other.getExpireTime())) return false; + if (!getExpireTime() + .equals(other.getExpireTime())) return false; } if (hasExpireEventTime() != other.hasExpireEventTime()) return false; if (hasExpireEventTime()) { - if (!getExpireEventTime().equals(other.getExpireEventTime())) return false; + if (!getExpireEventTime() + .equals(other.getExpireEventTime())) return false; } if (state_ != other.state_) return false; if (hasPublicKey() != other.hasPublicKey()) return false; if (hasPublicKey()) { - if (!getPublicKey().equals(other.getPublicKey())) return false; + if (!getPublicKey() + .equals(other.getPublicKey())) return false; } if (hasAttestation() != other.hasAttestation()) return false; if (hasAttestation()) { - if (!getAttestation().equals(other.getAttestation())) return false; + if (!getAttestation() + .equals(other.getAttestation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1866,103 +1658,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.ImportJob parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.ImportJob parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ImportJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.ImportJob parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.kms.v1.ImportJob parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ImportJob parseFrom( 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.kms.v1.ImportJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ImportJob parseFrom( - byte[] data, com.google.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.kms.v1.ImportJob parseFrom(java.io.InputStream input) 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.kms.v1.ImportJob parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.ImportJob 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.kms.v1.ImportJob parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.ImportJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.ImportJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.ImportJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * An [ImportJob][google.cloud.kms.v1.ImportJob] can be used to create
    * [CryptoKeys][google.cloud.kms.v1.CryptoKey] and
@@ -1997,32 +1783,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.ImportJob}
    */
-  public static final class Builder extends 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.kms.v1.ImportJob)
       com.google.cloud.kms.v1.ImportJobOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsResourcesProto
-          .internal_static_google_cloud_kms_v1_ImportJob_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_ImportJob_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsResourcesProto
-          .internal_static_google_cloud_kms_v1_ImportJob_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_ImportJob_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.ImportJob.class,
-              com.google.cloud.kms.v1.ImportJob.Builder.class);
+              com.google.cloud.kms.v1.ImportJob.class, com.google.cloud.kms.v1.ImportJob.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.ImportJob.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();
@@ -2074,9 +1861,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsResourcesProto
-          .internal_static_google_cloud_kms_v1_ImportJob_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_ImportJob_descriptor;
     }
 
     @java.lang.Override
@@ -2138,39 +1925,38 @@ public com.google.cloud.kms.v1.ImportJob 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.kms.v1.ImportJob) {
-        return mergeFrom((com.google.cloud.kms.v1.ImportJob) other);
+        return mergeFrom((com.google.cloud.kms.v1.ImportJob)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2236,73 +2022,74 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
+            case 10: {
+              name_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 10
-            case 16:
-              {
-                importMethod_ = input.readEnum();
+              break;
+            } // case 10
+            case 16: {
+              importMethod_ = input.readEnum();
 
-                break;
-              } // case 16
-            case 26:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 16
+            case 26: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getGenerateTimeFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getGenerateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 34
-            case 42:
-              {
-                input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 34
+            case 42: {
+              input.readMessage(
+                  getExpireTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 42
-            case 48:
-              {
-                state_ = input.readEnum();
+              break;
+            } // case 42
+            case 48: {
+              state_ = input.readEnum();
 
-                break;
-              } // case 48
-            case 58:
-              {
-                input.readMessage(getPublicKeyFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 48
+            case 58: {
+              input.readMessage(
+                  getPublicKeyFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(getAttestationFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getAttestationFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 66
-            case 72:
-              {
-                protectionLevel_ = input.readEnum();
+              break;
+            } // case 66
+            case 72: {
+              protectionLevel_ = input.readEnum();
 
-                break;
-              } // case 72
-            case 82:
-              {
-                input.readMessage(getExpireEventTimeFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 72
+            case 82: {
+              input.readMessage(
+                  getExpireEventTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 82
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              break;
+            } // case 82
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2315,8 +2102,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource name for this
      * [ImportJob][google.cloud.kms.v1.ImportJob] in the format
@@ -2324,13 +2109,13 @@ public Builder mergeFrom(
      * 
* * 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; @@ -2339,8 +2124,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name for this
      * [ImportJob][google.cloud.kms.v1.ImportJob] in the format
@@ -2348,14 +2131,15 @@ public java.lang.String getName() {
      * 
* * 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 { @@ -2363,8 +2147,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name for this
      * [ImportJob][google.cloud.kms.v1.ImportJob] in the format
@@ -2372,22 +2154,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * 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 for this
      * [ImportJob][google.cloud.kms.v1.ImportJob] in the format
@@ -2395,18 +2175,15 @@ public Builder setName(java.lang.String value) {
      * 
* * 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 for this
      * [ImportJob][google.cloud.kms.v1.ImportJob] in the format
@@ -2414,16 +2191,16 @@ public Builder clearName() {
      * 
* * 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; @@ -2431,77 +2208,55 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int importMethod_ = 0; /** - * - * *
      * Required. Immutable. The wrapping method to be used for incoming key
      * material.
      * 
* - * - * .google.cloud.kms.v1.ImportJob.ImportMethod import_method = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.kms.v1.ImportJob.ImportMethod import_method = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for importMethod. */ - @java.lang.Override - public int getImportMethodValue() { + @java.lang.Override public int getImportMethodValue() { return importMethod_; } /** - * - * *
      * Required. Immutable. The wrapping method to be used for incoming key
      * material.
      * 
* - * - * .google.cloud.kms.v1.ImportJob.ImportMethod import_method = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.kms.v1.ImportJob.ImportMethod import_method = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @param value The enum numeric value on the wire for importMethod to set. * @return This builder for chaining. */ public Builder setImportMethodValue(int value) { - + importMethod_ = value; onChanged(); return this; } /** - * - * *
      * Required. Immutable. The wrapping method to be used for incoming key
      * material.
      * 
* - * - * .google.cloud.kms.v1.ImportJob.ImportMethod import_method = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.kms.v1.ImportJob.ImportMethod import_method = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The importMethod. */ @java.lang.Override public com.google.cloud.kms.v1.ImportJob.ImportMethod getImportMethod() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.ImportJob.ImportMethod result = - com.google.cloud.kms.v1.ImportJob.ImportMethod.valueOf(importMethod_); + com.google.cloud.kms.v1.ImportJob.ImportMethod result = com.google.cloud.kms.v1.ImportJob.ImportMethod.valueOf(importMethod_); return result == null ? com.google.cloud.kms.v1.ImportJob.ImportMethod.UNRECOGNIZED : result; } /** - * - * *
      * Required. Immutable. The wrapping method to be used for incoming key
      * material.
      * 
* - * - * .google.cloud.kms.v1.ImportJob.ImportMethod import_method = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.kms.v1.ImportJob.ImportMethod import_method = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @param value The importMethod to set. * @return This builder for chaining. */ @@ -2509,27 +2264,22 @@ public Builder setImportMethod(com.google.cloud.kms.v1.ImportJob.ImportMethod va if (value == null) { throw new NullPointerException(); } - + importMethod_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. Immutable. The wrapping method to be used for incoming key
      * material.
      * 
* - * - * .google.cloud.kms.v1.ImportJob.ImportMethod import_method = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.kms.v1.ImportJob.ImportMethod import_method = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearImportMethod() { - + importMethod_ = 0; onChanged(); return this; @@ -2537,8 +2287,6 @@ public Builder clearImportMethod() { private int protectionLevel_ = 0; /** - * - * *
      * Required. Immutable. The protection level of the
      * [ImportJob][google.cloud.kms.v1.ImportJob]. This must match the
@@ -2548,19 +2296,13 @@ public Builder clearImportMethod() {
      * into.
      * 
* - * - * .google.cloud.kms.v1.ProtectionLevel protection_level = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for protectionLevel. */ - @java.lang.Override - public int getProtectionLevelValue() { + @java.lang.Override public int getProtectionLevelValue() { return protectionLevel_; } /** - * - * *
      * Required. Immutable. The protection level of the
      * [ImportJob][google.cloud.kms.v1.ImportJob]. This must match the
@@ -2570,22 +2312,17 @@ public int getProtectionLevelValue() {
      * into.
      * 
* - * - * .google.cloud.kms.v1.ProtectionLevel protection_level = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @param value The enum numeric value on the wire for protectionLevel to set. * @return This builder for chaining. */ public Builder setProtectionLevelValue(int value) { - + protectionLevel_ = value; onChanged(); return this; } /** - * - * *
      * Required. Immutable. The protection level of the
      * [ImportJob][google.cloud.kms.v1.ImportJob]. This must match the
@@ -2595,22 +2332,16 @@ public Builder setProtectionLevelValue(int value) {
      * into.
      * 
* - * - * .google.cloud.kms.v1.ProtectionLevel protection_level = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The protectionLevel. */ @java.lang.Override public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.ProtectionLevel result = - com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); + com.google.cloud.kms.v1.ProtectionLevel result = com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); return result == null ? com.google.cloud.kms.v1.ProtectionLevel.UNRECOGNIZED : result; } /** - * - * *
      * Required. Immutable. The protection level of the
      * [ImportJob][google.cloud.kms.v1.ImportJob]. This must match the
@@ -2620,10 +2351,7 @@ public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() {
      * into.
      * 
* - * - * .google.cloud.kms.v1.ProtectionLevel protection_level = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @param value The protectionLevel to set. * @return This builder for chaining. */ @@ -2631,14 +2359,12 @@ public Builder setProtectionLevel(com.google.cloud.kms.v1.ProtectionLevel value) if (value == null) { throw new NullPointerException(); } - + protectionLevel_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. Immutable. The protection level of the
      * [ImportJob][google.cloud.kms.v1.ImportJob]. This must match the
@@ -2648,14 +2374,11 @@ public Builder setProtectionLevel(com.google.cloud.kms.v1.ProtectionLevel value)
      * into.
      * 
* - * - * .google.cloud.kms.v1.ProtectionLevel protection_level = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearProtectionLevel() { - + protectionLevel_ = 0; onChanged(); return this; @@ -2663,61 +2386,42 @@ public Builder clearProtectionLevel() { 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 at which this
      * [ImportJob][google.cloud.kms.v1.ImportJob] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time at which this
      * [ImportJob][google.cloud.kms.v1.ImportJob] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this
      * [ImportJob][google.cloud.kms.v1.ImportJob] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2733,18 +2437,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this
      * [ImportJob][google.cloud.kms.v1.ImportJob] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2755,22 +2456,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this
      * [ImportJob][google.cloud.kms.v1.ImportJob] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2782,16 +2479,12 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this
      * [ImportJob][google.cloud.kms.v1.ImportJob] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2805,67 +2498,51 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time at which this
      * [ImportJob][google.cloud.kms.v1.ImportJob] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this
      * [ImportJob][google.cloud.kms.v1.ImportJob] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time at which this
      * [ImportJob][google.cloud.kms.v1.ImportJob] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2873,61 +2550,42 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp generateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - generateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> generateTimeBuilder_; /** - * - * *
      * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]'s key
      * material was generated.
      * 
* - * - * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the generateTime field is set. */ public boolean hasGenerateTime() { return generateTimeBuilder_ != null || generateTime_ != null; } /** - * - * *
      * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]'s key
      * material was generated.
      * 
* - * - * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The generateTime. */ public com.google.protobuf.Timestamp getGenerateTime() { if (generateTimeBuilder_ == null) { - return generateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : generateTime_; + return generateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : generateTime_; } else { return generateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]'s key
      * material was generated.
      * 
* - * - * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setGenerateTime(com.google.protobuf.Timestamp value) { if (generateTimeBuilder_ == null) { @@ -2943,18 +2601,15 @@ public Builder setGenerateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]'s key
      * material was generated.
      * 
* - * - * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setGenerateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setGenerateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (generateTimeBuilder_ == null) { generateTime_ = builderForValue.build(); onChanged(); @@ -2965,24 +2620,18 @@ public Builder setGenerateTime(com.google.protobuf.Timestamp.Builder builderForV return this; } /** - * - * *
      * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]'s key
      * material was generated.
      * 
* - * - * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeGenerateTime(com.google.protobuf.Timestamp value) { if (generateTimeBuilder_ == null) { if (generateTime_ != null) { generateTime_ = - com.google.protobuf.Timestamp.newBuilder(generateTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(generateTime_).mergeFrom(value).buildPartial(); } else { generateTime_ = value; } @@ -2994,16 +2643,12 @@ public Builder mergeGenerateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]'s key
      * material was generated.
      * 
* - * - * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearGenerateTime() { if (generateTimeBuilder_ == null) { @@ -3017,67 +2662,51 @@ public Builder clearGenerateTime() { return this; } /** - * - * *
      * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]'s key
      * material was generated.
      * 
* - * - * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getGenerateTimeBuilder() { - + onChanged(); return getGenerateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]'s key
      * material was generated.
      * 
* - * - * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getGenerateTimeOrBuilder() { if (generateTimeBuilder_ != null) { return generateTimeBuilder_.getMessageOrBuilder(); } else { - return generateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : generateTime_; + return generateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : generateTime_; } } /** - * - * *
      * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]'s key
      * material was generated.
      * 
* - * - * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp generate_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> getGenerateTimeFieldBuilder() { if (generateTimeBuilder_ == null) { - generateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getGenerateTime(), getParentForChildren(), isClean()); + generateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getGenerateTime(), + getParentForChildren(), + isClean()); generateTime_ = null; } return generateTimeBuilder_; @@ -3085,64 +2714,45 @@ public com.google.protobuf.TimestampOrBuilder getGenerateTimeOrBuilder() { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * *
      * Output only. The time at which this
      * [ImportJob][google.cloud.kms.v1.ImportJob] is scheduled for expiration and
      * can no longer be used to import key material.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return expireTimeBuilder_ != null || expireTime_ != null; } /** - * - * *
      * Output only. The time at which this
      * [ImportJob][google.cloud.kms.v1.ImportJob] is scheduled for expiration and
      * can no longer be used to import key material.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this
      * [ImportJob][google.cloud.kms.v1.ImportJob] is scheduled for expiration and
      * can no longer be used to import key material.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -3158,19 +2768,16 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this
      * [ImportJob][google.cloud.kms.v1.ImportJob] is scheduled for expiration and
      * can no longer be used to import key material.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); onChanged(); @@ -3181,23 +2788,19 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this
      * [ImportJob][google.cloud.kms.v1.ImportJob] is scheduled for expiration and
      * can no longer be used to import key material.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { if (expireTime_ != null) { expireTime_ = - com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); } else { expireTime_ = value; } @@ -3209,17 +2812,13 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this
      * [ImportJob][google.cloud.kms.v1.ImportJob] is scheduled for expiration and
      * can no longer be used to import key material.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearExpireTime() { if (expireTimeBuilder_ == null) { @@ -3233,70 +2832,54 @@ public Builder clearExpireTime() { return this; } /** - * - * *
      * Output only. The time at which this
      * [ImportJob][google.cloud.kms.v1.ImportJob] is scheduled for expiration and
      * can no longer be used to import key material.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { - + onChanged(); return getExpireTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this
      * [ImportJob][google.cloud.kms.v1.ImportJob] is scheduled for expiration and
      * can no longer be used to import key material.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } } /** - * - * *
      * Output only. The time at which this
      * [ImportJob][google.cloud.kms.v1.ImportJob] is scheduled for expiration and
      * can no longer be used to import key material.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), getParentForChildren(), isClean()); + expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), + getParentForChildren(), + isClean()); expireTime_ = null; } return expireTimeBuilder_; @@ -3304,64 +2887,45 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { private com.google.protobuf.Timestamp expireEventTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireEventTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireEventTimeBuilder_; /** - * - * *
      * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]
      * expired. Only present if [state][google.cloud.kms.v1.ImportJob.state] is
      * [EXPIRED][google.cloud.kms.v1.ImportJob.ImportJobState.EXPIRED].
      * 
* - * - * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireEventTime field is set. */ public boolean hasExpireEventTime() { return expireEventTimeBuilder_ != null || expireEventTime_ != null; } /** - * - * *
      * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]
      * expired. Only present if [state][google.cloud.kms.v1.ImportJob.state] is
      * [EXPIRED][google.cloud.kms.v1.ImportJob.ImportJobState.EXPIRED].
      * 
* - * - * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireEventTime. */ public com.google.protobuf.Timestamp getExpireEventTime() { if (expireEventTimeBuilder_ == null) { - return expireEventTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireEventTime_; + return expireEventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireEventTime_; } else { return expireEventTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]
      * expired. Only present if [state][google.cloud.kms.v1.ImportJob.state] is
      * [EXPIRED][google.cloud.kms.v1.ImportJob.ImportJobState.EXPIRED].
      * 
* - * - * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setExpireEventTime(com.google.protobuf.Timestamp value) { if (expireEventTimeBuilder_ == null) { @@ -3377,19 +2941,16 @@ public Builder setExpireEventTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]
      * expired. Only present if [state][google.cloud.kms.v1.ImportJob.state] is
      * [EXPIRED][google.cloud.kms.v1.ImportJob.ImportJobState.EXPIRED].
      * 
* - * - * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setExpireEventTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireEventTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (expireEventTimeBuilder_ == null) { expireEventTime_ = builderForValue.build(); onChanged(); @@ -3400,25 +2961,19 @@ public Builder setExpireEventTime(com.google.protobuf.Timestamp.Builder builderF return this; } /** - * - * *
      * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]
      * expired. Only present if [state][google.cloud.kms.v1.ImportJob.state] is
      * [EXPIRED][google.cloud.kms.v1.ImportJob.ImportJobState.EXPIRED].
      * 
* - * - * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeExpireEventTime(com.google.protobuf.Timestamp value) { if (expireEventTimeBuilder_ == null) { if (expireEventTime_ != null) { expireEventTime_ = - com.google.protobuf.Timestamp.newBuilder(expireEventTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(expireEventTime_).mergeFrom(value).buildPartial(); } else { expireEventTime_ = value; } @@ -3430,17 +2985,13 @@ public Builder mergeExpireEventTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]
      * expired. Only present if [state][google.cloud.kms.v1.ImportJob.state] is
      * [EXPIRED][google.cloud.kms.v1.ImportJob.ImportJobState.EXPIRED].
      * 
* - * - * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearExpireEventTime() { if (expireEventTimeBuilder_ == null) { @@ -3454,70 +3005,54 @@ public Builder clearExpireEventTime() { return this; } /** - * - * *
      * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]
      * expired. Only present if [state][google.cloud.kms.v1.ImportJob.state] is
      * [EXPIRED][google.cloud.kms.v1.ImportJob.ImportJobState.EXPIRED].
      * 
* - * - * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getExpireEventTimeBuilder() { - + onChanged(); return getExpireEventTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]
      * expired. Only present if [state][google.cloud.kms.v1.ImportJob.state] is
      * [EXPIRED][google.cloud.kms.v1.ImportJob.ImportJobState.EXPIRED].
      * 
* - * - * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getExpireEventTimeOrBuilder() { if (expireEventTimeBuilder_ != null) { return expireEventTimeBuilder_.getMessageOrBuilder(); } else { - return expireEventTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireEventTime_; + return expireEventTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expireEventTime_; } } /** - * - * *
      * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]
      * expired. Only present if [state][google.cloud.kms.v1.ImportJob.state] is
      * [EXPIRED][google.cloud.kms.v1.ImportJob.ImportJobState.EXPIRED].
      * 
* - * - * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getExpireEventTimeFieldBuilder() { if (expireEventTimeBuilder_ == null) { - expireEventTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getExpireEventTime(), getParentForChildren(), isClean()); + expireEventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpireEventTime(), + getParentForChildren(), + isClean()); expireEventTime_ = null; } return expireEventTimeBuilder_; @@ -3525,79 +3060,55 @@ public com.google.protobuf.TimestampOrBuilder getExpireEventTimeOrBuilder() { private int state_ = 0; /** - * - * *
      * Output only. The current state of the
      * [ImportJob][google.cloud.kms.v1.ImportJob], indicating if it can be used.
      * 
* - * - * .google.cloud.kms.v1.ImportJob.ImportJobState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.ImportJob.ImportJobState 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 current state of the
      * [ImportJob][google.cloud.kms.v1.ImportJob], indicating if it can be used.
      * 
* - * - * .google.cloud.kms.v1.ImportJob.ImportJobState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.ImportJob.ImportJobState 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 current state of the
      * [ImportJob][google.cloud.kms.v1.ImportJob], indicating if it can be used.
      * 
* - * - * .google.cloud.kms.v1.ImportJob.ImportJobState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.ImportJob.ImportJobState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.kms.v1.ImportJob.ImportJobState getState() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.ImportJob.ImportJobState result = - com.google.cloud.kms.v1.ImportJob.ImportJobState.valueOf(state_); - return result == null - ? com.google.cloud.kms.v1.ImportJob.ImportJobState.UNRECOGNIZED - : result; + com.google.cloud.kms.v1.ImportJob.ImportJobState result = com.google.cloud.kms.v1.ImportJob.ImportJobState.valueOf(state_); + return result == null ? com.google.cloud.kms.v1.ImportJob.ImportJobState.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current state of the
      * [ImportJob][google.cloud.kms.v1.ImportJob], indicating if it can be used.
      * 
* - * - * .google.cloud.kms.v1.ImportJob.ImportJobState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.ImportJob.ImportJobState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -3605,27 +3116,22 @@ public Builder setState(com.google.cloud.kms.v1.ImportJob.ImportJobState value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The current state of the
      * [ImportJob][google.cloud.kms.v1.ImportJob], indicating if it can be used.
      * 
* - * - * .google.cloud.kms.v1.ImportJob.ImportJobState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.ImportJob.ImportJobState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -3633,64 +3139,45 @@ public Builder clearState() { private com.google.cloud.kms.v1.ImportJob.WrappingPublicKey publicKey_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.ImportJob.WrappingPublicKey, - com.google.cloud.kms.v1.ImportJob.WrappingPublicKey.Builder, - com.google.cloud.kms.v1.ImportJob.WrappingPublicKeyOrBuilder> - publicKeyBuilder_; + com.google.cloud.kms.v1.ImportJob.WrappingPublicKey, com.google.cloud.kms.v1.ImportJob.WrappingPublicKey.Builder, com.google.cloud.kms.v1.ImportJob.WrappingPublicKeyOrBuilder> publicKeyBuilder_; /** - * - * *
      * Output only. The public key with which to wrap key material prior to
      * import. Only returned if [state][google.cloud.kms.v1.ImportJob.state] is
      * [ACTIVE][google.cloud.kms.v1.ImportJob.ImportJobState.ACTIVE].
      * 
* - * - * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the publicKey field is set. */ public boolean hasPublicKey() { return publicKeyBuilder_ != null || publicKey_ != null; } /** - * - * *
      * Output only. The public key with which to wrap key material prior to
      * import. Only returned if [state][google.cloud.kms.v1.ImportJob.state] is
      * [ACTIVE][google.cloud.kms.v1.ImportJob.ImportJobState.ACTIVE].
      * 
* - * - * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The publicKey. */ public com.google.cloud.kms.v1.ImportJob.WrappingPublicKey getPublicKey() { if (publicKeyBuilder_ == null) { - return publicKey_ == null - ? com.google.cloud.kms.v1.ImportJob.WrappingPublicKey.getDefaultInstance() - : publicKey_; + return publicKey_ == null ? com.google.cloud.kms.v1.ImportJob.WrappingPublicKey.getDefaultInstance() : publicKey_; } else { return publicKeyBuilder_.getMessage(); } } /** - * - * *
      * Output only. The public key with which to wrap key material prior to
      * import. Only returned if [state][google.cloud.kms.v1.ImportJob.state] is
      * [ACTIVE][google.cloud.kms.v1.ImportJob.ImportJobState.ACTIVE].
      * 
* - * - * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setPublicKey(com.google.cloud.kms.v1.ImportJob.WrappingPublicKey value) { if (publicKeyBuilder_ == null) { @@ -3706,17 +3193,13 @@ public Builder setPublicKey(com.google.cloud.kms.v1.ImportJob.WrappingPublicKey return this; } /** - * - * *
      * Output only. The public key with which to wrap key material prior to
      * import. Only returned if [state][google.cloud.kms.v1.ImportJob.state] is
      * [ACTIVE][google.cloud.kms.v1.ImportJob.ImportJobState.ACTIVE].
      * 
* - * - * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setPublicKey( com.google.cloud.kms.v1.ImportJob.WrappingPublicKey.Builder builderForValue) { @@ -3730,25 +3213,19 @@ public Builder setPublicKey( return this; } /** - * - * *
      * Output only. The public key with which to wrap key material prior to
      * import. Only returned if [state][google.cloud.kms.v1.ImportJob.state] is
      * [ACTIVE][google.cloud.kms.v1.ImportJob.ImportJobState.ACTIVE].
      * 
* - * - * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergePublicKey(com.google.cloud.kms.v1.ImportJob.WrappingPublicKey value) { if (publicKeyBuilder_ == null) { if (publicKey_ != null) { publicKey_ = - com.google.cloud.kms.v1.ImportJob.WrappingPublicKey.newBuilder(publicKey_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.kms.v1.ImportJob.WrappingPublicKey.newBuilder(publicKey_).mergeFrom(value).buildPartial(); } else { publicKey_ = value; } @@ -3760,17 +3237,13 @@ public Builder mergePublicKey(com.google.cloud.kms.v1.ImportJob.WrappingPublicKe return this; } /** - * - * *
      * Output only. The public key with which to wrap key material prior to
      * import. Only returned if [state][google.cloud.kms.v1.ImportJob.state] is
      * [ACTIVE][google.cloud.kms.v1.ImportJob.ImportJobState.ACTIVE].
      * 
* - * - * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearPublicKey() { if (publicKeyBuilder_ == null) { @@ -3784,70 +3257,54 @@ public Builder clearPublicKey() { return this; } /** - * - * *
      * Output only. The public key with which to wrap key material prior to
      * import. Only returned if [state][google.cloud.kms.v1.ImportJob.state] is
      * [ACTIVE][google.cloud.kms.v1.ImportJob.ImportJobState.ACTIVE].
      * 
* - * - * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.kms.v1.ImportJob.WrappingPublicKey.Builder getPublicKeyBuilder() { - + onChanged(); return getPublicKeyFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The public key with which to wrap key material prior to
      * import. Only returned if [state][google.cloud.kms.v1.ImportJob.state] is
      * [ACTIVE][google.cloud.kms.v1.ImportJob.ImportJobState.ACTIVE].
      * 
* - * - * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.kms.v1.ImportJob.WrappingPublicKeyOrBuilder getPublicKeyOrBuilder() { if (publicKeyBuilder_ != null) { return publicKeyBuilder_.getMessageOrBuilder(); } else { - return publicKey_ == null - ? com.google.cloud.kms.v1.ImportJob.WrappingPublicKey.getDefaultInstance() - : publicKey_; + return publicKey_ == null ? + com.google.cloud.kms.v1.ImportJob.WrappingPublicKey.getDefaultInstance() : publicKey_; } } /** - * - * *
      * Output only. The public key with which to wrap key material prior to
      * import. Only returned if [state][google.cloud.kms.v1.ImportJob.state] is
      * [ACTIVE][google.cloud.kms.v1.ImportJob.ImportJobState.ACTIVE].
      * 
* - * - * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.ImportJob.WrappingPublicKey, - com.google.cloud.kms.v1.ImportJob.WrappingPublicKey.Builder, - com.google.cloud.kms.v1.ImportJob.WrappingPublicKeyOrBuilder> + com.google.cloud.kms.v1.ImportJob.WrappingPublicKey, com.google.cloud.kms.v1.ImportJob.WrappingPublicKey.Builder, com.google.cloud.kms.v1.ImportJob.WrappingPublicKeyOrBuilder> getPublicKeyFieldBuilder() { if (publicKeyBuilder_ == null) { - publicKeyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.ImportJob.WrappingPublicKey, - com.google.cloud.kms.v1.ImportJob.WrappingPublicKey.Builder, - com.google.cloud.kms.v1.ImportJob.WrappingPublicKeyOrBuilder>( - getPublicKey(), getParentForChildren(), isClean()); + publicKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.kms.v1.ImportJob.WrappingPublicKey, com.google.cloud.kms.v1.ImportJob.WrappingPublicKey.Builder, com.google.cloud.kms.v1.ImportJob.WrappingPublicKeyOrBuilder>( + getPublicKey(), + getParentForChildren(), + isClean()); publicKey_ = null; } return publicKeyBuilder_; @@ -3855,13 +3312,8 @@ public com.google.cloud.kms.v1.ImportJob.WrappingPublicKeyOrBuilder getPublicKey private com.google.cloud.kms.v1.KeyOperationAttestation attestation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.KeyOperationAttestation, - com.google.cloud.kms.v1.KeyOperationAttestation.Builder, - com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder> - attestationBuilder_; + com.google.cloud.kms.v1.KeyOperationAttestation, com.google.cloud.kms.v1.KeyOperationAttestation.Builder, com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder> attestationBuilder_; /** - * - * *
      * Output only. Statement that was generated and signed by the key creator
      * (for example, an HSM) at key creation time. Use this statement to verify
@@ -3871,18 +3323,13 @@ public com.google.cloud.kms.v1.ImportJob.WrappingPublicKeyOrBuilder getPublicKey
      * protection level of [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the attestation field is set. */ public boolean hasAttestation() { return attestationBuilder_ != null || attestation_ != null; } /** - * - * *
      * Output only. Statement that was generated and signed by the key creator
      * (for example, an HSM) at key creation time. Use this statement to verify
@@ -3892,24 +3339,17 @@ public boolean hasAttestation() {
      * protection level of [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The attestation. */ public com.google.cloud.kms.v1.KeyOperationAttestation getAttestation() { if (attestationBuilder_ == null) { - return attestation_ == null - ? com.google.cloud.kms.v1.KeyOperationAttestation.getDefaultInstance() - : attestation_; + return attestation_ == null ? com.google.cloud.kms.v1.KeyOperationAttestation.getDefaultInstance() : attestation_; } else { return attestationBuilder_.getMessage(); } } /** - * - * *
      * Output only. Statement that was generated and signed by the key creator
      * (for example, an HSM) at key creation time. Use this statement to verify
@@ -3919,9 +3359,7 @@ public com.google.cloud.kms.v1.KeyOperationAttestation getAttestation() {
      * protection level of [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAttestation(com.google.cloud.kms.v1.KeyOperationAttestation value) { if (attestationBuilder_ == null) { @@ -3937,8 +3375,6 @@ public Builder setAttestation(com.google.cloud.kms.v1.KeyOperationAttestation va return this; } /** - * - * *
      * Output only. Statement that was generated and signed by the key creator
      * (for example, an HSM) at key creation time. Use this statement to verify
@@ -3948,9 +3384,7 @@ public Builder setAttestation(com.google.cloud.kms.v1.KeyOperationAttestation va
      * protection level of [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAttestation( com.google.cloud.kms.v1.KeyOperationAttestation.Builder builderForValue) { @@ -3964,8 +3398,6 @@ public Builder setAttestation( return this; } /** - * - * *
      * Output only. Statement that was generated and signed by the key creator
      * (for example, an HSM) at key creation time. Use this statement to verify
@@ -3975,17 +3407,13 @@ public Builder setAttestation(
      * protection level of [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeAttestation(com.google.cloud.kms.v1.KeyOperationAttestation value) { if (attestationBuilder_ == null) { if (attestation_ != null) { attestation_ = - com.google.cloud.kms.v1.KeyOperationAttestation.newBuilder(attestation_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.kms.v1.KeyOperationAttestation.newBuilder(attestation_).mergeFrom(value).buildPartial(); } else { attestation_ = value; } @@ -3997,8 +3425,6 @@ public Builder mergeAttestation(com.google.cloud.kms.v1.KeyOperationAttestation return this; } /** - * - * *
      * Output only. Statement that was generated and signed by the key creator
      * (for example, an HSM) at key creation time. Use this statement to verify
@@ -4008,9 +3434,7 @@ public Builder mergeAttestation(com.google.cloud.kms.v1.KeyOperationAttestation
      * protection level of [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearAttestation() { if (attestationBuilder_ == null) { @@ -4024,8 +3448,6 @@ public Builder clearAttestation() { return this; } /** - * - * *
      * Output only. Statement that was generated and signed by the key creator
      * (for example, an HSM) at key creation time. Use this statement to verify
@@ -4035,18 +3457,14 @@ public Builder clearAttestation() {
      * protection level of [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.kms.v1.KeyOperationAttestation.Builder getAttestationBuilder() { - + onChanged(); return getAttestationFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Statement that was generated and signed by the key creator
      * (for example, an HSM) at key creation time. Use this statement to verify
@@ -4056,22 +3474,17 @@ public com.google.cloud.kms.v1.KeyOperationAttestation.Builder getAttestationBui
      * protection level of [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder getAttestationOrBuilder() { if (attestationBuilder_ != null) { return attestationBuilder_.getMessageOrBuilder(); } else { - return attestation_ == null - ? com.google.cloud.kms.v1.KeyOperationAttestation.getDefaultInstance() - : attestation_; + return attestation_ == null ? + com.google.cloud.kms.v1.KeyOperationAttestation.getDefaultInstance() : attestation_; } } /** - * - * *
      * Output only. Statement that was generated and signed by the key creator
      * (for example, an HSM) at key creation time. Use this statement to verify
@@ -4081,29 +3494,24 @@ public com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder getAttestationOr
      * protection level of [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.KeyOperationAttestation, - com.google.cloud.kms.v1.KeyOperationAttestation.Builder, - com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder> + com.google.cloud.kms.v1.KeyOperationAttestation, com.google.cloud.kms.v1.KeyOperationAttestation.Builder, com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder> getAttestationFieldBuilder() { if (attestationBuilder_ == null) { - attestationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.KeyOperationAttestation, - com.google.cloud.kms.v1.KeyOperationAttestation.Builder, - com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder>( - getAttestation(), getParentForChildren(), isClean()); + attestationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.kms.v1.KeyOperationAttestation, com.google.cloud.kms.v1.KeyOperationAttestation.Builder, com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder>( + getAttestation(), + getParentForChildren(), + isClean()); attestation_ = null; } return attestationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4113,12 +3521,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.ImportJob) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.ImportJob) private static final com.google.cloud.kms.v1.ImportJob DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.ImportJob(); } @@ -4127,27 +3535,27 @@ public static com.google.cloud.kms.v1.ImportJob getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4162,4 +3570,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.ImportJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportJobName.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportJobName.java similarity index 100% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportJobName.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportJobName.java diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportJobOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportJobOrBuilder.java similarity index 70% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportJobOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportJobOrBuilder.java index 94290b9c55a4..25e6ed2227cb 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportJobOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportJobOrBuilder.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/kms/v1/resources.proto package com.google.cloud.kms.v1; -public interface ImportJobOrBuilder - extends +public interface ImportJobOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.ImportJob) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name for this
    * [ImportJob][google.cloud.kms.v1.ImportJob] in the format
@@ -33,13 +15,10 @@ public interface ImportJobOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name for this
    * [ImportJob][google.cloud.kms.v1.ImportJob] in the format
@@ -47,45 +26,33 @@ public interface ImportJobOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. Immutable. The wrapping method to be used for incoming key
    * material.
    * 
* - * - * .google.cloud.kms.v1.ImportJob.ImportMethod import_method = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.kms.v1.ImportJob.ImportMethod import_method = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for importMethod. */ int getImportMethodValue(); /** - * - * *
    * Required. Immutable. The wrapping method to be used for incoming key
    * material.
    * 
* - * - * .google.cloud.kms.v1.ImportJob.ImportMethod import_method = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.kms.v1.ImportJob.ImportMethod import_method = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The importMethod. */ com.google.cloud.kms.v1.ImportJob.ImportMethod getImportMethod(); /** - * - * *
    * Required. Immutable. The protection level of the
    * [ImportJob][google.cloud.kms.v1.ImportJob]. This must match the
@@ -95,16 +62,11 @@ public interface ImportJobOrBuilder
    * into.
    * 
* - * - * .google.cloud.kms.v1.ProtectionLevel protection_level = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for protectionLevel. */ int getProtectionLevelValue(); /** - * - * *
    * Required. Immutable. The protection level of the
    * [ImportJob][google.cloud.kms.v1.ImportJob]. This must match the
@@ -114,271 +76,192 @@ public interface ImportJobOrBuilder
    * into.
    * 
* - * - * .google.cloud.kms.v1.ProtectionLevel protection_level = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The protectionLevel. */ com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel(); /** - * - * *
    * Output only. The time at which this
    * [ImportJob][google.cloud.kms.v1.ImportJob] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time at which this
    * [ImportJob][google.cloud.kms.v1.ImportJob] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time at which this
    * [ImportJob][google.cloud.kms.v1.ImportJob] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]'s key
    * material was generated.
    * 
* - * - * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the generateTime field is set. */ boolean hasGenerateTime(); /** - * - * *
    * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]'s key
    * material was generated.
    * 
* - * - * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The generateTime. */ com.google.protobuf.Timestamp getGenerateTime(); /** - * - * *
    * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]'s key
    * material was generated.
    * 
* - * - * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp generate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getGenerateTimeOrBuilder(); /** - * - * *
    * Output only. The time at which this
    * [ImportJob][google.cloud.kms.v1.ImportJob] is scheduled for expiration and
    * can no longer be used to import key material.
    * 
* - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * Output only. The time at which this
    * [ImportJob][google.cloud.kms.v1.ImportJob] is scheduled for expiration and
    * can no longer be used to import key material.
    * 
* - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * Output only. The time at which this
    * [ImportJob][google.cloud.kms.v1.ImportJob] is scheduled for expiration and
    * can no longer be used to import key material.
    * 
* - * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** - * - * *
    * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]
    * expired. Only present if [state][google.cloud.kms.v1.ImportJob.state] is
    * [EXPIRED][google.cloud.kms.v1.ImportJob.ImportJobState.EXPIRED].
    * 
* - * - * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireEventTime field is set. */ boolean hasExpireEventTime(); /** - * - * *
    * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]
    * expired. Only present if [state][google.cloud.kms.v1.ImportJob.state] is
    * [EXPIRED][google.cloud.kms.v1.ImportJob.ImportJobState.EXPIRED].
    * 
* - * - * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireEventTime. */ com.google.protobuf.Timestamp getExpireEventTime(); /** - * - * *
    * Output only. The time this [ImportJob][google.cloud.kms.v1.ImportJob]
    * expired. Only present if [state][google.cloud.kms.v1.ImportJob.state] is
    * [EXPIRED][google.cloud.kms.v1.ImportJob.ImportJobState.EXPIRED].
    * 
* - * - * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_event_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getExpireEventTimeOrBuilder(); /** - * - * *
    * Output only. The current state of the
    * [ImportJob][google.cloud.kms.v1.ImportJob], indicating if it can be used.
    * 
* - * - * .google.cloud.kms.v1.ImportJob.ImportJobState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.ImportJob.ImportJobState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The current state of the
    * [ImportJob][google.cloud.kms.v1.ImportJob], indicating if it can be used.
    * 
* - * - * .google.cloud.kms.v1.ImportJob.ImportJobState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.ImportJob.ImportJobState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.kms.v1.ImportJob.ImportJobState getState(); /** - * - * *
    * Output only. The public key with which to wrap key material prior to
    * import. Only returned if [state][google.cloud.kms.v1.ImportJob.state] is
    * [ACTIVE][google.cloud.kms.v1.ImportJob.ImportJobState.ACTIVE].
    * 
* - * - * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the publicKey field is set. */ boolean hasPublicKey(); /** - * - * *
    * Output only. The public key with which to wrap key material prior to
    * import. Only returned if [state][google.cloud.kms.v1.ImportJob.state] is
    * [ACTIVE][google.cloud.kms.v1.ImportJob.ImportJobState.ACTIVE].
    * 
* - * - * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The publicKey. */ com.google.cloud.kms.v1.ImportJob.WrappingPublicKey getPublicKey(); /** - * - * *
    * Output only. The public key with which to wrap key material prior to
    * import. Only returned if [state][google.cloud.kms.v1.ImportJob.state] is
    * [ACTIVE][google.cloud.kms.v1.ImportJob.ImportJobState.ACTIVE].
    * 
* - * - * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.ImportJob.WrappingPublicKey public_key = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.kms.v1.ImportJob.WrappingPublicKeyOrBuilder getPublicKeyOrBuilder(); /** - * - * *
    * Output only. Statement that was generated and signed by the key creator
    * (for example, an HSM) at key creation time. Use this statement to verify
@@ -388,16 +271,11 @@ public interface ImportJobOrBuilder
    * protection level of [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
    * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the attestation field is set. */ boolean hasAttestation(); /** - * - * *
    * Output only. Statement that was generated and signed by the key creator
    * (for example, an HSM) at key creation time. Use this statement to verify
@@ -407,16 +285,11 @@ public interface ImportJobOrBuilder
    * protection level of [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
    * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The attestation. */ com.google.cloud.kms.v1.KeyOperationAttestation getAttestation(); /** - * - * *
    * Output only. Statement that was generated and signed by the key creator
    * (for example, an HSM) at key creation time. Use this statement to verify
@@ -426,9 +299,7 @@ public interface ImportJobOrBuilder
    * protection level of [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
    * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder getAttestationOrBuilder(); } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyOperationAttestation.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyOperationAttestation.java similarity index 69% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyOperationAttestation.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyOperationAttestation.java index 80f3482c157a..f5b051ec6ac1 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyOperationAttestation.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyOperationAttestation.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/kms/v1/resources.proto package com.google.cloud.kms.v1; /** - * - * *
  * Contains an HSM-generated attestation about a key operation. For more
  * information, see [Verifying attestations]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.KeyOperationAttestation}
  */
-public final class KeyOperationAttestation extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class KeyOperationAttestation extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.KeyOperationAttestation)
     KeyOperationAttestationOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use KeyOperationAttestation.newBuilder() to construct.
   private KeyOperationAttestation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private KeyOperationAttestation() {
     format_ = 0;
     content_ = com.google.protobuf.ByteString.EMPTY;
@@ -46,43 +28,39 @@ private KeyOperationAttestation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new KeyOperationAttestation();
   }
 
   @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.kms.v1.KmsResourcesProto
-        .internal_static_google_cloud_kms_v1_KeyOperationAttestation_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_KeyOperationAttestation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsResourcesProto
-        .internal_static_google_cloud_kms_v1_KeyOperationAttestation_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_KeyOperationAttestation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.KeyOperationAttestation.class,
-            com.google.cloud.kms.v1.KeyOperationAttestation.Builder.class);
+            com.google.cloud.kms.v1.KeyOperationAttestation.class, com.google.cloud.kms.v1.KeyOperationAttestation.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Attestation formats provided by the HSM.
    * 
* * Protobuf enum {@code google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat} */ - public enum AttestationFormat implements com.google.protobuf.ProtocolMessageEnum { + public enum AttestationFormat + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not specified.
      * 
@@ -91,8 +69,6 @@ public enum AttestationFormat implements com.google.protobuf.ProtocolMessageEnum */ ATTESTATION_FORMAT_UNSPECIFIED(0), /** - * - * *
      * Cavium HSM attestation compressed with gzip. Note that this format is
      * defined by Cavium and subject to change at any time.
@@ -102,8 +78,6 @@ public enum AttestationFormat implements com.google.protobuf.ProtocolMessageEnum
      */
     CAVIUM_V1_COMPRESSED(3),
     /**
-     *
-     *
      * 
      * Cavium HSM attestation V2 compressed with gzip. This is a new format
      * introduced in Cavium's version 3.2-08.
@@ -116,8 +90,6 @@ public enum AttestationFormat implements com.google.protobuf.ProtocolMessageEnum
     ;
 
     /**
-     *
-     *
      * 
      * Not specified.
      * 
@@ -126,8 +98,6 @@ public enum AttestationFormat implements com.google.protobuf.ProtocolMessageEnum */ public static final int ATTESTATION_FORMAT_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Cavium HSM attestation compressed with gzip. Note that this format is
      * defined by Cavium and subject to change at any time.
@@ -137,8 +107,6 @@ public enum AttestationFormat implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int CAVIUM_V1_COMPRESSED_VALUE = 3;
     /**
-     *
-     *
      * 
      * Cavium HSM attestation V2 compressed with gzip. This is a new format
      * introduced in Cavium's version 3.2-08.
@@ -148,6 +116,7 @@ public enum AttestationFormat implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int CAVIUM_V2_COMPRESSED_VALUE = 4;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -172,14 +141,10 @@ public static AttestationFormat valueOf(int value) {
      */
     public static AttestationFormat forNumber(int value) {
       switch (value) {
-        case 0:
-          return ATTESTATION_FORMAT_UNSPECIFIED;
-        case 3:
-          return CAVIUM_V1_COMPRESSED;
-        case 4:
-          return CAVIUM_V2_COMPRESSED;
-        default:
-          return null;
+        case 0: return ATTESTATION_FORMAT_UNSPECIFIED;
+        case 3: return CAVIUM_V1_COMPRESSED;
+        case 4: return CAVIUM_V2_COMPRESSED;
+        default: return null;
       }
     }
 
@@ -187,28 +152,28 @@ public static AttestationFormat forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        AttestationFormat> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public AttestationFormat findValueByNumber(int number) {
+              return AttestationFormat.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public AttestationFormat findValueByNumber(int number) {
-                return AttestationFormat.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.kms.v1.KeyOperationAttestation.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -217,7 +182,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static AttestationFormat 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;
@@ -234,167 +200,134 @@ private AttestationFormat(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat)
   }
 
-  public interface CertificateChainsOrBuilder
-      extends
+  public interface CertificateChainsOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.KeyOperationAttestation.CertificateChains)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Cavium certificate chain corresponding to the attestation.
      * 
* * repeated string cavium_certs = 1; - * * @return A list containing the caviumCerts. */ - java.util.List getCaviumCertsList(); + java.util.List + getCaviumCertsList(); /** - * - * *
      * Cavium certificate chain corresponding to the attestation.
      * 
* * repeated string cavium_certs = 1; - * * @return The count of caviumCerts. */ int getCaviumCertsCount(); /** - * - * *
      * Cavium certificate chain corresponding to the attestation.
      * 
* * repeated string cavium_certs = 1; - * * @param index The index of the element to return. * @return The caviumCerts at the given index. */ java.lang.String getCaviumCerts(int index); /** - * - * *
      * Cavium certificate chain corresponding to the attestation.
      * 
* * repeated string cavium_certs = 1; - * * @param index The index of the value to return. * @return The bytes of the caviumCerts at the given index. */ - com.google.protobuf.ByteString getCaviumCertsBytes(int index); + com.google.protobuf.ByteString + getCaviumCertsBytes(int index); /** - * - * *
      * Google card certificate chain corresponding to the attestation.
      * 
* * repeated string google_card_certs = 2; - * * @return A list containing the googleCardCerts. */ - java.util.List getGoogleCardCertsList(); + java.util.List + getGoogleCardCertsList(); /** - * - * *
      * Google card certificate chain corresponding to the attestation.
      * 
* * repeated string google_card_certs = 2; - * * @return The count of googleCardCerts. */ int getGoogleCardCertsCount(); /** - * - * *
      * Google card certificate chain corresponding to the attestation.
      * 
* * repeated string google_card_certs = 2; - * * @param index The index of the element to return. * @return The googleCardCerts at the given index. */ java.lang.String getGoogleCardCerts(int index); /** - * - * *
      * Google card certificate chain corresponding to the attestation.
      * 
* * repeated string google_card_certs = 2; - * * @param index The index of the value to return. * @return The bytes of the googleCardCerts at the given index. */ - com.google.protobuf.ByteString getGoogleCardCertsBytes(int index); + com.google.protobuf.ByteString + getGoogleCardCertsBytes(int index); /** - * - * *
      * Google partition certificate chain corresponding to the attestation.
      * 
* * repeated string google_partition_certs = 3; - * * @return A list containing the googlePartitionCerts. */ - java.util.List getGooglePartitionCertsList(); + java.util.List + getGooglePartitionCertsList(); /** - * - * *
      * Google partition certificate chain corresponding to the attestation.
      * 
* * repeated string google_partition_certs = 3; - * * @return The count of googlePartitionCerts. */ int getGooglePartitionCertsCount(); /** - * - * *
      * Google partition certificate chain corresponding to the attestation.
      * 
* * repeated string google_partition_certs = 3; - * * @param index The index of the element to return. * @return The googlePartitionCerts at the given index. */ java.lang.String getGooglePartitionCerts(int index); /** - * - * *
      * Google partition certificate chain corresponding to the attestation.
      * 
* * repeated string google_partition_certs = 3; - * * @param index The index of the value to return. * @return The bytes of the googlePartitionCerts at the given index. */ - com.google.protobuf.ByteString getGooglePartitionCertsBytes(int index); + com.google.protobuf.ByteString + getGooglePartitionCertsBytes(int index); } /** - * - * *
    * Certificate chains needed to verify the attestation.
    * Certificates in chains are PEM-encoded and are ordered based on
@@ -403,16 +336,15 @@ public interface CertificateChainsOrBuilder
    *
    * Protobuf type {@code google.cloud.kms.v1.KeyOperationAttestation.CertificateChains}
    */
-  public static final class CertificateChains extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class CertificateChains extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.KeyOperationAttestation.CertificateChains)
       CertificateChainsOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use CertificateChains.newBuilder() to construct.
     private CertificateChains(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private CertificateChains() {
       caviumCerts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
       googleCardCerts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -421,69 +353,60 @@ private CertificateChains() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new CertificateChains();
     }
 
     @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.kms.v1.KmsResourcesProto
-          .internal_static_google_cloud_kms_v1_KeyOperationAttestation_CertificateChains_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_KeyOperationAttestation_CertificateChains_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsResourcesProto
-          .internal_static_google_cloud_kms_v1_KeyOperationAttestation_CertificateChains_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_KeyOperationAttestation_CertificateChains_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.class,
-              com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.Builder.class);
+              com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.class, com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.Builder.class);
     }
 
     public static final int CAVIUM_CERTS_FIELD_NUMBER = 1;
     private com.google.protobuf.LazyStringList caviumCerts_;
     /**
-     *
-     *
      * 
      * Cavium certificate chain corresponding to the attestation.
      * 
* * repeated string cavium_certs = 1; - * * @return A list containing the caviumCerts. */ - public com.google.protobuf.ProtocolStringList getCaviumCertsList() { + public com.google.protobuf.ProtocolStringList + getCaviumCertsList() { return caviumCerts_; } /** - * - * *
      * Cavium certificate chain corresponding to the attestation.
      * 
* * repeated string cavium_certs = 1; - * * @return The count of caviumCerts. */ public int getCaviumCertsCount() { return caviumCerts_.size(); } /** - * - * *
      * Cavium certificate chain corresponding to the attestation.
      * 
* * repeated string cavium_certs = 1; - * * @param index The index of the element to return. * @return The caviumCerts at the given index. */ @@ -491,60 +414,50 @@ public java.lang.String getCaviumCerts(int index) { return caviumCerts_.get(index); } /** - * - * *
      * Cavium certificate chain corresponding to the attestation.
      * 
* * repeated string cavium_certs = 1; - * * @param index The index of the value to return. * @return The bytes of the caviumCerts at the given index. */ - public com.google.protobuf.ByteString getCaviumCertsBytes(int index) { + public com.google.protobuf.ByteString + getCaviumCertsBytes(int index) { return caviumCerts_.getByteString(index); } public static final int GOOGLE_CARD_CERTS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList googleCardCerts_; /** - * - * *
      * Google card certificate chain corresponding to the attestation.
      * 
* * repeated string google_card_certs = 2; - * * @return A list containing the googleCardCerts. */ - public com.google.protobuf.ProtocolStringList getGoogleCardCertsList() { + public com.google.protobuf.ProtocolStringList + getGoogleCardCertsList() { return googleCardCerts_; } /** - * - * *
      * Google card certificate chain corresponding to the attestation.
      * 
* * repeated string google_card_certs = 2; - * * @return The count of googleCardCerts. */ public int getGoogleCardCertsCount() { return googleCardCerts_.size(); } /** - * - * *
      * Google card certificate chain corresponding to the attestation.
      * 
* * repeated string google_card_certs = 2; - * * @param index The index of the element to return. * @return The googleCardCerts at the given index. */ @@ -552,60 +465,50 @@ public java.lang.String getGoogleCardCerts(int index) { return googleCardCerts_.get(index); } /** - * - * *
      * Google card certificate chain corresponding to the attestation.
      * 
* * repeated string google_card_certs = 2; - * * @param index The index of the value to return. * @return The bytes of the googleCardCerts at the given index. */ - public com.google.protobuf.ByteString getGoogleCardCertsBytes(int index) { + public com.google.protobuf.ByteString + getGoogleCardCertsBytes(int index) { return googleCardCerts_.getByteString(index); } public static final int GOOGLE_PARTITION_CERTS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList googlePartitionCerts_; /** - * - * *
      * Google partition certificate chain corresponding to the attestation.
      * 
* * repeated string google_partition_certs = 3; - * * @return A list containing the googlePartitionCerts. */ - public com.google.protobuf.ProtocolStringList getGooglePartitionCertsList() { + public com.google.protobuf.ProtocolStringList + getGooglePartitionCertsList() { return googlePartitionCerts_; } /** - * - * *
      * Google partition certificate chain corresponding to the attestation.
      * 
* * repeated string google_partition_certs = 3; - * * @return The count of googlePartitionCerts. */ public int getGooglePartitionCertsCount() { return googlePartitionCerts_.size(); } /** - * - * *
      * Google partition certificate chain corresponding to the attestation.
      * 
* * repeated string google_partition_certs = 3; - * * @param index The index of the element to return. * @return The googlePartitionCerts at the given index. */ @@ -613,23 +516,20 @@ public java.lang.String getGooglePartitionCerts(int index) { return googlePartitionCerts_.get(index); } /** - * - * *
      * Google partition certificate chain corresponding to the attestation.
      * 
* * repeated string google_partition_certs = 3; - * * @param index The index of the value to return. * @return The bytes of the googlePartitionCerts at the given index. */ - public com.google.protobuf.ByteString getGooglePartitionCertsBytes(int index) { + public com.google.protobuf.ByteString + getGooglePartitionCertsBytes(int index) { return googlePartitionCerts_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -641,7 +541,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < caviumCerts_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, caviumCerts_.getRaw(i)); } @@ -649,8 +550,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 2, googleCardCerts_.getRaw(i)); } for (int i = 0; i < googlePartitionCerts_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, googlePartitionCerts_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, googlePartitionCerts_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -693,17 +593,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.kms.v1.KeyOperationAttestation.CertificateChains)) { return super.equals(obj); } - com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains other = - (com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains) obj; + com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains other = (com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains) obj; - if (!getCaviumCertsList().equals(other.getCaviumCertsList())) return false; - if (!getGoogleCardCertsList().equals(other.getGoogleCardCertsList())) return false; - if (!getGooglePartitionCertsList().equals(other.getGooglePartitionCertsList())) return false; + if (!getCaviumCertsList() + .equals(other.getCaviumCertsList())) return false; + if (!getGoogleCardCertsList() + .equals(other.getGoogleCardCertsList())) return false; + if (!getGooglePartitionCertsList() + .equals(other.getGooglePartitionCertsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -733,95 +635,87 @@ public int hashCode() { } public static com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains 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.kms.v1.KeyOperationAttestation.CertificateChains parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.KeyOperationAttestation.CertificateChains parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains parseFrom( 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.kms.v1.KeyOperationAttestation.CertificateChains parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains parseFrom( - byte[] data, com.google.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.kms.v1.KeyOperationAttestation.CertificateChains parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.KeyOperationAttestation.CertificateChains - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.KeyOperationAttestation.CertificateChains parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.KeyOperationAttestation.CertificateChains prototype) { + public static Builder newBuilder(com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -831,8 +725,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Certificate chains needed to verify the attestation.
      * Certificates in chains are PEM-encoded and are ordered based on
@@ -841,34 +733,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.kms.v1.KeyOperationAttestation.CertificateChains}
      */
-    public static final class Builder
-        extends 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.kms.v1.KeyOperationAttestation.CertificateChains)
         com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChainsOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.kms.v1.KmsResourcesProto
-            .internal_static_google_cloud_kms_v1_KeyOperationAttestation_CertificateChains_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_KeyOperationAttestation_CertificateChains_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.kms.v1.KmsResourcesProto
-            .internal_static_google_cloud_kms_v1_KeyOperationAttestation_CertificateChains_fieldAccessorTable
+        return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_KeyOperationAttestation_CertificateChains_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.class,
-                com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.Builder.class);
+                com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.class, com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.newBuilder()
-      private Builder() {}
+      // Construct using com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -882,16 +773,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.kms.v1.KmsResourcesProto
-            .internal_static_google_cloud_kms_v1_KeyOperationAttestation_CertificateChains_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_KeyOperationAttestation_CertificateChains_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains
-          getDefaultInstanceForType() {
-        return com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains
-            .getDefaultInstance();
+      public com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains getDefaultInstanceForType() {
+        return com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.getDefaultInstance();
       }
 
       @java.lang.Override
@@ -905,8 +794,7 @@ public com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains build()
 
       @java.lang.Override
       public com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains buildPartial() {
-        com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains result =
-            new com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains(this);
+        com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains result = new com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains(this);
         int from_bitField0_ = bitField0_;
         if (((bitField0_ & 0x00000001) != 0)) {
           caviumCerts_ = caviumCerts_.getUnmodifiableView();
@@ -931,53 +819,46 @@ public com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains buildPa
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains) {
-          return mergeFrom(
-              (com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains) other);
+          return mergeFrom((com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains other) {
-        if (other
-            == com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains other) {
+        if (other == com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.getDefaultInstance()) return this;
         if (!other.caviumCerts_.isEmpty()) {
           if (caviumCerts_.isEmpty()) {
             caviumCerts_ = other.caviumCerts_;
@@ -1034,34 +915,30 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  java.lang.String s = input.readStringRequireUtf8();
-                  ensureCaviumCertsIsMutable();
-                  caviumCerts_.add(s);
-                  break;
-                } // case 10
-              case 18:
-                {
-                  java.lang.String s = input.readStringRequireUtf8();
-                  ensureGoogleCardCertsIsMutable();
-                  googleCardCerts_.add(s);
-                  break;
-                } // case 18
-              case 26:
-                {
-                  java.lang.String s = input.readStringRequireUtf8();
-                  ensureGooglePartitionCertsIsMutable();
-                  googlePartitionCerts_.add(s);
-                  break;
-                } // case 26
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureCaviumCertsIsMutable();
+                caviumCerts_.add(s);
+                break;
+              } // case 10
+              case 18: {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureGoogleCardCertsIsMutable();
+                googleCardCerts_.add(s);
+                break;
+              } // case 18
+              case 26: {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureGooglePartitionCertsIsMutable();
+                googlePartitionCerts_.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) {
@@ -1071,55 +948,44 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
-      private com.google.protobuf.LazyStringList caviumCerts_ =
-          com.google.protobuf.LazyStringArrayList.EMPTY;
-
+      private com.google.protobuf.LazyStringList caviumCerts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
       private void ensureCaviumCertsIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
           caviumCerts_ = new com.google.protobuf.LazyStringArrayList(caviumCerts_);
           bitField0_ |= 0x00000001;
-        }
+         }
       }
       /**
-       *
-       *
        * 
        * Cavium certificate chain corresponding to the attestation.
        * 
* * repeated string cavium_certs = 1; - * * @return A list containing the caviumCerts. */ - public com.google.protobuf.ProtocolStringList getCaviumCertsList() { + public com.google.protobuf.ProtocolStringList + getCaviumCertsList() { return caviumCerts_.getUnmodifiableView(); } /** - * - * *
        * Cavium certificate chain corresponding to the attestation.
        * 
* * repeated string cavium_certs = 1; - * * @return The count of caviumCerts. */ public int getCaviumCertsCount() { return caviumCerts_.size(); } /** - * - * *
        * Cavium certificate chain corresponding to the attestation.
        * 
* * repeated string cavium_certs = 1; - * * @param index The index of the element to return. * @return The caviumCerts at the given index. */ @@ -1127,90 +993,80 @@ public java.lang.String getCaviumCerts(int index) { return caviumCerts_.get(index); } /** - * - * *
        * Cavium certificate chain corresponding to the attestation.
        * 
* * repeated string cavium_certs = 1; - * * @param index The index of the value to return. * @return The bytes of the caviumCerts at the given index. */ - public com.google.protobuf.ByteString getCaviumCertsBytes(int index) { + public com.google.protobuf.ByteString + getCaviumCertsBytes(int index) { return caviumCerts_.getByteString(index); } /** - * - * *
        * Cavium certificate chain corresponding to the attestation.
        * 
* * repeated string cavium_certs = 1; - * * @param index The index to set the value at. * @param value The caviumCerts to set. * @return This builder for chaining. */ - public Builder setCaviumCerts(int index, java.lang.String value) { + public Builder setCaviumCerts( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCaviumCertsIsMutable(); + throw new NullPointerException(); + } + ensureCaviumCertsIsMutable(); caviumCerts_.set(index, value); onChanged(); return this; } /** - * - * *
        * Cavium certificate chain corresponding to the attestation.
        * 
* * repeated string cavium_certs = 1; - * * @param value The caviumCerts to add. * @return This builder for chaining. */ - public Builder addCaviumCerts(java.lang.String value) { + public Builder addCaviumCerts( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCaviumCertsIsMutable(); + throw new NullPointerException(); + } + ensureCaviumCertsIsMutable(); caviumCerts_.add(value); onChanged(); return this; } /** - * - * *
        * Cavium certificate chain corresponding to the attestation.
        * 
* * repeated string cavium_certs = 1; - * * @param values The caviumCerts to add. * @return This builder for chaining. */ - public Builder addAllCaviumCerts(java.lang.Iterable values) { + public Builder addAllCaviumCerts( + java.lang.Iterable values) { ensureCaviumCertsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, caviumCerts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, caviumCerts_); onChanged(); return this; } /** - * - * *
        * Cavium certificate chain corresponding to the attestation.
        * 
* * repeated string cavium_certs = 1; - * * @return This builder for chaining. */ public Builder clearCaviumCerts() { @@ -1220,74 +1076,62 @@ public Builder clearCaviumCerts() { return this; } /** - * - * *
        * Cavium certificate chain corresponding to the attestation.
        * 
* * repeated string cavium_certs = 1; - * * @param value The bytes of the caviumCerts to add. * @return This builder for chaining. */ - public Builder addCaviumCertsBytes(com.google.protobuf.ByteString value) { + public Builder addCaviumCertsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureCaviumCertsIsMutable(); caviumCerts_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList googleCardCerts_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList googleCardCerts_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureGoogleCardCertsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { googleCardCerts_ = new com.google.protobuf.LazyStringArrayList(googleCardCerts_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
        * Google card certificate chain corresponding to the attestation.
        * 
* * repeated string google_card_certs = 2; - * * @return A list containing the googleCardCerts. */ - public com.google.protobuf.ProtocolStringList getGoogleCardCertsList() { + public com.google.protobuf.ProtocolStringList + getGoogleCardCertsList() { return googleCardCerts_.getUnmodifiableView(); } /** - * - * *
        * Google card certificate chain corresponding to the attestation.
        * 
* * repeated string google_card_certs = 2; - * * @return The count of googleCardCerts. */ public int getGoogleCardCertsCount() { return googleCardCerts_.size(); } /** - * - * *
        * Google card certificate chain corresponding to the attestation.
        * 
* * repeated string google_card_certs = 2; - * * @param index The index of the element to return. * @return The googleCardCerts at the given index. */ @@ -1295,90 +1139,80 @@ public java.lang.String getGoogleCardCerts(int index) { return googleCardCerts_.get(index); } /** - * - * *
        * Google card certificate chain corresponding to the attestation.
        * 
* * repeated string google_card_certs = 2; - * * @param index The index of the value to return. * @return The bytes of the googleCardCerts at the given index. */ - public com.google.protobuf.ByteString getGoogleCardCertsBytes(int index) { + public com.google.protobuf.ByteString + getGoogleCardCertsBytes(int index) { return googleCardCerts_.getByteString(index); } /** - * - * *
        * Google card certificate chain corresponding to the attestation.
        * 
* * repeated string google_card_certs = 2; - * * @param index The index to set the value at. * @param value The googleCardCerts to set. * @return This builder for chaining. */ - public Builder setGoogleCardCerts(int index, java.lang.String value) { + public Builder setGoogleCardCerts( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureGoogleCardCertsIsMutable(); + throw new NullPointerException(); + } + ensureGoogleCardCertsIsMutable(); googleCardCerts_.set(index, value); onChanged(); return this; } /** - * - * *
        * Google card certificate chain corresponding to the attestation.
        * 
* * repeated string google_card_certs = 2; - * * @param value The googleCardCerts to add. * @return This builder for chaining. */ - public Builder addGoogleCardCerts(java.lang.String value) { + public Builder addGoogleCardCerts( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureGoogleCardCertsIsMutable(); + throw new NullPointerException(); + } + ensureGoogleCardCertsIsMutable(); googleCardCerts_.add(value); onChanged(); return this; } /** - * - * *
        * Google card certificate chain corresponding to the attestation.
        * 
* * repeated string google_card_certs = 2; - * * @param values The googleCardCerts to add. * @return This builder for chaining. */ - public Builder addAllGoogleCardCerts(java.lang.Iterable values) { + public Builder addAllGoogleCardCerts( + java.lang.Iterable values) { ensureGoogleCardCertsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, googleCardCerts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, googleCardCerts_); onChanged(); return this; } /** - * - * *
        * Google card certificate chain corresponding to the attestation.
        * 
* * repeated string google_card_certs = 2; - * * @return This builder for chaining. */ public Builder clearGoogleCardCerts() { @@ -1388,75 +1222,62 @@ public Builder clearGoogleCardCerts() { return this; } /** - * - * *
        * Google card certificate chain corresponding to the attestation.
        * 
* * repeated string google_card_certs = 2; - * * @param value The bytes of the googleCardCerts to add. * @return This builder for chaining. */ - public Builder addGoogleCardCertsBytes(com.google.protobuf.ByteString value) { + public Builder addGoogleCardCertsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureGoogleCardCertsIsMutable(); googleCardCerts_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList googlePartitionCerts_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList googlePartitionCerts_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureGooglePartitionCertsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - googlePartitionCerts_ = - new com.google.protobuf.LazyStringArrayList(googlePartitionCerts_); + googlePartitionCerts_ = new com.google.protobuf.LazyStringArrayList(googlePartitionCerts_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
        * Google partition certificate chain corresponding to the attestation.
        * 
* * repeated string google_partition_certs = 3; - * * @return A list containing the googlePartitionCerts. */ - public com.google.protobuf.ProtocolStringList getGooglePartitionCertsList() { + public com.google.protobuf.ProtocolStringList + getGooglePartitionCertsList() { return googlePartitionCerts_.getUnmodifiableView(); } /** - * - * *
        * Google partition certificate chain corresponding to the attestation.
        * 
* * repeated string google_partition_certs = 3; - * * @return The count of googlePartitionCerts. */ public int getGooglePartitionCertsCount() { return googlePartitionCerts_.size(); } /** - * - * *
        * Google partition certificate chain corresponding to the attestation.
        * 
* * repeated string google_partition_certs = 3; - * * @param index The index of the element to return. * @return The googlePartitionCerts at the given index. */ @@ -1464,90 +1285,80 @@ public java.lang.String getGooglePartitionCerts(int index) { return googlePartitionCerts_.get(index); } /** - * - * *
        * Google partition certificate chain corresponding to the attestation.
        * 
* * repeated string google_partition_certs = 3; - * * @param index The index of the value to return. * @return The bytes of the googlePartitionCerts at the given index. */ - public com.google.protobuf.ByteString getGooglePartitionCertsBytes(int index) { + public com.google.protobuf.ByteString + getGooglePartitionCertsBytes(int index) { return googlePartitionCerts_.getByteString(index); } /** - * - * *
        * Google partition certificate chain corresponding to the attestation.
        * 
* * repeated string google_partition_certs = 3; - * * @param index The index to set the value at. * @param value The googlePartitionCerts to set. * @return This builder for chaining. */ - public Builder setGooglePartitionCerts(int index, java.lang.String value) { + public Builder setGooglePartitionCerts( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureGooglePartitionCertsIsMutable(); + throw new NullPointerException(); + } + ensureGooglePartitionCertsIsMutable(); googlePartitionCerts_.set(index, value); onChanged(); return this; } /** - * - * *
        * Google partition certificate chain corresponding to the attestation.
        * 
* * repeated string google_partition_certs = 3; - * * @param value The googlePartitionCerts to add. * @return This builder for chaining. */ - public Builder addGooglePartitionCerts(java.lang.String value) { + public Builder addGooglePartitionCerts( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureGooglePartitionCertsIsMutable(); + throw new NullPointerException(); + } + ensureGooglePartitionCertsIsMutable(); googlePartitionCerts_.add(value); onChanged(); return this; } /** - * - * *
        * Google partition certificate chain corresponding to the attestation.
        * 
* * repeated string google_partition_certs = 3; - * * @param values The googlePartitionCerts to add. * @return This builder for chaining. */ - public Builder addAllGooglePartitionCerts(java.lang.Iterable values) { + public Builder addAllGooglePartitionCerts( + java.lang.Iterable values) { ensureGooglePartitionCertsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, googlePartitionCerts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, googlePartitionCerts_); onChanged(); return this; } /** - * - * *
        * Google partition certificate chain corresponding to the attestation.
        * 
* * repeated string google_partition_certs = 3; - * * @return This builder for chaining. */ public Builder clearGooglePartitionCerts() { @@ -1557,28 +1368,25 @@ public Builder clearGooglePartitionCerts() { return this; } /** - * - * *
        * Google partition certificate chain corresponding to the attestation.
        * 
* * repeated string google_partition_certs = 3; - * * @param value The bytes of the googlePartitionCerts to add. * @return This builder for chaining. */ - public Builder addGooglePartitionCertsBytes(com.google.protobuf.ByteString value) { + public Builder addGooglePartitionCertsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureGooglePartitionCertsIsMutable(); googlePartitionCerts_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1591,44 +1399,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.KeyOperationAttestation.CertificateChains) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.KeyOperationAttestation.CertificateChains) - private static final com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains - DEFAULT_INSTANCE; - + private static final com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains(); } - public static com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains - getDefaultInstance() { + public static com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateChains parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateChains parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1640,66 +1445,48 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains - getDefaultInstanceForType() { + public com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int FORMAT_FIELD_NUMBER = 4; private int format_; /** - * - * *
    * Output only. The format of the attestation data.
    * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for format. */ - @java.lang.Override - public int getFormatValue() { + @java.lang.Override public int getFormatValue() { return format_; } /** - * - * *
    * Output only. The format of the attestation data.
    * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The format. */ - @java.lang.Override - public com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat getFormat() { + @java.lang.Override public com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat getFormat() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat result = - com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat.valueOf(format_); - return result == null - ? com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat.UNRECOGNIZED - : result; + com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat result = com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat.valueOf(format_); + return result == null ? com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat.UNRECOGNIZED : result; } public static final int CONTENT_FIELD_NUMBER = 5; private com.google.protobuf.ByteString content_; /** - * - * *
    * Output only. The attestation data provided by the HSM when the key
    * operation was performed.
    * 
* * bytes content = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The content. */ @java.lang.Override @@ -1710,16 +1497,11 @@ public com.google.protobuf.ByteString getContent() { public static final int CERT_CHAINS_FIELD_NUMBER = 6; private com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains certChains_; /** - * - * *
    * Output only. The certificate chains needed to validate the attestation
    * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the certChains field is set. */ @java.lang.Override @@ -1727,43 +1509,30 @@ public boolean hasCertChains() { return certChains_ != null; } /** - * - * *
    * Output only. The certificate chains needed to validate the attestation
    * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The certChains. */ @java.lang.Override public com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains getCertChains() { - return certChains_ == null - ? com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.getDefaultInstance() - : certChains_; + return certChains_ == null ? com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.getDefaultInstance() : certChains_; } /** - * - * *
    * Output only. The certificate chains needed to validate the attestation
    * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChainsOrBuilder - getCertChainsOrBuilder() { + public com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChainsOrBuilder getCertChainsOrBuilder() { return getCertChains(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1775,11 +1544,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (format_ - != com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat - .ATTESTATION_FORMAT_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (format_ != com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat.ATTESTATION_FORMAT_UNSPECIFIED.getNumber()) { output.writeEnum(4, format_); } if (!content_.isEmpty()) { @@ -1797,17 +1564,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (format_ - != com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat - .ATTESTATION_FORMAT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, format_); + if (format_ != com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat.ATTESTATION_FORMAT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, format_); } if (!content_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, content_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, content_); } if (certChains_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCertChains()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCertChains()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1817,19 +1584,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.kms.v1.KeyOperationAttestation)) { return super.equals(obj); } - com.google.cloud.kms.v1.KeyOperationAttestation other = - (com.google.cloud.kms.v1.KeyOperationAttestation) obj; + com.google.cloud.kms.v1.KeyOperationAttestation other = (com.google.cloud.kms.v1.KeyOperationAttestation) obj; if (format_ != other.format_) return false; - if (!getContent().equals(other.getContent())) return false; + if (!getContent() + .equals(other.getContent())) return false; if (hasCertChains() != other.hasCertChains()) return false; if (hasCertChains()) { - if (!getCertChains().equals(other.getCertChains())) return false; + if (!getCertChains() + .equals(other.getCertChains())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1855,104 +1623,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.KeyOperationAttestation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.KeyOperationAttestation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.KeyOperationAttestation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.KeyOperationAttestation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.KeyOperationAttestation parseFrom( 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.kms.v1.KeyOperationAttestation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.KeyOperationAttestation parseFrom( - byte[] data, com.google.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.kms.v1.KeyOperationAttestation parseFrom(java.io.InputStream input) 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.kms.v1.KeyOperationAttestation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.KeyOperationAttestation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.KeyOperationAttestation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.KeyOperationAttestation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.KeyOperationAttestation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.KeyOperationAttestation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.KeyOperationAttestation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Contains an HSM-generated attestation about a key operation. For more
    * information, see [Verifying attestations]
@@ -1961,32 +1722,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.KeyOperationAttestation}
    */
-  public static final class Builder extends 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.kms.v1.KeyOperationAttestation)
       com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsResourcesProto
-          .internal_static_google_cloud_kms_v1_KeyOperationAttestation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_KeyOperationAttestation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsResourcesProto
-          .internal_static_google_cloud_kms_v1_KeyOperationAttestation_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_KeyOperationAttestation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.KeyOperationAttestation.class,
-              com.google.cloud.kms.v1.KeyOperationAttestation.Builder.class);
+              com.google.cloud.kms.v1.KeyOperationAttestation.class, com.google.cloud.kms.v1.KeyOperationAttestation.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.KeyOperationAttestation.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();
@@ -2004,9 +1766,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsResourcesProto
-          .internal_static_google_cloud_kms_v1_KeyOperationAttestation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_KeyOperationAttestation_descriptor;
     }
 
     @java.lang.Override
@@ -2025,8 +1787,7 @@ public com.google.cloud.kms.v1.KeyOperationAttestation build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.KeyOperationAttestation buildPartial() {
-      com.google.cloud.kms.v1.KeyOperationAttestation result =
-          new com.google.cloud.kms.v1.KeyOperationAttestation(this);
+      com.google.cloud.kms.v1.KeyOperationAttestation result = new com.google.cloud.kms.v1.KeyOperationAttestation(this);
       result.format_ = format_;
       result.content_ = content_;
       if (certChainsBuilder_ == null) {
@@ -2042,39 +1803,38 @@ public com.google.cloud.kms.v1.KeyOperationAttestation 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.kms.v1.KeyOperationAttestation) {
-        return mergeFrom((com.google.cloud.kms.v1.KeyOperationAttestation) other);
+        return mergeFrom((com.google.cloud.kms.v1.KeyOperationAttestation)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2082,8 +1842,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.kms.v1.KeyOperationAttestation other) {
-      if (other == com.google.cloud.kms.v1.KeyOperationAttestation.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.kms.v1.KeyOperationAttestation.getDefaultInstance()) return this;
       if (other.format_ != 0) {
         setFormatValue(other.getFormatValue());
       }
@@ -2119,31 +1878,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 32:
-              {
-                format_ = input.readEnum();
+            case 32: {
+              format_ = input.readEnum();
 
-                break;
-              } // case 32
-            case 42:
-              {
-                content_ = input.readBytes();
+              break;
+            } // case 32
+            case 42: {
+              content_ = input.readBytes();
 
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(getCertChainsFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getCertChainsFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 50
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              break;
+            } // case 50
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2156,103 +1913,73 @@ public Builder mergeFrom(
 
     private int format_ = 0;
     /**
-     *
-     *
      * 
      * Output only. The format of the attestation data.
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for format. */ - @java.lang.Override - public int getFormatValue() { + @java.lang.Override public int getFormatValue() { return format_; } /** - * - * *
      * Output only. The format of the attestation data.
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for format to set. * @return This builder for chaining. */ public Builder setFormatValue(int value) { - + format_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The format of the attestation data.
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The format. */ @java.lang.Override public com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat getFormat() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat result = - com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat.valueOf(format_); - return result == null - ? com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat.UNRECOGNIZED - : result; + com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat result = com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat.valueOf(format_); + return result == null ? com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The format of the attestation data.
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The format to set. * @return This builder for chaining. */ - public Builder setFormat( - com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat value) { + public Builder setFormat(com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat value) { if (value == null) { throw new NullPointerException(); } - + format_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The format of the attestation data.
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearFormat() { - + format_ = 0; onChanged(); return this; @@ -2260,15 +1987,12 @@ public Builder clearFormat() { private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Output only. The attestation data provided by the HSM when the key
      * operation was performed.
      * 
* * bytes content = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The content. */ @java.lang.Override @@ -2276,41 +2000,35 @@ public com.google.protobuf.ByteString getContent() { return content_; } /** - * - * *
      * Output only. The attestation data provided by the HSM when the key
      * operation was performed.
      * 
* * bytes content = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + content_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The attestation data provided by the HSM when the key
      * operation was performed.
      * 
* * bytes content = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearContent() { - + content_ = getDefaultInstance().getContent(); onChanged(); return this; @@ -2318,61 +2036,41 @@ public Builder clearContent() { private com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains certChains_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains, - com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.Builder, - com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChainsOrBuilder> - certChainsBuilder_; + com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains, com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.Builder, com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChainsOrBuilder> certChainsBuilder_; /** - * - * *
      * Output only. The certificate chains needed to validate the attestation
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the certChains field is set. */ public boolean hasCertChains() { return certChainsBuilder_ != null || certChains_ != null; } /** - * - * *
      * Output only. The certificate chains needed to validate the attestation
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The certChains. */ public com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains getCertChains() { if (certChainsBuilder_ == null) { - return certChains_ == null - ? com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.getDefaultInstance() - : certChains_; + return certChains_ == null ? com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.getDefaultInstance() : certChains_; } else { return certChainsBuilder_.getMessage(); } } /** - * - * *
      * Output only. The certificate chains needed to validate the attestation
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCertChains( - com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains value) { + public Builder setCertChains(com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains value) { if (certChainsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2386,15 +2084,11 @@ public Builder setCertChains( return this; } /** - * - * *
      * Output only. The certificate chains needed to validate the attestation
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCertChains( com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.Builder builderForValue) { @@ -2408,25 +2102,17 @@ public Builder setCertChains( return this; } /** - * - * *
      * Output only. The certificate chains needed to validate the attestation
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeCertChains( - com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains value) { + public Builder mergeCertChains(com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains value) { if (certChainsBuilder_ == null) { if (certChains_ != null) { certChains_ = - com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.newBuilder( - certChains_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.newBuilder(certChains_).mergeFrom(value).buildPartial(); } else { certChains_ = value; } @@ -2438,15 +2124,11 @@ public Builder mergeCertChains( return this; } /** - * - * *
      * Output only. The certificate chains needed to validate the attestation
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCertChains() { if (certChainsBuilder_ == null) { @@ -2460,73 +2142,55 @@ public Builder clearCertChains() { return this; } /** - * - * *
      * Output only. The certificate chains needed to validate the attestation
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.Builder - getCertChainsBuilder() { - + public com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.Builder getCertChainsBuilder() { + onChanged(); return getCertChainsFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The certificate chains needed to validate the attestation
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChainsOrBuilder - getCertChainsOrBuilder() { + public com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChainsOrBuilder getCertChainsOrBuilder() { if (certChainsBuilder_ != null) { return certChainsBuilder_.getMessageOrBuilder(); } else { - return certChains_ == null - ? com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.getDefaultInstance() - : certChains_; + return certChains_ == null ? + com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.getDefaultInstance() : certChains_; } } /** - * - * *
      * Output only. The certificate chains needed to validate the attestation
      * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains, - com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.Builder, - com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChainsOrBuilder> + com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains, com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.Builder, com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChainsOrBuilder> getCertChainsFieldBuilder() { if (certChainsBuilder_ == null) { - certChainsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains, - com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.Builder, - com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChainsOrBuilder>( - getCertChains(), getParentForChildren(), isClean()); + certChainsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains, com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains.Builder, com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChainsOrBuilder>( + getCertChains(), + getParentForChildren(), + isClean()); certChains_ = null; } return certChainsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2536,12 +2200,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.KeyOperationAttestation) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.KeyOperationAttestation) private static final com.google.cloud.kms.v1.KeyOperationAttestation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.KeyOperationAttestation(); } @@ -2550,27 +2214,27 @@ public static com.google.cloud.kms.v1.KeyOperationAttestation getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyOperationAttestation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyOperationAttestation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2585,4 +2249,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.KeyOperationAttestation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyOperationAttestationOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyOperationAttestationOrBuilder.java similarity index 50% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyOperationAttestationOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyOperationAttestationOrBuilder.java index ffda8f836246..7c290cb038cb 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyOperationAttestationOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyOperationAttestationOrBuilder.java @@ -1,110 +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/kms/v1/resources.proto package com.google.cloud.kms.v1; -public interface KeyOperationAttestationOrBuilder - extends +public interface KeyOperationAttestationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.KeyOperationAttestation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The format of the attestation data.
    * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for format. */ int getFormatValue(); /** - * - * *
    * Output only. The format of the attestation data.
    * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The format. */ com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat getFormat(); /** - * - * *
    * Output only. The attestation data provided by the HSM when the key
    * operation was performed.
    * 
* * bytes content = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The content. */ com.google.protobuf.ByteString getContent(); /** - * - * *
    * Output only. The certificate chains needed to validate the attestation
    * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the certChains field is set. */ boolean hasCertChains(); /** - * - * *
    * Output only. The certificate chains needed to validate the attestation
    * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The certChains. */ com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains getCertChains(); /** - * - * *
    * Output only. The certificate chains needed to validate the attestation
    * 
* - * - * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChainsOrBuilder - getCertChainsOrBuilder(); + com.google.cloud.kms.v1.KeyOperationAttestation.CertificateChainsOrBuilder getCertChainsOrBuilder(); } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyRing.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyRing.java similarity index 67% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyRing.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyRing.java index 43c5cbb1bd51..bcbc0f89e993 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyRing.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyRing.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/kms/v1/resources.proto package com.google.cloud.kms.v1; /** - * - * *
  * A [KeyRing][google.cloud.kms.v1.KeyRing] is a toplevel logical grouping of
  * [CryptoKeys][google.cloud.kms.v1.CryptoKey].
@@ -28,41 +11,40 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.KeyRing}
  */
-public final class KeyRing extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class KeyRing extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.KeyRing)
     KeyRingOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use KeyRing.newBuilder() to construct.
   private KeyRing(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private KeyRing() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new KeyRing();
   }
 
   @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.kms.v1.KmsResourcesProto
-        .internal_static_google_cloud_kms_v1_KeyRing_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_KeyRing_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsResourcesProto
-        .internal_static_google_cloud_kms_v1_KeyRing_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_KeyRing_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.cloud.kms.v1.KeyRing.class, com.google.cloud.kms.v1.KeyRing.Builder.class);
   }
@@ -70,8 +52,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Output only. The resource name for the
    * [KeyRing][google.cloud.kms.v1.KeyRing] in the format
@@ -79,7 +59,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -88,15 +67,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; } } /** - * - * *
    * Output only. The resource name for the
    * [KeyRing][google.cloud.kms.v1.KeyRing] in the format
@@ -104,15 +82,16 @@ public java.lang.String getName() {
    * 
* * 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 { @@ -123,16 +102,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time at which this [KeyRing][google.cloud.kms.v1.KeyRing]
    * was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -140,16 +115,12 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time at which this [KeyRing][google.cloud.kms.v1.KeyRing]
    * was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -157,15 +128,12 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time at which this [KeyRing][google.cloud.kms.v1.KeyRing]
    * was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -173,7 +141,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,7 +152,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,7 +173,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -215,17 +184,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.kms.v1.KeyRing)) { return super.equals(obj); } com.google.cloud.kms.v1.KeyRing other = (com.google.cloud.kms.v1.KeyRing) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -249,103 +220,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.KeyRing parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.KeyRing parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.KeyRing parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.KeyRing parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.kms.v1.KeyRing parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.KeyRing parseFrom( 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.kms.v1.KeyRing parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.KeyRing parseFrom( - byte[] data, com.google.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.kms.v1.KeyRing parseFrom(java.io.InputStream input) 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.kms.v1.KeyRing parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.KeyRing 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.kms.v1.KeyRing parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.KeyRing parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.KeyRing parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.KeyRing prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [KeyRing][google.cloud.kms.v1.KeyRing] is a toplevel logical grouping of
    * [CryptoKeys][google.cloud.kms.v1.CryptoKey].
@@ -353,31 +318,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.KeyRing}
    */
-  public static final class Builder extends 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.kms.v1.KeyRing)
       com.google.cloud.kms.v1.KeyRingOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsResourcesProto
-          .internal_static_google_cloud_kms_v1_KeyRing_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_KeyRing_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsResourcesProto
-          .internal_static_google_cloud_kms_v1_KeyRing_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_KeyRing_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.cloud.kms.v1.KeyRing.class, com.google.cloud.kms.v1.KeyRing.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.KeyRing.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 +360,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsResourcesProto
-          .internal_static_google_cloud_kms_v1_KeyRing_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_KeyRing_descriptor;
     }
 
     @java.lang.Override
@@ -429,39 +396,38 @@ public com.google.cloud.kms.v1.KeyRing 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.kms.v1.KeyRing) {
-        return mergeFrom((com.google.cloud.kms.v1.KeyRing) other);
+        return mergeFrom((com.google.cloud.kms.v1.KeyRing)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -503,25 +469,24 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-
-                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: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().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) {
@@ -534,8 +499,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource name for the
      * [KeyRing][google.cloud.kms.v1.KeyRing] in the format
@@ -543,13 +506,13 @@ public Builder mergeFrom(
      * 
* * 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; @@ -558,8 +521,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name for the
      * [KeyRing][google.cloud.kms.v1.KeyRing] in the format
@@ -567,14 +528,15 @@ public java.lang.String getName() {
      * 
* * 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 { @@ -582,8 +544,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name for the
      * [KeyRing][google.cloud.kms.v1.KeyRing] in the format
@@ -591,22 +551,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * 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 for the
      * [KeyRing][google.cloud.kms.v1.KeyRing] in the format
@@ -614,18 +572,15 @@ public Builder setName(java.lang.String value) {
      * 
* * 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 for the
      * [KeyRing][google.cloud.kms.v1.KeyRing] in the format
@@ -633,16 +588,16 @@ public Builder clearName() {
      * 
* * 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; @@ -650,61 +605,42 @@ public Builder setNameBytes(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 at which this [KeyRing][google.cloud.kms.v1.KeyRing]
      * was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.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 at which this [KeyRing][google.cloud.kms.v1.KeyRing]
      * was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.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 at which this [KeyRing][google.cloud.kms.v1.KeyRing]
      * was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -720,18 +656,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [KeyRing][google.cloud.kms.v1.KeyRing]
      * was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.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(); @@ -742,22 +675,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this [KeyRing][google.cloud.kms.v1.KeyRing]
      * was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.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; } @@ -769,16 +698,12 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [KeyRing][google.cloud.kms.v1.KeyRing]
      * was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -792,74 +717,58 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time at which this [KeyRing][google.cloud.kms.v1.KeyRing]
      * was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this [KeyRing][google.cloud.kms.v1.KeyRing]
      * was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.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 at which this [KeyRing][google.cloud.kms.v1.KeyRing]
      * was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_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> 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_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -869,12 +778,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.KeyRing) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.KeyRing) private static final com.google.cloud.kms.v1.KeyRing DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.KeyRing(); } @@ -883,27 +792,27 @@ public static com.google.cloud.kms.v1.KeyRing getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyRing parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyRing parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -918,4 +827,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.KeyRing getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyRingName.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyRingName.java similarity index 98% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyRingName.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyRingName.java index 694cea4c71a0..6663468fb6b4 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyRingName.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyRingName.java @@ -17,6 +17,7 @@ package com.google.cloud.kms.v1; import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableMap; import java.util.ArrayList; @@ -27,7 +28,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. @Generated("by gapic-generator-java") -public class KeyRingName extends KeyName { +public class KeyRingName implements ResourceName { private static final PathTemplate PROJECT_LOCATION_KEY_RING = PathTemplate.createWithoutUrlEncoding( "projects/{project}/locations/{location}/keyRings/{key_ring}"); diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyRingOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyRingOrBuilder.java similarity index 65% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyRingOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyRingOrBuilder.java index 8648d29af571..7edd8da82fc6 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyRingOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyRingOrBuilder.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/kms/v1/resources.proto package com.google.cloud.kms.v1; -public interface KeyRingOrBuilder - extends +public interface KeyRingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.KeyRing) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name for the
    * [KeyRing][google.cloud.kms.v1.KeyRing] in the format
@@ -33,13 +15,10 @@ public interface KeyRingOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name for the
    * [KeyRing][google.cloud.kms.v1.KeyRing] in the format
@@ -47,49 +26,38 @@ public interface KeyRingOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The time at which this [KeyRing][google.cloud.kms.v1.KeyRing]
    * was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time at which this [KeyRing][google.cloud.kms.v1.KeyRing]
    * was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time at which this [KeyRing][google.cloud.kms.v1.KeyRing]
    * was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); } diff --git a/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsProto.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsProto.java new file mode 100644 index 000000000000..1989a56b81a4 --- /dev/null +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsProto.java @@ -0,0 +1,799 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/service.proto + +package com.google.cloud.kms.v1; + +public final class KmsProto { + private KmsProto() {} + 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_kms_v1_ListKeyRingsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_ListKeyRingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_ListCryptoKeysRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_ListCryptoKeysRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_ListImportJobsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_ListImportJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_ListKeyRingsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_ListKeyRingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_ListCryptoKeysResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_ListCryptoKeysResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_ListImportJobsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_ListImportJobsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_GetKeyRingRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_GetKeyRingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_GetCryptoKeyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_GetCryptoKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_GetCryptoKeyVersionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_GetCryptoKeyVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_GetPublicKeyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_GetPublicKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_GetImportJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_GetImportJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_CreateKeyRingRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_CreateKeyRingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_CreateCryptoKeyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_CreateCryptoKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_CreateCryptoKeyVersionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_CreateCryptoKeyVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_ImportCryptoKeyVersionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_ImportCryptoKeyVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_CreateImportJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_CreateImportJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_UpdateCryptoKeyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_UpdateCryptoKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_UpdateCryptoKeyVersionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_UpdateCryptoKeyVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_UpdateCryptoKeyPrimaryVersionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_UpdateCryptoKeyPrimaryVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_DestroyCryptoKeyVersionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_DestroyCryptoKeyVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_RestoreCryptoKeyVersionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_RestoreCryptoKeyVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_EncryptRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_EncryptRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_DecryptRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_DecryptRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_AsymmetricSignRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_AsymmetricSignRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_MacSignRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_MacSignRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_MacVerifyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_MacVerifyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_GenerateRandomBytesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_GenerateRandomBytesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_EncryptResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_EncryptResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_DecryptResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_DecryptResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_AsymmetricSignResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_AsymmetricSignResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_MacSignResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_MacSignResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_MacVerifyResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_MacVerifyResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_GenerateRandomBytesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_GenerateRandomBytesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_Digest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_Digest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_LocationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_LocationMetadata_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/kms/v1/service.proto\022\023goo" + + "gle.cloud.kms.v1\032\034google/api/annotations" + + ".proto\032\027google/api/client.proto\032\037google/" + + "api/field_behavior.proto\032\031google/api/res" + + "ource.proto\032#google/cloud/kms/v1/resourc" + + "es.proto\032 google/protobuf/field_mask.pro" + + "to\032\036google/protobuf/wrappers.proto\"\255\001\n\023L" + + "istKeyRingsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372" + + "A#\n!locations.googleapis.com/Location\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(" + + "\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030" + + "\005 \001(\tB\003\340A\001\"\377\001\n\025ListCryptoKeysRequest\0227\n\006" + + "parent\030\001 \001(\tB\'\340A\002\372A!\n\037cloudkms.googleapi" + + "s.com/KeyRing\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" + + "\npage_token\030\003 \001(\tB\003\340A\001\022P\n\014version_view\030\004" + + " \001(\0162:.google.cloud.kms.v1.CryptoKeyVers" + + "ion.CryptoKeyVersionView\022\023\n\006filter\030\005 \001(\t" + + "B\003\340A\001\022\025\n\010order_by\030\006 \001(\tB\003\340A\001\"\200\002\n\034ListCry" + + "ptoKeyVersionsRequest\0229\n\006parent\030\001 \001(\tB)\340" + + "A\002\372A#\n!cloudkms.googleapis.com/CryptoKey" + + "\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003" + + " \001(\tB\003\340A\001\022H\n\004view\030\004 \001(\0162:.google.cloud.k" + + "ms.v1.CryptoKeyVersion.CryptoKeyVersionV" + + "iew\022\023\n\006filter\030\005 \001(\tB\003\340A\001\022\025\n\010order_by\030\006 \001" + + "(\tB\003\340A\001\"\255\001\n\025ListImportJobsRequest\0227\n\006par" + + "ent\030\001 \001(\tB\'\340A\002\372A!\n\037cloudkms.googleapis.c" + + "om/KeyRing\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npa" + + "ge_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001" + + "\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"t\n\024ListKeyRingsR" + + "esponse\022/\n\tkey_rings\030\001 \003(\0132\034.google.clou" + + "d.kms.v1.KeyRing\022\027\n\017next_page_token\030\002 \001(" + + "\t\022\022\n\ntotal_size\030\003 \001(\005\"z\n\026ListCryptoKeysR" + + "esponse\0223\n\013crypto_keys\030\001 \003(\0132\036.google.cl" + + "oud.kms.v1.CryptoKey\022\027\n\017next_page_token\030" + + "\002 \001(\t\022\022\n\ntotal_size\030\003 \001(\005\"\220\001\n\035ListCrypto" + + "KeyVersionsResponse\022B\n\023crypto_key_versio" + + "ns\030\001 \003(\0132%.google.cloud.kms.v1.CryptoKey" + + "Version\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\ntota" + + "l_size\030\003 \001(\005\"z\n\026ListImportJobsResponse\0223" + + "\n\013import_jobs\030\001 \003(\0132\036.google.cloud.kms.v" + + "1.ImportJob\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\005\"J\n\021GetKeyRingRequest\0225\n" + + "\004name\030\001 \001(\tB\'\340A\002\372A!\n\037cloudkms.googleapis" + + ".com/KeyRing\"N\n\023GetCryptoKeyRequest\0227\n\004n" + + "ame\030\001 \001(\tB)\340A\002\372A#\n!cloudkms.googleapis.c" + + "om/CryptoKey\"\\\n\032GetCryptoKeyVersionReque" + + "st\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(cloudkms.googl" + + "eapis.com/CryptoKeyVersion\"U\n\023GetPublicK" + + "eyRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(cloudkm" + + "s.googleapis.com/CryptoKeyVersion\"N\n\023Get" + + "ImportJobRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!" + + "cloudkms.googleapis.com/ImportJob\"\240\001\n\024Cr" + + "eateKeyRingRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372" + + "A#\n!locations.googleapis.com/Location\022\030\n" + + "\013key_ring_id\030\002 \001(\tB\003\340A\002\0223\n\010key_ring\030\003 \001(" + + "\0132\034.google.cloud.kms.v1.KeyRingB\003\340A\002\"\315\001\n" + + "\026CreateCryptoKeyRequest\0227\n\006parent\030\001 \001(\tB" + + "\'\340A\002\372A!\n\037cloudkms.googleapis.com/KeyRing" + + "\022\032\n\rcrypto_key_id\030\002 \001(\tB\003\340A\002\0227\n\ncrypto_k" + + "ey\030\003 \001(\0132\036.google.cloud.kms.v1.CryptoKey" + + "B\003\340A\002\022%\n\035skip_initial_version_creation\030\005" + + " \001(\010\"\242\001\n\035CreateCryptoKeyVersionRequest\0229" + + "\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!cloudkms.googlea" + + "pis.com/CryptoKey\022F\n\022crypto_key_version\030" + + "\002 \001(\0132%.google.cloud.kms.v1.CryptoKeyVer" + + "sionB\003\340A\002\"\321\002\n\035ImportCryptoKeyVersionRequ" + + "est\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!cloudkms.go" + + "ogleapis.com/CryptoKey\022L\n\022crypto_key_ver" + + "sion\030\006 \001(\tB0\340A\001\372A*\n(cloudkms.googleapis." + + "com/CryptoKeyVersion\022W\n\talgorithm\030\002 \001(\0162" + + "?.google.cloud.kms.v1.CryptoKeyVersion.C" + + "ryptoKeyVersionAlgorithmB\003\340A\002\022\027\n\nimport_" + + "job\030\004 \001(\tB\003\340A\002\022\035\n\023rsa_aes_wrapped_key\030\005 " + + "\001(\014H\000B\026\n\024wrapped_key_material\"\246\001\n\026Create" + + "ImportJobRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!" + + "\n\037cloudkms.googleapis.com/KeyRing\022\032\n\rimp" + + "ort_job_id\030\002 \001(\tB\003\340A\002\0227\n\nimport_job\030\003 \001(" + + "\0132\036.google.cloud.kms.v1.ImportJobB\003\340A\002\"\207" + + "\001\n\026UpdateCryptoKeyRequest\0227\n\ncrypto_key\030" + + "\001 \001(\0132\036.google.cloud.kms.v1.CryptoKeyB\003\340" + + "A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobu" + + "f.FieldMaskB\003\340A\002\"\235\001\n\035UpdateCryptoKeyVers" + + "ionRequest\022F\n\022crypto_key_version\030\001 \001(\0132%" + + ".google.cloud.kms.v1.CryptoKeyVersionB\003\340" + + "A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobu" + + "f.FieldMaskB\003\340A\002\"\203\001\n$UpdateCryptoKeyPrim" + + "aryVersionRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n" + + "!cloudkms.googleapis.com/CryptoKey\022\"\n\025cr" + + "ypto_key_version_id\030\002 \001(\tB\003\340A\002\"`\n\036Destro" + + "yCryptoKeyVersionRequest\022>\n\004name\030\001 \001(\tB0" + + "\340A\002\372A*\n(cloudkms.googleapis.com/CryptoKe" + + "yVersion\"`\n\036RestoreCryptoKeyVersionReque" + + "st\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(cloudkms.googl" + + "eapis.com/CryptoKeyVersion\"\371\001\n\016EncryptRe" + + "quest\022\027\n\004name\030\001 \001(\tB\t\340A\002\372A\003\n\001*\022\026\n\tplaint" + + "ext\030\002 \001(\014B\003\340A\002\022*\n\035additional_authenticat" + + "ed_data\030\003 \001(\014B\003\340A\001\022:\n\020plaintext_crc32c\030\007" + + " \001(\0132\033.google.protobuf.Int64ValueB\003\340A\001\022N" + + "\n$additional_authenticated_data_crc32c\030\010" + + " \001(\0132\033.google.protobuf.Int64ValueB\003\340A\001\"\233" + + "\002\n\016DecryptRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n" + + "!cloudkms.googleapis.com/CryptoKey\022\027\n\nci" + + "phertext\030\002 \001(\014B\003\340A\002\022*\n\035additional_authen" + + "ticated_data\030\003 \001(\014B\003\340A\001\022;\n\021ciphertext_cr" + + "c32c\030\005 \001(\0132\033.google.protobuf.Int64ValueB" + + "\003\340A\001\022N\n$additional_authenticated_data_cr" + + "c32c\030\006 \001(\0132\033.google.protobuf.Int64ValueB" + + "\003\340A\001\"\214\002\n\025AsymmetricSignRequest\022>\n\004name\030\001" + + " \001(\tB0\340A\002\372A*\n(cloudkms.googleapis.com/Cr" + + "yptoKeyVersion\0220\n\006digest\030\003 \001(\0132\033.google." + + "cloud.kms.v1.DigestB\003\340A\001\0227\n\rdigest_crc32" + + "c\030\004 \001(\0132\033.google.protobuf.Int64ValueB\003\340A" + + "\001\022\021\n\004data\030\006 \001(\014B\003\340A\001\0225\n\013data_crc32c\030\007 \001(" + + "\0132\033.google.protobuf.Int64ValueB\003\340A\001\"\260\001\n\030" + + "AsymmetricDecryptRequest\022>\n\004name\030\001 \001(\tB0" + + "\340A\002\372A*\n(cloudkms.googleapis.com/CryptoKe" + + "yVersion\022\027\n\nciphertext\030\003 \001(\014B\003\340A\002\022;\n\021cip" + + "hertext_crc32c\030\004 \001(\0132\033.google.protobuf.I" + + "nt64ValueB\003\340A\001\"\232\001\n\016MacSignRequest\022>\n\004nam" + + "e\030\001 \001(\tB0\340A\002\372A*\n(cloudkms.googleapis.com" + + "/CryptoKeyVersion\022\021\n\004data\030\002 \001(\014B\003\340A\002\0225\n\013" + + "data_crc32c\030\003 \001(\0132\033.google.protobuf.Int6" + + "4ValueB\003\340A\001\"\344\001\n\020MacVerifyRequest\022>\n\004name" + + "\030\001 \001(\tB0\340A\002\372A*\n(cloudkms.googleapis.com/" + + "CryptoKeyVersion\022\021\n\004data\030\002 \001(\014B\003\340A\002\0225\n\013d" + + "ata_crc32c\030\003 \001(\0132\033.google.protobuf.Int64" + + "ValueB\003\340A\001\022\020\n\003mac\030\004 \001(\014B\003\340A\002\0224\n\nmac_crc3" + + "2c\030\005 \001(\0132\033.google.protobuf.Int64ValueB\003\340" + + "A\001\"\204\001\n\032GenerateRandomBytesRequest\022\020\n\010loc" + + "ation\030\001 \001(\t\022\024\n\014length_bytes\030\002 \001(\005\022>\n\020pro" + + "tection_level\030\003 \001(\0162$.google.cloud.kms.v" + + "1.ProtectionLevel\"\205\002\n\017EncryptResponse\022\014\n" + + "\004name\030\001 \001(\t\022\022\n\nciphertext\030\002 \001(\014\0226\n\021ciphe" + + "rtext_crc32c\030\004 \001(\0132\033.google.protobuf.Int" + + "64Value\022!\n\031verified_plaintext_crc32c\030\005 \001" + + "(\010\0225\n-verified_additional_authenticated_" + + "data_crc32c\030\006 \001(\010\022>\n\020protection_level\030\007 " + + "\001(\0162$.google.cloud.kms.v1.ProtectionLeve" + + "l\"\261\001\n\017DecryptResponse\022\021\n\tplaintext\030\001 \001(\014" + + "\0225\n\020plaintext_crc32c\030\002 \001(\0132\033.google.prot" + + "obuf.Int64Value\022\024\n\014used_primary\030\003 \001(\010\022>\n" + + "\020protection_level\030\004 \001(\0162$.google.cloud.k" + + "ms.v1.ProtectionLevel\"\356\001\n\026AsymmetricSign" + + "Response\022\021\n\tsignature\030\001 \001(\014\0225\n\020signature" + + "_crc32c\030\002 \001(\0132\033.google.protobuf.Int64Val" + + "ue\022\036\n\026verified_digest_crc32c\030\003 \001(\010\022\014\n\004na" + + "me\030\004 \001(\t\022\034\n\024verified_data_crc32c\030\005 \001(\010\022>" + + "\n\020protection_level\030\006 \001(\0162$.google.cloud." + + "kms.v1.ProtectionLevel\"\311\001\n\031AsymmetricDec" + + "ryptResponse\022\021\n\tplaintext\030\001 \001(\014\0225\n\020plain" + + "text_crc32c\030\002 \001(\0132\033.google.protobuf.Int6" + + "4Value\022\"\n\032verified_ciphertext_crc32c\030\003 \001" + + "(\010\022>\n\020protection_level\030\004 \001(\0162$.google.cl" + + "oud.kms.v1.ProtectionLevel\"\273\001\n\017MacSignRe" + + "sponse\022\014\n\004name\030\001 \001(\t\022\013\n\003mac\030\002 \001(\014\022/\n\nmac" + + "_crc32c\030\003 \001(\0132\033.google.protobuf.Int64Val" + + "ue\022\034\n\024verified_data_crc32c\030\004 \001(\010\022>\n\020prot" + + "ection_level\030\005 \001(\0162$.google.cloud.kms.v1" + + ".ProtectionLevel\"\321\001\n\021MacVerifyResponse\022\014" + + "\n\004name\030\001 \001(\t\022\017\n\007success\030\002 \001(\010\022\034\n\024verifie" + + "d_data_crc32c\030\003 \001(\010\022\033\n\023verified_mac_crc3" + + "2c\030\004 \001(\010\022\"\n\032verified_success_integrity\030\005" + + " \001(\010\022>\n\020protection_level\030\006 \001(\0162$.google." + + "cloud.kms.v1.ProtectionLevel\"]\n\033Generate" + + "RandomBytesResponse\022\014\n\004data\030\001 \001(\014\0220\n\013dat" + + "a_crc32c\030\003 \001(\0132\033.google.protobuf.Int64Va" + + "lue\"H\n\006Digest\022\020\n\006sha256\030\001 \001(\014H\000\022\020\n\006sha38" + + "4\030\002 \001(\014H\000\022\020\n\006sha512\030\003 \001(\014H\000B\010\n\006digest\"@\n" + + "\020LocationMetadata\022\025\n\rhsm_available\030\001 \001(\010" + + "\022\025\n\rekm_available\030\002 \001(\0102\206+\n\024KeyManagemen" + + "tService\022\242\001\n\014ListKeyRings\022(.google.cloud" + + ".kms.v1.ListKeyRingsRequest\032).google.clo" + + "ud.kms.v1.ListKeyRingsResponse\"=\202\323\344\223\002.\022," + + "/v1/{parent=projects/*/locations/*}/keyR" + + "ings\332A\006parent\022\265\001\n\016ListCryptoKeys\022*.googl" + + "e.cloud.kms.v1.ListCryptoKeysRequest\032+.g" + + "oogle.cloud.kms.v1.ListCryptoKeysRespons" + + "e\"J\202\323\344\223\002;\0229/v1/{parent=projects/*/locati" + + "ons/*/keyRings/*}/cryptoKeys\332A\006parent\022\336\001" + + "\n\025ListCryptoKeyVersions\0221.google.cloud.k" + + "ms.v1.ListCryptoKeyVersionsRequest\0322.goo" + + "gle.cloud.kms.v1.ListCryptoKeyVersionsRe" + + "sponse\"^\202\323\344\223\002O\022M/v1/{parent=projects/*/l" + + "ocations/*/keyRings/*/cryptoKeys/*}/cryp" + + "toKeyVersions\332A\006parent\022\265\001\n\016ListImportJob" + + "s\022*.google.cloud.kms.v1.ListImportJobsRe" + + "quest\032+.google.cloud.kms.v1.ListImportJo" + + "bsResponse\"J\202\323\344\223\002;\0229/v1/{parent=projects" + + "/*/locations/*/keyRings/*}/importJobs\332A\006" + + "parent\022\217\001\n\nGetKeyRing\022&.google.cloud.kms" + + ".v1.GetKeyRingRequest\032\034.google.cloud.kms" + + ".v1.KeyRing\";\202\323\344\223\002.\022,/v1/{name=projects/" + + "*/locations/*/keyRings/*}\332A\004name\022\242\001\n\014Get" + + "CryptoKey\022(.google.cloud.kms.v1.GetCrypt" + + "oKeyRequest\032\036.google.cloud.kms.v1.Crypto" + + "Key\"H\202\323\344\223\002;\0229/v1/{name=projects/*/locati" + + "ons/*/keyRings/*/cryptoKeys/*}\332A\004name\022\313\001" + + "\n\023GetCryptoKeyVersion\022/.google.cloud.kms" + + ".v1.GetCryptoKeyVersionRequest\032%.google." + + "cloud.kms.v1.CryptoKeyVersion\"\\\202\323\344\223\002O\022M/" + + "v1/{name=projects/*/locations/*/keyRings" + + "/*/cryptoKeys/*/cryptoKeyVersions/*}\332A\004n" + + "ame\022\300\001\n\014GetPublicKey\022(.google.cloud.kms." + + "v1.GetPublicKeyRequest\032\036.google.cloud.km" + + "s.v1.PublicKey\"f\202\323\344\223\002Y\022W/v1/{name=projec" + + "ts/*/locations/*/keyRings/*/cryptoKeys/*" + + "/cryptoKeyVersions/*}/publicKey\332A\004name\022\242" + + "\001\n\014GetImportJob\022(.google.cloud.kms.v1.Ge" + + "tImportJobRequest\032\036.google.cloud.kms.v1." + + "ImportJob\"H\202\323\344\223\002;\0229/v1/{name=projects/*/" + + "locations/*/keyRings/*/importJobs/*}\332A\004n" + + "ame\022\266\001\n\rCreateKeyRing\022).google.cloud.kms" + + ".v1.CreateKeyRingRequest\032\034.google.cloud." + + "kms.v1.KeyRing\"\\\202\323\344\223\0028\",/v1/{parent=proj" + + "ects/*/locations/*}/keyRings:\010key_ring\332A" + + "\033parent,key_ring_id,key_ring\022\317\001\n\017CreateC" + + "ryptoKey\022+.google.cloud.kms.v1.CreateCry" + + "ptoKeyRequest\032\036.google.cloud.kms.v1.Cryp" + + "toKey\"o\202\323\344\223\002G\"9/v1/{parent=projects/*/lo" + + "cations/*/keyRings/*}/cryptoKeys:\ncrypto" + + "_key\332A\037parent,crypto_key_id,crypto_key\022\373" + + "\001\n\026CreateCryptoKeyVersion\0222.google.cloud" + + ".kms.v1.CreateCryptoKeyVersionRequest\032%." + + "google.cloud.kms.v1.CryptoKeyVersion\"\205\001\202" + + "\323\344\223\002c\"M/v1/{parent=projects/*/locations/" + + "*/keyRings/*/cryptoKeys/*}/cryptoKeyVers" + + "ions:\022crypto_key_version\332A\031parent,crypto" + + "_key_version\022\324\001\n\026ImportCryptoKeyVersion\022" + + "2.google.cloud.kms.v1.ImportCryptoKeyVer" + + "sionRequest\032%.google.cloud.kms.v1.Crypto" + + "KeyVersion\"_\202\323\344\223\002Y\"T/v1/{parent=projects" + + "/*/locations/*/keyRings/*/cryptoKeys/*}/" + + "cryptoKeyVersions:import:\001*\022\317\001\n\017CreateIm" + + "portJob\022+.google.cloud.kms.v1.CreateImpo" + + "rtJobRequest\032\036.google.cloud.kms.v1.Impor" + + "tJob\"o\202\323\344\223\002G\"9/v1/{parent=projects/*/loc" + + "ations/*/keyRings/*}/importJobs:\nimport_" + + "job\332A\037parent,import_job_id,import_job\022\321\001" + + "\n\017UpdateCryptoKey\022+.google.cloud.kms.v1." + + "UpdateCryptoKeyRequest\032\036.google.cloud.km" + + "s.v1.CryptoKey\"q\202\323\344\223\002R2D/v1/{crypto_key." + + "name=projects/*/locations/*/keyRings/*/c" + + "ryptoKeys/*}:\ncrypto_key\332A\026crypto_key,up" + + "date_mask\022\223\002\n\026UpdateCryptoKeyVersion\0222.g" + + "oogle.cloud.kms.v1.UpdateCryptoKeyVersio" + + "nRequest\032%.google.cloud.kms.v1.CryptoKey" + + "Version\"\235\001\202\323\344\223\002v2`/v1/{crypto_key_versio" + + "n.name=projects/*/locations/*/keyRings/*" + + "/cryptoKeys/*/cryptoKeyVersions/*}:\022cryp" + + "to_key_version\332A\036crypto_key_version,upda" + + "te_mask\022\362\001\n\035UpdateCryptoKeyPrimaryVersio" + + "n\0229.google.cloud.kms.v1.UpdateCryptoKeyP" + + "rimaryVersionRequest\032\036.google.cloud.kms." + + "v1.CryptoKey\"v\202\323\344\223\002S\"N/v1/{name=projects" + + "/*/locations/*/keyRings/*/cryptoKeys/*}:" + + "updatePrimaryVersion:\001*\332A\032name,crypto_ke" + + "y_version_id\022\336\001\n\027DestroyCryptoKeyVersion" + + "\0223.google.cloud.kms.v1.DestroyCryptoKeyV" + + "ersionRequest\032%.google.cloud.kms.v1.Cryp" + + "toKeyVersion\"g\202\323\344\223\002Z\"U/v1/{name=projects" + + "/*/locations/*/keyRings/*/cryptoKeys/*/c" + + "ryptoKeyVersions/*}:destroy:\001*\332A\004name\022\336\001" + + "\n\027RestoreCryptoKeyVersion\0223.google.cloud" + + ".kms.v1.RestoreCryptoKeyVersionRequest\032%" + + ".google.cloud.kms.v1.CryptoKeyVersion\"g\202" + + "\323\344\223\002Z\"U/v1/{name=projects/*/locations/*/" + + "keyRings/*/cryptoKeys/*/cryptoKeyVersion" + + "s/*}:restore:\001*\332A\004name\022\264\001\n\007Encrypt\022#.goo" + + "gle.cloud.kms.v1.EncryptRequest\032$.google" + + ".cloud.kms.v1.EncryptResponse\"^\202\323\344\223\002G\"B/" + + "v1/{name=projects/*/locations/*/keyRings" + + "/*/cryptoKeys/**}:encrypt:\001*\332A\016name,plai" + + "ntext\022\264\001\n\007Decrypt\022#.google.cloud.kms.v1." + + "DecryptRequest\032$.google.cloud.kms.v1.Dec" + + "ryptResponse\"^\202\323\344\223\002F\"A/v1/{name=projects" + + "/*/locations/*/keyRings/*/cryptoKeys/*}:" + + "decrypt:\001*\332A\017name,ciphertext\022\340\001\n\016Asymmet" + + "ricSign\022*.google.cloud.kms.v1.Asymmetric" + + "SignRequest\032+.google.cloud.kms.v1.Asymme" + + "tricSignResponse\"u\202\323\344\223\002a\"\\/v1/{name=proj" + + "ects/*/locations/*/keyRings/*/cryptoKeys" + + "/*/cryptoKeyVersions/*}:asymmetricSign:\001" + + "*\332A\013name,digest\022\360\001\n\021AsymmetricDecrypt\022-." + + "google.cloud.kms.v1.AsymmetricDecryptReq" + + "uest\032..google.cloud.kms.v1.AsymmetricDec" + + "ryptResponse\"|\202\323\344\223\002d\"_/v1/{name=projects" + + "/*/locations/*/keyRings/*/cryptoKeys/*/c" + + "ryptoKeyVersions/*}:asymmetricDecrypt:\001*" + + "\332A\017name,ciphertext\022\302\001\n\007MacSign\022#.google." + + "cloud.kms.v1.MacSignRequest\032$.google.clo" + + "ud.kms.v1.MacSignResponse\"l\202\323\344\223\002Z\"U/v1/{" + + "name=projects/*/locations/*/keyRings/*/c" + + "ryptoKeys/*/cryptoKeyVersions/*}:macSign" + + ":\001*\332A\tname,data\022\316\001\n\tMacVerify\022%.google.c" + + "loud.kms.v1.MacVerifyRequest\032&.google.cl" + + "oud.kms.v1.MacVerifyResponse\"r\202\323\344\223\002\\\"W/v" + + "1/{name=projects/*/locations/*/keyRings/" + + "*/cryptoKeys/*/cryptoKeyVersions/*}:macV" + + "erify:\001*\332A\rname,data,mac\022\347\001\n\023GenerateRan" + + "domBytes\022/.google.cloud.kms.v1.GenerateR" + + "andomBytesRequest\0320.google.cloud.kms.v1." + + "GenerateRandomBytesResponse\"m\202\323\344\223\002>\"9/v1" + + "/{location=projects/*/locations/*}:gener" + + "ateRandomBytes:\001*\332A&location,length_byte" + + "s,protection_level\032t\312A\027cloudkms.googleap" + + "is.com\322AWhttps://www.googleapis.com/auth" + + "/cloud-platform,https://www.googleapis.c" + + "om/auth/cloudkmsB\214\001\n\027com.google.cloud.km" + + "s.v1B\010KmsProtoP\001Z6google.golang.org/genp" + + "roto/googleapis/cloud/kms/v1;kms\370\001\001\252\002\023Go" + + "ogle.Cloud.Kms.V1\312\002\023Google\\Cloud\\Kms\\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.kms.v1.KmsResourcesProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + }); + internal_static_google_cloud_kms_v1_ListKeyRingsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_kms_v1_ListKeyRingsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_ListKeyRingsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_kms_v1_ListCryptoKeysRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_kms_v1_ListCryptoKeysRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_ListCryptoKeysRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "VersionView", "Filter", "OrderBy", }); + internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "View", "Filter", "OrderBy", }); + internal_static_google_cloud_kms_v1_ListImportJobsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_kms_v1_ListImportJobsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_ListImportJobsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_kms_v1_ListKeyRingsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_kms_v1_ListKeyRingsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_ListKeyRingsResponse_descriptor, + new java.lang.String[] { "KeyRings", "NextPageToken", "TotalSize", }); + internal_static_google_cloud_kms_v1_ListCryptoKeysResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_kms_v1_ListCryptoKeysResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_ListCryptoKeysResponse_descriptor, + new java.lang.String[] { "CryptoKeys", "NextPageToken", "TotalSize", }); + internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsResponse_descriptor, + new java.lang.String[] { "CryptoKeyVersions", "NextPageToken", "TotalSize", }); + internal_static_google_cloud_kms_v1_ListImportJobsResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_kms_v1_ListImportJobsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_ListImportJobsResponse_descriptor, + new java.lang.String[] { "ImportJobs", "NextPageToken", "TotalSize", }); + internal_static_google_cloud_kms_v1_GetKeyRingRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_kms_v1_GetKeyRingRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_GetKeyRingRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_kms_v1_GetCryptoKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_kms_v1_GetCryptoKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_GetCryptoKeyRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_kms_v1_GetCryptoKeyVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_kms_v1_GetCryptoKeyVersionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_GetCryptoKeyVersionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_kms_v1_GetPublicKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_kms_v1_GetPublicKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_GetPublicKeyRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_kms_v1_GetImportJobRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_kms_v1_GetImportJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_GetImportJobRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_kms_v1_CreateKeyRingRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_kms_v1_CreateKeyRingRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_CreateKeyRingRequest_descriptor, + new java.lang.String[] { "Parent", "KeyRingId", "KeyRing", }); + internal_static_google_cloud_kms_v1_CreateCryptoKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_kms_v1_CreateCryptoKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_CreateCryptoKeyRequest_descriptor, + new java.lang.String[] { "Parent", "CryptoKeyId", "CryptoKey", "SkipInitialVersionCreation", }); + internal_static_google_cloud_kms_v1_CreateCryptoKeyVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_kms_v1_CreateCryptoKeyVersionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_CreateCryptoKeyVersionRequest_descriptor, + new java.lang.String[] { "Parent", "CryptoKeyVersion", }); + internal_static_google_cloud_kms_v1_ImportCryptoKeyVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_kms_v1_ImportCryptoKeyVersionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_ImportCryptoKeyVersionRequest_descriptor, + new java.lang.String[] { "Parent", "CryptoKeyVersion", "Algorithm", "ImportJob", "RsaAesWrappedKey", "WrappedKeyMaterial", }); + internal_static_google_cloud_kms_v1_CreateImportJobRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_kms_v1_CreateImportJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_CreateImportJobRequest_descriptor, + new java.lang.String[] { "Parent", "ImportJobId", "ImportJob", }); + internal_static_google_cloud_kms_v1_UpdateCryptoKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_kms_v1_UpdateCryptoKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_UpdateCryptoKeyRequest_descriptor, + new java.lang.String[] { "CryptoKey", "UpdateMask", }); + internal_static_google_cloud_kms_v1_UpdateCryptoKeyVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_kms_v1_UpdateCryptoKeyVersionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_UpdateCryptoKeyVersionRequest_descriptor, + new java.lang.String[] { "CryptoKeyVersion", "UpdateMask", }); + internal_static_google_cloud_kms_v1_UpdateCryptoKeyPrimaryVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_kms_v1_UpdateCryptoKeyPrimaryVersionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_UpdateCryptoKeyPrimaryVersionRequest_descriptor, + new java.lang.String[] { "Name", "CryptoKeyVersionId", }); + internal_static_google_cloud_kms_v1_DestroyCryptoKeyVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_kms_v1_DestroyCryptoKeyVersionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_DestroyCryptoKeyVersionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_kms_v1_RestoreCryptoKeyVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_kms_v1_RestoreCryptoKeyVersionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_RestoreCryptoKeyVersionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_kms_v1_EncryptRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_kms_v1_EncryptRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_EncryptRequest_descriptor, + new java.lang.String[] { "Name", "Plaintext", "AdditionalAuthenticatedData", "PlaintextCrc32C", "AdditionalAuthenticatedDataCrc32C", }); + internal_static_google_cloud_kms_v1_DecryptRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_kms_v1_DecryptRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_DecryptRequest_descriptor, + new java.lang.String[] { "Name", "Ciphertext", "AdditionalAuthenticatedData", "CiphertextCrc32C", "AdditionalAuthenticatedDataCrc32C", }); + internal_static_google_cloud_kms_v1_AsymmetricSignRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_kms_v1_AsymmetricSignRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_AsymmetricSignRequest_descriptor, + new java.lang.String[] { "Name", "Digest", "DigestCrc32C", "Data", "DataCrc32C", }); + internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_descriptor, + new java.lang.String[] { "Name", "Ciphertext", "CiphertextCrc32C", }); + internal_static_google_cloud_kms_v1_MacSignRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_kms_v1_MacSignRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_MacSignRequest_descriptor, + new java.lang.String[] { "Name", "Data", "DataCrc32C", }); + internal_static_google_cloud_kms_v1_MacVerifyRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_kms_v1_MacVerifyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_MacVerifyRequest_descriptor, + new java.lang.String[] { "Name", "Data", "DataCrc32C", "Mac", "MacCrc32C", }); + internal_static_google_cloud_kms_v1_GenerateRandomBytesRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_kms_v1_GenerateRandomBytesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_GenerateRandomBytesRequest_descriptor, + new java.lang.String[] { "Location", "LengthBytes", "ProtectionLevel", }); + internal_static_google_cloud_kms_v1_EncryptResponse_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_kms_v1_EncryptResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_EncryptResponse_descriptor, + new java.lang.String[] { "Name", "Ciphertext", "CiphertextCrc32C", "VerifiedPlaintextCrc32C", "VerifiedAdditionalAuthenticatedDataCrc32C", "ProtectionLevel", }); + internal_static_google_cloud_kms_v1_DecryptResponse_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_kms_v1_DecryptResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_DecryptResponse_descriptor, + new java.lang.String[] { "Plaintext", "PlaintextCrc32C", "UsedPrimary", "ProtectionLevel", }); + internal_static_google_cloud_kms_v1_AsymmetricSignResponse_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_kms_v1_AsymmetricSignResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_AsymmetricSignResponse_descriptor, + new java.lang.String[] { "Signature", "SignatureCrc32C", "VerifiedDigestCrc32C", "Name", "VerifiedDataCrc32C", "ProtectionLevel", }); + internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_descriptor, + new java.lang.String[] { "Plaintext", "PlaintextCrc32C", "VerifiedCiphertextCrc32C", "ProtectionLevel", }); + internal_static_google_cloud_kms_v1_MacSignResponse_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_kms_v1_MacSignResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_MacSignResponse_descriptor, + new java.lang.String[] { "Name", "Mac", "MacCrc32C", "VerifiedDataCrc32C", "ProtectionLevel", }); + internal_static_google_cloud_kms_v1_MacVerifyResponse_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_kms_v1_MacVerifyResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_MacVerifyResponse_descriptor, + new java.lang.String[] { "Name", "Success", "VerifiedDataCrc32C", "VerifiedMacCrc32C", "VerifiedSuccessIntegrity", "ProtectionLevel", }); + internal_static_google_cloud_kms_v1_GenerateRandomBytesResponse_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_kms_v1_GenerateRandomBytesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_GenerateRandomBytesResponse_descriptor, + new java.lang.String[] { "Data", "DataCrc32C", }); + internal_static_google_cloud_kms_v1_Digest_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_kms_v1_Digest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_Digest_descriptor, + new java.lang.String[] { "Sha256", "Sha384", "Sha512", "Digest", }); + internal_static_google_cloud_kms_v1_LocationMetadata_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_cloud_kms_v1_LocationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_LocationMetadata_descriptor, + new java.lang.String[] { "HsmAvailable", "EkmAvailable", }); + 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.resourceReference); + 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.kms.v1.KmsResourcesProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsResourcesProto.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsResourcesProto.java new file mode 100644 index 000000000000..2848396d01dd --- /dev/null +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsResourcesProto.java @@ -0,0 +1,318 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/resources.proto + +package com.google.cloud.kms.v1; + +public final class KmsResourcesProto { + private KmsResourcesProto() {} + 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_kms_v1_KeyRing_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_KeyRing_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_CryptoKey_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_CryptoKey_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_CryptoKey_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_CryptoKey_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_KeyOperationAttestation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_KeyOperationAttestation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_KeyOperationAttestation_CertificateChains_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_KeyOperationAttestation_CertificateChains_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_CryptoKeyVersion_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_CryptoKeyVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_PublicKey_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_PublicKey_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_ImportJob_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_ImportJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_ImportJob_WrappingPublicKey_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_ImportJob_WrappingPublicKey_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_ExternalProtectionLevelOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_ExternalProtectionLevelOptions_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/kms/v1/resources.proto\022\023g" + + "oogle.cloud.kms.v1\032\037google/api/field_beh" + + "avior.proto\032\031google/api/resource.proto\032\036" + + "google/protobuf/duration.proto\032\037google/p" + + "rotobuf/timestamp.proto\032\036google/protobuf" + + "/wrappers.proto\"\265\001\n\007KeyRing\022\021\n\004name\030\001 \001(" + + "\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003:a\352A^\n\037cloudkms.goog" + + "leapis.com/KeyRing\022;projects/{project}/l" + + "ocations/{location}/keyRings/{key_ring}\"" + + "\225\007\n\tCryptoKey\022\021\n\004name\030\001 \001(\tB\003\340A\003\022;\n\007prim" + + "ary\030\002 \001(\0132%.google.cloud.kms.v1.CryptoKe" + + "yVersionB\003\340A\003\022E\n\007purpose\030\003 \001(\0162/.google." + + "cloud.kms.v1.CryptoKey.CryptoKeyPurposeB" + + "\003\340A\005\0224\n\013create_time\030\005 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0226\n\022next_rotation_time" + + "\030\007 \001(\0132\032.google.protobuf.Timestamp\0224\n\017ro" + + "tation_period\030\010 \001(\0132\031.google.protobuf.Du" + + "rationH\000\022G\n\020version_template\030\013 \001(\0132-.goo" + + "gle.cloud.kms.v1.CryptoKeyVersionTemplat" + + "e\022:\n\006labels\030\n \003(\0132*.google.cloud.kms.v1." + + "CryptoKey.LabelsEntry\022\030\n\013import_only\030\r \001" + + "(\010B\003\340A\005\022B\n\032destroy_scheduled_duration\030\016 " + + "\001(\0132\031.google.protobuf.DurationB\003\340A\005\022%\n\022c" + + "rypto_key_backend\030\017 \001(\tB\t\340A\005\372A\003\n\001*\032-\n\013La" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"\201\001\n\020CryptoKeyPurpose\022\"\n\036CRYPTO_KEY_PUR" + + "POSE_UNSPECIFIED\020\000\022\023\n\017ENCRYPT_DECRYPT\020\001\022" + + "\023\n\017ASYMMETRIC_SIGN\020\005\022\026\n\022ASYMMETRIC_DECRY" + + "PT\020\006\022\007\n\003MAC\020\t:{\352Ax\n!cloudkms.googleapis." + + "com/CryptoKey\022Sprojects/{project}/locati" + + "ons/{location}/keyRings/{key_ring}/crypt" + + "oKeys/{crypto_key}B\023\n\021rotation_schedule\"" + + "\263\001\n\030CryptoKeyVersionTemplate\022>\n\020protecti" + + "on_level\030\001 \001(\0162$.google.cloud.kms.v1.Pro" + + "tectionLevel\022W\n\talgorithm\030\003 \001(\0162?.google" + + ".cloud.kms.v1.CryptoKeyVersion.CryptoKey" + + "VersionAlgorithmB\003\340A\002\"\261\003\n\027KeyOperationAt" + + "testation\022S\n\006format\030\004 \001(\0162>.google.cloud" + + ".kms.v1.KeyOperationAttestation.Attestat" + + "ionFormatB\003\340A\003\022\024\n\007content\030\005 \001(\014B\003\340A\003\022X\n\013" + + "cert_chains\030\006 \001(\0132>.google.cloud.kms.v1." + + "KeyOperationAttestation.CertificateChain" + + "sB\003\340A\003\032d\n\021CertificateChains\022\024\n\014cavium_ce" + + "rts\030\001 \003(\t\022\031\n\021google_card_certs\030\002 \003(\t\022\036\n\026" + + "google_partition_certs\030\003 \003(\t\"k\n\021Attestat" + + "ionFormat\022\"\n\036ATTESTATION_FORMAT_UNSPECIF" + + "IED\020\000\022\030\n\024CAVIUM_V1_COMPRESSED\020\003\022\030\n\024CAVIU" + + "M_V2_COMPRESSED\020\004\"\322\020\n\020CryptoKeyVersion\022\021" + + "\n\004name\030\001 \001(\tB\003\340A\003\022J\n\005state\030\003 \001(\0162;.googl" + + "e.cloud.kms.v1.CryptoKeyVersion.CryptoKe" + + "yVersionState\022C\n\020protection_level\030\007 \001(\0162" + + "$.google.cloud.kms.v1.ProtectionLevelB\003\340" + + "A\003\022W\n\talgorithm\030\n \001(\0162?.google.cloud.kms" + + ".v1.CryptoKeyVersion.CryptoKeyVersionAlg" + + "orithmB\003\340A\003\022F\n\013attestation\030\010 \001(\0132,.googl" + + "e.cloud.kms.v1.KeyOperationAttestationB\003" + + "\340A\003\0224\n\013create_time\030\004 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\0226\n\rgenerate_time\030\013 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0225\n\014des" + + "troy_time\030\005 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\022;\n\022destroy_event_time\030\006 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022\027\n\nimport_" + + "job\030\016 \001(\tB\003\340A\003\0224\n\013import_time\030\017 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\022\"\n\025import_f" + + "ailure_reason\030\020 \001(\tB\003\340A\003\022^\n!external_pro" + + "tection_level_options\030\021 \001(\01323.google.clo" + + "ud.kms.v1.ExternalProtectionLevelOptions" + + "\022\036\n\021reimport_eligible\030\022 \001(\010B\003\340A\003\"\347\006\n\031Cry" + + "ptoKeyVersionAlgorithm\022,\n(CRYPTO_KEY_VER" + + "SION_ALGORITHM_UNSPECIFIED\020\000\022\037\n\033GOOGLE_S" + + "YMMETRIC_ENCRYPTION\020\001\022\034\n\030RSA_SIGN_PSS_20" + + "48_SHA256\020\002\022\034\n\030RSA_SIGN_PSS_3072_SHA256\020" + + "\003\022\034\n\030RSA_SIGN_PSS_4096_SHA256\020\004\022\034\n\030RSA_S" + + "IGN_PSS_4096_SHA512\020\017\022\036\n\032RSA_SIGN_PKCS1_" + + "2048_SHA256\020\005\022\036\n\032RSA_SIGN_PKCS1_3072_SHA" + + "256\020\006\022\036\n\032RSA_SIGN_PKCS1_4096_SHA256\020\007\022\036\n" + + "\032RSA_SIGN_PKCS1_4096_SHA512\020\020\022\033\n\027RSA_SIG" + + "N_RAW_PKCS1_2048\020\034\022\033\n\027RSA_SIGN_RAW_PKCS1" + + "_3072\020\035\022\033\n\027RSA_SIGN_RAW_PKCS1_4096\020\036\022 \n\034" + + "RSA_DECRYPT_OAEP_2048_SHA256\020\010\022 \n\034RSA_DE" + + "CRYPT_OAEP_3072_SHA256\020\t\022 \n\034RSA_DECRYPT_" + + "OAEP_4096_SHA256\020\n\022 \n\034RSA_DECRYPT_OAEP_4" + + "096_SHA512\020\021\022\036\n\032RSA_DECRYPT_OAEP_2048_SH" + + "A1\020%\022\036\n\032RSA_DECRYPT_OAEP_3072_SHA1\020&\022\036\n\032" + + "RSA_DECRYPT_OAEP_4096_SHA1\020\'\022\027\n\023EC_SIGN_" + + "P256_SHA256\020\014\022\027\n\023EC_SIGN_P384_SHA384\020\r\022\034" + + "\n\030EC_SIGN_SECP256K1_SHA256\020\037\022\017\n\013HMAC_SHA" + + "256\020 \022\r\n\tHMAC_SHA1\020!\022\017\n\013HMAC_SHA384\020\"\022\017\n" + + "\013HMAC_SHA512\020#\022\017\n\013HMAC_SHA224\020$\022!\n\035EXTER" + + "NAL_SYMMETRIC_ENCRYPTION\020\022\"\301\001\n\025CryptoKey" + + "VersionState\022(\n$CRYPTO_KEY_VERSION_STATE" + + "_UNSPECIFIED\020\000\022\026\n\022PENDING_GENERATION\020\005\022\013" + + "\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002\022\r\n\tDESTROYED\020\003" + + "\022\025\n\021DESTROY_SCHEDULED\020\004\022\022\n\016PENDING_IMPOR" + + "T\020\006\022\021\n\rIMPORT_FAILED\020\007\"I\n\024CryptoKeyVersi" + + "onView\022\'\n#CRYPTO_KEY_VERSION_VIEW_UNSPEC" + + "IFIED\020\000\022\010\n\004FULL\020\001:\252\001\352A\246\001\n(cloudkms.googl" + + "eapis.com/CryptoKeyVersion\022zprojects/{pr" + + "oject}/locations/{location}/keyRings/{ke" + + "y_ring}/cryptoKeys/{crypto_key}/cryptoKe" + + "yVersions/{crypto_key_version}\"\234\003\n\tPubli" + + "cKey\022\013\n\003pem\030\001 \001(\t\022R\n\talgorithm\030\002 \001(\0162?.g" + + "oogle.cloud.kms.v1.CryptoKeyVersion.Cryp" + + "toKeyVersionAlgorithm\022/\n\npem_crc32c\030\003 \001(" + + "\0132\033.google.protobuf.Int64Value\022\014\n\004name\030\004" + + " \001(\t\022>\n\020protection_level\030\005 \001(\0162$.google." + + "cloud.kms.v1.ProtectionLevel:\256\001\352A\252\001\n!clo" + + "udkms.googleapis.com/PublicKey\022\204\001project" + + "s/{project}/locations/{location}/keyRing" + + "s/{key_ring}/cryptoKeys/{crypto_key}/cry" + + "ptoKeyVersions/{crypto_key_version}/publ" + + "icKey\"\333\007\n\tImportJob\022\021\n\004name\030\001 \001(\tB\003\340A\003\022J" + + "\n\rimport_method\030\002 \001(\0162+.google.cloud.kms" + + ".v1.ImportJob.ImportMethodB\006\340A\002\340A\005\022F\n\020pr" + + "otection_level\030\t \001(\0162$.google.cloud.kms." + + "v1.ProtectionLevelB\006\340A\002\340A\005\0224\n\013create_tim" + + "e\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0226\n\rgenerate_time\030\004 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\0224\n\013expire_time\030\005 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\022:\n\021expire" + + "_event_time\030\n \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\022A\n\005state\030\006 \001(\0162-.google.cloud" + + ".kms.v1.ImportJob.ImportJobStateB\003\340A\003\022I\n" + + "\npublic_key\030\007 \001(\01320.google.cloud.kms.v1." + + "ImportJob.WrappingPublicKeyB\003\340A\003\022F\n\013atte" + + "station\030\010 \001(\0132,.google.cloud.kms.v1.KeyO" + + "perationAttestationB\003\340A\003\032 \n\021WrappingPubl" + + "icKey\022\013\n\003pem\030\001 \001(\t\"m\n\014ImportMethod\022\035\n\031IM" + + "PORT_METHOD_UNSPECIFIED\020\000\022\036\n\032RSA_OAEP_30" + + "72_SHA1_AES_256\020\001\022\036\n\032RSA_OAEP_4096_SHA1_" + + "AES_256\020\002\"c\n\016ImportJobState\022 \n\034IMPORT_JO" + + "B_STATE_UNSPECIFIED\020\000\022\026\n\022PENDING_GENERAT" + + "ION\020\001\022\n\n\006ACTIVE\020\002\022\013\n\007EXPIRED\020\003:{\352Ax\n!clo" + + "udkms.googleapis.com/ImportJob\022Sprojects" + + "/{project}/locations/{location}/keyRings" + + "/{key_ring}/importJobs/{import_job}\"[\n\036E" + + "xternalProtectionLevelOptions\022\030\n\020externa" + + "l_key_uri\030\001 \001(\t\022\037\n\027ekm_connection_key_pa" + + "th\030\002 \001(\t*j\n\017ProtectionLevel\022 \n\034PROTECTIO" + + "N_LEVEL_UNSPECIFIED\020\000\022\014\n\010SOFTWARE\020\001\022\007\n\003H" + + "SM\020\002\022\014\n\010EXTERNAL\020\003\022\020\n\014EXTERNAL_VPC\020\004B\225\001\n" + + "\027com.google.cloud.kms.v1B\021KmsResourcesPr" + + "otoP\001Z6google.golang.org/genproto/google" + + "apis/cloud/kms/v1;kms\370\001\001\252\002\023Google.Cloud." + + "Kms.V1\312\002\023Google\\Cloud\\Kms\\V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + }); + internal_static_google_cloud_kms_v1_KeyRing_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_kms_v1_KeyRing_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_KeyRing_descriptor, + new java.lang.String[] { "Name", "CreateTime", }); + internal_static_google_cloud_kms_v1_CryptoKey_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_kms_v1_CryptoKey_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_CryptoKey_descriptor, + new java.lang.String[] { "Name", "Primary", "Purpose", "CreateTime", "NextRotationTime", "RotationPeriod", "VersionTemplate", "Labels", "ImportOnly", "DestroyScheduledDuration", "CryptoKeyBackend", "RotationSchedule", }); + internal_static_google_cloud_kms_v1_CryptoKey_LabelsEntry_descriptor = + internal_static_google_cloud_kms_v1_CryptoKey_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_kms_v1_CryptoKey_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_CryptoKey_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_descriptor, + new java.lang.String[] { "ProtectionLevel", "Algorithm", }); + internal_static_google_cloud_kms_v1_KeyOperationAttestation_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_kms_v1_KeyOperationAttestation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_KeyOperationAttestation_descriptor, + new java.lang.String[] { "Format", "Content", "CertChains", }); + internal_static_google_cloud_kms_v1_KeyOperationAttestation_CertificateChains_descriptor = + internal_static_google_cloud_kms_v1_KeyOperationAttestation_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_kms_v1_KeyOperationAttestation_CertificateChains_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_KeyOperationAttestation_CertificateChains_descriptor, + new java.lang.String[] { "CaviumCerts", "GoogleCardCerts", "GooglePartitionCerts", }); + internal_static_google_cloud_kms_v1_CryptoKeyVersion_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_kms_v1_CryptoKeyVersion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_CryptoKeyVersion_descriptor, + new java.lang.String[] { "Name", "State", "ProtectionLevel", "Algorithm", "Attestation", "CreateTime", "GenerateTime", "DestroyTime", "DestroyEventTime", "ImportJob", "ImportTime", "ImportFailureReason", "ExternalProtectionLevelOptions", "ReimportEligible", }); + internal_static_google_cloud_kms_v1_PublicKey_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_kms_v1_PublicKey_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_PublicKey_descriptor, + new java.lang.String[] { "Pem", "Algorithm", "PemCrc32C", "Name", "ProtectionLevel", }); + internal_static_google_cloud_kms_v1_ImportJob_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_kms_v1_ImportJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_ImportJob_descriptor, + new java.lang.String[] { "Name", "ImportMethod", "ProtectionLevel", "CreateTime", "GenerateTime", "ExpireTime", "ExpireEventTime", "State", "PublicKey", "Attestation", }); + internal_static_google_cloud_kms_v1_ImportJob_WrappingPublicKey_descriptor = + internal_static_google_cloud_kms_v1_ImportJob_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_kms_v1_ImportJob_WrappingPublicKey_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_ImportJob_WrappingPublicKey_descriptor, + new java.lang.String[] { "Pem", }); + internal_static_google_cloud_kms_v1_ExternalProtectionLevelOptions_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_kms_v1_ExternalProtectionLevelOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_ExternalProtectionLevelOptions_descriptor, + new java.lang.String[] { "ExternalKeyUri", "EkmConnectionKeyPath", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsRequest.java similarity index 72% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsRequest.java index b89e71ef5962..08c542852eab 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsRequest.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for
  * [KeyManagementService.ListCryptoKeyVersions][google.cloud.kms.v1.KeyManagementService.ListCryptoKeyVersions].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.ListCryptoKeyVersionsRequest}
  */
-public final class ListCryptoKeyVersionsRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListCryptoKeyVersionsRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.ListCryptoKeyVersionsRequest)
     ListCryptoKeyVersionsRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListCryptoKeyVersionsRequest.newBuilder() to construct.
   private ListCryptoKeyVersionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListCryptoKeyVersionsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -48,45 +30,39 @@ private ListCryptoKeyVersionsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListCryptoKeyVersionsRequest();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsRequest_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest.class,
-            com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest.Builder.class);
+            com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest.class, com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
-   *
-   *
    * 
    * Required. The resource name of the
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] to list, in the format
    * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
    * 
* - * - * string parent = 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,33 +71,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 resource name of the
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] to list, in the format
    * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
    * 
* - * - * string parent = 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 { @@ -132,8 +106,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. Optional limit on the number of
    * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] to include in the
@@ -145,7 +117,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -156,15 +127,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. Optional pagination token, returned earlier via
    * [ListCryptoKeyVersionsResponse.next_page_token][google.cloud.kms.v1.ListCryptoKeyVersionsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -173,30 +141,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. Optional pagination token, returned earlier via
    * [ListCryptoKeyVersionsResponse.next_page_token][google.cloud.kms.v1.ListCryptoKeyVersionsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -207,46 +175,33 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int VIEW_FIELD_NUMBER = 4; private int view_; /** - * - * *
    * The fields to include in the response.
    * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView view = 4; - * * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
    * The fields to include in the response.
    * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView view = 4; - * * @return The view. */ - @java.lang.Override - public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView getView() { + @java.lang.Override public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView getView() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView result = - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.valueOf(view_); - return result == null - ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.UNRECOGNIZED - : result; + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView result = com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.valueOf(view_); + return result == null ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.UNRECOGNIZED : result; } public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** - * - * *
    * Optional. Only include resources that match the filter in the response. For
    * more information, see
@@ -255,7 +210,6 @@ public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView getView() {
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -264,15 +218,14 @@ 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; } } /** - * - * *
    * Optional. Only include resources that match the filter in the response. For
    * more information, see
@@ -281,15 +234,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -300,8 +254,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 6; private volatile java.lang.Object orderBy_; /** - * - * *
    * Optional. Specify how the results should be sorted. If not specified, the
    * results will be sorted in the default order. For more information, see
@@ -310,7 +262,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ @java.lang.Override @@ -319,15 +270,14 @@ 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; } } /** - * - * *
    * Optional. Specify how the results should be sorted. If not specified, the
    * results will be sorted in the default order. For more information, see
@@ -336,15 +286,16 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -353,7 +304,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -365,7 +315,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -375,10 +326,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - if (view_ - != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView - .CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED - .getNumber()) { + if (view_ != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(4, view_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { @@ -400,16 +348,15 @@ 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_); } - if (view_ - != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView - .CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, view_); + if (view_ != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, view_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); @@ -425,20 +372,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.kms.v1.ListCryptoKeyVersionsRequest)) { return super.equals(obj); } - com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest other = - (com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest) obj; + com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest other = (com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (view_ != other.view_) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -468,103 +419,96 @@ public int hashCode() { } public static com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest 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.kms.v1.ListCryptoKeyVersionsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.ListCryptoKeyVersionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest parseFrom( 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.kms.v1.ListCryptoKeyVersionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest parseFrom( - byte[] data, com.google.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.kms.v1.ListCryptoKeyVersionsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.ListCryptoKeyVersionsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.ListCryptoKeyVersionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.ListCryptoKeyVersionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.ListCryptoKeyVersionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for
    * [KeyManagementService.ListCryptoKeyVersions][google.cloud.kms.v1.KeyManagementService.ListCryptoKeyVersions].
@@ -572,32 +516,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.ListCryptoKeyVersionsRequest}
    */
-  public static final class Builder extends 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.kms.v1.ListCryptoKeyVersionsRequest)
       com.google.cloud.kms.v1.ListCryptoKeyVersionsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsRequest_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest.class,
-              com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest.Builder.class);
+              com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest.class, com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest.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();
@@ -617,9 +562,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -638,8 +583,7 @@ public com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest buildPartial() {
-      com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest result =
-          new com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest(this);
+      com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest result = new com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest(this);
       result.parent_ = parent_;
       result.pageSize_ = pageSize_;
       result.pageToken_ = pageToken_;
@@ -654,39 +598,38 @@ public com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest 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.kms.v1.ListCryptoKeyVersionsRequest) {
-        return mergeFrom((com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest) other);
+        return mergeFrom((com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -694,8 +637,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest other) {
-      if (other == com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -744,49 +686,42 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 16:
-              {
-                pageSize_ = input.readInt32();
-
-                break;
-              } // case 16
-            case 26:
-              {
-                pageToken_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 26
-            case 32:
-              {
-                view_ = input.readEnum();
-
-                break;
-              } // case 32
-            case 42:
-              {
-                filter_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 42
-            case 50:
-              {
-                orderBy_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 50
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 16: {
+              pageSize_ = input.readInt32();
+
+              break;
+            } // case 16
+            case 26: {
+              pageToken_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 26
+            case 32: {
+              view_ = input.readEnum();
+
+              break;
+            } // case 32
+            case 42: {
+              filter_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 42
+            case 50: {
+              orderBy_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 50
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -799,24 +734,20 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to list, in the format
      * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
      * 
* - * - * string parent = 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; @@ -825,25 +756,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to list, in the format
      * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
      * 
* - * - * string parent = 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 { @@ -851,82 +779,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to list, in the format
      * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
      * 
* - * - * 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 resource name of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to list, in the format
      * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
      * 
* - * - * string 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 resource name of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to list, in the format
      * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
      * 
* - * - * 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_ ; /** - * - * *
      * Optional. Optional limit on the number of
      * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] to include in the
@@ -938,7 +851,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -946,8 +858,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Optional limit on the number of
      * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] to include in the
@@ -959,19 +869,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Optional limit on the number of
      * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] to include in the
@@ -983,11 +890,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -995,21 +901,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. Optional pagination token, returned earlier via
      * [ListCryptoKeyVersionsResponse.next_page_token][google.cloud.kms.v1.ListCryptoKeyVersionsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1018,22 +922,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. Optional pagination token, returned earlier via
      * [ListCryptoKeyVersionsResponse.next_page_token][google.cloud.kms.v1.ListCryptoKeyVersionsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1041,64 +944,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. Optional pagination token, returned earlier via
      * [ListCryptoKeyVersionsResponse.next_page_token][google.cloud.kms.v1.ListCryptoKeyVersionsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Optional pagination token, returned earlier via
      * [ListCryptoKeyVersionsResponse.next_page_token][google.cloud.kms.v1.ListCryptoKeyVersionsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. Optional pagination token, returned earlier via
      * [ListCryptoKeyVersionsResponse.next_page_token][google.cloud.kms.v1.ListCryptoKeyVersionsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + 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; @@ -1106,67 +1002,51 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private int view_ = 0; /** - * - * *
      * The fields to include in the response.
      * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView view = 4; - * * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
      * The fields to include in the response.
      * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView view = 4; - * * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ public Builder setViewValue(int value) { - + view_ = value; onChanged(); return this; } /** - * - * *
      * The fields to include in the response.
      * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView view = 4; - * * @return The view. */ @java.lang.Override public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView getView() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView result = - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.valueOf(view_); - return result == null - ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.UNRECOGNIZED - : result; + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView result = com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.valueOf(view_); + return result == null ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.UNRECOGNIZED : result; } /** - * - * *
      * The fields to include in the response.
      * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView view = 4; - * * @param value The view to set. * @return This builder for chaining. */ @@ -1174,24 +1054,21 @@ public Builder setView(com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersion if (value == null) { throw new NullPointerException(); } - + view_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The fields to include in the response.
      * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView view = 4; - * * @return This builder for chaining. */ public Builder clearView() { - + view_ = 0; onChanged(); return this; @@ -1199,8 +1076,6 @@ public Builder clearView() { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Only include resources that match the filter in the response. For
      * more information, see
@@ -1209,13 +1084,13 @@ public Builder clearView() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1224,8 +1099,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Only include resources that match the filter in the response. For
      * more information, see
@@ -1234,14 +1107,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1249,8 +1123,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Only include resources that match the filter in the response. For
      * more information, see
@@ -1259,22 +1131,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. Only include resources that match the filter in the response. For
      * more information, see
@@ -1283,18 +1153,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Optional. Only include resources that match the filter in the response. For
      * more information, see
@@ -1303,16 +1170,16 @@ public Builder clearFilter() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1320,8 +1187,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Optional. Specify how the results should be sorted. If not specified, the
      * results will be sorted in the default order. For more information, see
@@ -1330,13 +1195,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1345,8 +1210,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Optional. Specify how the results should be sorted. If not specified, the
      * results will be sorted in the default order. For more information, see
@@ -1355,14 +1218,15 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1370,8 +1234,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Optional. Specify how the results should be sorted. If not specified, the
      * results will be sorted in the default order. For more information, see
@@ -1380,22 +1242,20 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. Specify how the results should be sorted. If not specified, the
      * results will be sorted in the default order. For more information, see
@@ -1404,18 +1264,15 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Optional. Specify how the results should be sorted. If not specified, the
      * results will be sorted in the default order. For more information, see
@@ -1424,23 +1281,23 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1450,12 +1307,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.ListCryptoKeyVersionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.ListCryptoKeyVersionsRequest) private static final com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest(); } @@ -1464,27 +1321,27 @@ public static com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCryptoKeyVersionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCryptoKeyVersionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1499,4 +1356,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsRequestOrBuilder.java similarity index 76% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsRequestOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsRequestOrBuilder.java index 5e52ab86631f..d3f557aca44a 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsRequestOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsRequestOrBuilder.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/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface ListCryptoKeyVersionsRequestOrBuilder - extends +public interface ListCryptoKeyVersionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.ListCryptoKeyVersionsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] to list, in the format
    * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
    * 
* - * - * string parent = 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 resource name of the
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] to list, in the format
    * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. Optional limit on the number of
    * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] to include in the
@@ -70,66 +43,52 @@ public interface ListCryptoKeyVersionsRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. Optional pagination token, returned earlier via
    * [ListCryptoKeyVersionsResponse.next_page_token][google.cloud.kms.v1.ListCryptoKeyVersionsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. Optional pagination token, returned earlier via
    * [ListCryptoKeyVersionsResponse.next_page_token][google.cloud.kms.v1.ListCryptoKeyVersionsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The fields to include in the response.
    * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView view = 4; - * * @return The enum numeric value on the wire for view. */ int getViewValue(); /** - * - * *
    * The fields to include in the response.
    * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView view = 4; - * * @return The view. */ com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView getView(); /** - * - * *
    * Optional. Only include resources that match the filter in the response. For
    * more information, see
@@ -138,13 +97,10 @@ public interface ListCryptoKeyVersionsRequestOrBuilder
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. Only include resources that match the filter in the response. For
    * more information, see
@@ -153,14 +109,12 @@ public interface ListCryptoKeyVersionsRequestOrBuilder
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Optional. Specify how the results should be sorted. If not specified, the
    * results will be sorted in the default order. For more information, see
@@ -169,13 +123,10 @@ public interface ListCryptoKeyVersionsRequestOrBuilder
    * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Optional. Specify how the results should be sorted. If not specified, the
    * results will be sorted in the default order. For more information, see
@@ -184,8 +135,8 @@ public interface ListCryptoKeyVersionsRequestOrBuilder
    * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsResponse.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsResponse.java similarity index 74% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsResponse.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsResponse.java index 93301ce5faec..806608aab6a0 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsResponse.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsResponse.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Response message for
  * [KeyManagementService.ListCryptoKeyVersions][google.cloud.kms.v1.KeyManagementService.ListCryptoKeyVersions].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.ListCryptoKeyVersionsResponse}
  */
-public final class ListCryptoKeyVersionsResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListCryptoKeyVersionsResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.ListCryptoKeyVersionsResponse)
     ListCryptoKeyVersionsResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListCryptoKeyVersionsResponse.newBuilder() to construct.
   private ListCryptoKeyVersionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListCryptoKeyVersionsResponse() {
     cryptoKeyVersions_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -45,35 +27,32 @@ private ListCryptoKeyVersionsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListCryptoKeyVersionsResponse();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsResponse_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse.class,
-            com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse.Builder.class);
+            com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse.class, com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse.Builder.class);
   }
 
   public static final int CRYPTO_KEY_VERSIONS_FIELD_NUMBER = 1;
   private java.util.List cryptoKeyVersions_;
   /**
-   *
-   *
    * 
    * The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
    * 
@@ -85,8 +64,6 @@ public java.util.List getCryptoKeyVers return cryptoKeyVersions_; } /** - * - * *
    * The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
    * 
@@ -94,13 +71,11 @@ public java.util.List getCryptoKeyVers * repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCryptoKeyVersionsOrBuilderList() { return cryptoKeyVersions_; } /** - * - * *
    * The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
    * 
@@ -112,8 +87,6 @@ public int getCryptoKeyVersionsCount() { return cryptoKeyVersions_.size(); } /** - * - * *
    * The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
    * 
@@ -125,8 +98,6 @@ public com.google.cloud.kms.v1.CryptoKeyVersion getCryptoKeyVersions(int index) return cryptoKeyVersions_.get(index); } /** - * - * *
    * The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
    * 
@@ -142,8 +113,6 @@ public com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder getCryptoKeyVersionsOrB public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCryptoKeyVersionsRequest.page_token][google.cloud.kms.v1.ListCryptoKeyVersionsRequest.page_token]
@@ -151,7 +120,6 @@ public com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder getCryptoKeyVersionsOrB
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -160,15 +128,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCryptoKeyVersionsRequest.page_token][google.cloud.kms.v1.ListCryptoKeyVersionsRequest.page_token]
@@ -176,15 +143,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -195,8 +163,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int TOTAL_SIZE_FIELD_NUMBER = 3; private int totalSize_; /** - * - * *
    * The total number of
    * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] that matched the
@@ -204,7 +170,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
    * 
* * int32 total_size = 3; - * * @return The totalSize. */ @java.lang.Override @@ -213,7 +178,6 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,7 +189,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < cryptoKeyVersions_.size(); i++) { output.writeMessage(1, cryptoKeyVersions_.get(i)); } @@ -245,14 +210,15 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < cryptoKeyVersions_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, cryptoKeyVersions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, cryptoKeyVersions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, totalSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -262,17 +228,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.kms.v1.ListCryptoKeyVersionsResponse)) { return super.equals(obj); } - com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse other = - (com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse) obj; - - if (!getCryptoKeyVersionsList().equals(other.getCryptoKeyVersionsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (getTotalSize() != other.getTotalSize()) return false; + com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse other = (com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse) obj; + + if (!getCryptoKeyVersionsList() + .equals(other.getCryptoKeyVersionsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (getTotalSize() + != other.getTotalSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -298,104 +266,96 @@ public int hashCode() { } public static com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse 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.kms.v1.ListCryptoKeyVersionsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.ListCryptoKeyVersionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse parseFrom( 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.kms.v1.ListCryptoKeyVersionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse parseFrom( - byte[] data, com.google.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.kms.v1.ListCryptoKeyVersionsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.ListCryptoKeyVersionsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.ListCryptoKeyVersionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.ListCryptoKeyVersionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.ListCryptoKeyVersionsResponse prototype) { + public static Builder newBuilder(com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for
    * [KeyManagementService.ListCryptoKeyVersions][google.cloud.kms.v1.KeyManagementService.ListCryptoKeyVersions].
@@ -403,32 +363,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.ListCryptoKeyVersionsResponse}
    */
-  public static final class Builder extends 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.kms.v1.ListCryptoKeyVersionsResponse)
       com.google.cloud.kms.v1.ListCryptoKeyVersionsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsResponse_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse.class,
-              com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse.Builder.class);
+              com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse.class, com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse.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();
@@ -447,9 +408,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -468,8 +429,7 @@ public com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse buildPartial() {
-      com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse result =
-          new com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse(this);
+      com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse result = new com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse(this);
       int from_bitField0_ = bitField0_;
       if (cryptoKeyVersionsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -490,39 +450,38 @@ public com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse 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.kms.v1.ListCryptoKeyVersionsResponse) {
-        return mergeFrom((com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse) other);
+        return mergeFrom((com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -530,8 +489,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse other) {
-      if (other == com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse.getDefaultInstance()) return this;
       if (cryptoKeyVersionsBuilder_ == null) {
         if (!other.cryptoKeyVersions_.isEmpty()) {
           if (cryptoKeyVersions_.isEmpty()) {
@@ -550,10 +508,9 @@ public Builder mergeFrom(com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse o
             cryptoKeyVersionsBuilder_ = null;
             cryptoKeyVersions_ = other.cryptoKeyVersions_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            cryptoKeyVersionsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getCryptoKeyVersionsFieldBuilder()
-                    : null;
+            cryptoKeyVersionsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getCryptoKeyVersionsFieldBuilder() : null;
           } else {
             cryptoKeyVersionsBuilder_.addAllMessages(other.cryptoKeyVersions_);
           }
@@ -592,38 +549,35 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.kms.v1.CryptoKeyVersion m =
-                    input.readMessage(
-                        com.google.cloud.kms.v1.CryptoKeyVersion.parser(), extensionRegistry);
-                if (cryptoKeyVersionsBuilder_ == null) {
-                  ensureCryptoKeyVersionsIsMutable();
-                  cryptoKeyVersions_.add(m);
-                } else {
-                  cryptoKeyVersionsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                nextPageToken_ = input.readStringRequireUtf8();
+            case 10: {
+              com.google.cloud.kms.v1.CryptoKeyVersion m =
+                  input.readMessage(
+                      com.google.cloud.kms.v1.CryptoKeyVersion.parser(),
+                      extensionRegistry);
+              if (cryptoKeyVersionsBuilder_ == null) {
+                ensureCryptoKeyVersionsIsMutable();
+                cryptoKeyVersions_.add(m);
+              } else {
+                cryptoKeyVersionsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              nextPageToken_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 18
-            case 24:
-              {
-                totalSize_ = input.readInt32();
+              break;
+            } // case 18
+            case 24: {
+              totalSize_ = input.readInt32();
 
-                break;
-              } // case 24
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              break;
+            } // case 24
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -633,29 +587,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List cryptoKeyVersions_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureCryptoKeyVersionsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        cryptoKeyVersions_ =
-            new java.util.ArrayList(cryptoKeyVersions_);
+        cryptoKeyVersions_ = new java.util.ArrayList(cryptoKeyVersions_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.kms.v1.CryptoKeyVersion,
-            com.google.cloud.kms.v1.CryptoKeyVersion.Builder,
-            com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder>
-        cryptoKeyVersionsBuilder_;
+        com.google.cloud.kms.v1.CryptoKeyVersion, com.google.cloud.kms.v1.CryptoKeyVersion.Builder, com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder> cryptoKeyVersionsBuilder_;
 
     /**
-     *
-     *
      * 
      * The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
      * 
@@ -670,8 +616,6 @@ public java.util.List getCryptoKeyVers } } /** - * - * *
      * The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
      * 
@@ -686,8 +630,6 @@ public int getCryptoKeyVersionsCount() { } } /** - * - * *
      * The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
      * 
@@ -702,15 +644,14 @@ public com.google.cloud.kms.v1.CryptoKeyVersion getCryptoKeyVersions(int index) } } /** - * - * *
      * The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
      * 
* * repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1; */ - public Builder setCryptoKeyVersions(int index, com.google.cloud.kms.v1.CryptoKeyVersion value) { + public Builder setCryptoKeyVersions( + int index, com.google.cloud.kms.v1.CryptoKeyVersion value) { if (cryptoKeyVersionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -724,8 +665,6 @@ public Builder setCryptoKeyVersions(int index, com.google.cloud.kms.v1.CryptoKey return this; } /** - * - * *
      * The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
      * 
@@ -744,8 +683,6 @@ public Builder setCryptoKeyVersions( return this; } /** - * - * *
      * The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
      * 
@@ -766,15 +703,14 @@ public Builder addCryptoKeyVersions(com.google.cloud.kms.v1.CryptoKeyVersion val return this; } /** - * - * *
      * The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
      * 
* * repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1; */ - public Builder addCryptoKeyVersions(int index, com.google.cloud.kms.v1.CryptoKeyVersion value) { + public Builder addCryptoKeyVersions( + int index, com.google.cloud.kms.v1.CryptoKeyVersion value) { if (cryptoKeyVersionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -788,8 +724,6 @@ public Builder addCryptoKeyVersions(int index, com.google.cloud.kms.v1.CryptoKey return this; } /** - * - * *
      * The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
      * 
@@ -808,8 +742,6 @@ public Builder addCryptoKeyVersions( return this; } /** - * - * *
      * The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
      * 
@@ -828,8 +760,6 @@ public Builder addCryptoKeyVersions( return this; } /** - * - * *
      * The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
      * 
@@ -840,7 +770,8 @@ public Builder addAllCryptoKeyVersions( java.lang.Iterable values) { if (cryptoKeyVersionsBuilder_ == null) { ensureCryptoKeyVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cryptoKeyVersions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, cryptoKeyVersions_); onChanged(); } else { cryptoKeyVersionsBuilder_.addAllMessages(values); @@ -848,8 +779,6 @@ public Builder addAllCryptoKeyVersions( return this; } /** - * - * *
      * The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
      * 
@@ -867,8 +796,6 @@ public Builder clearCryptoKeyVersions() { return this; } /** - * - * *
      * The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
      * 
@@ -886,20 +813,17 @@ public Builder removeCryptoKeyVersions(int index) { return this; } /** - * - * *
      * The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
      * 
* * repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1; */ - public com.google.cloud.kms.v1.CryptoKeyVersion.Builder getCryptoKeyVersionsBuilder(int index) { + public com.google.cloud.kms.v1.CryptoKeyVersion.Builder getCryptoKeyVersionsBuilder( + int index) { return getCryptoKeyVersionsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
      * 
@@ -909,22 +833,19 @@ public com.google.cloud.kms.v1.CryptoKeyVersion.Builder getCryptoKeyVersionsBuil public com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder getCryptoKeyVersionsOrBuilder( int index) { if (cryptoKeyVersionsBuilder_ == null) { - return cryptoKeyVersions_.get(index); - } else { + return cryptoKeyVersions_.get(index); } else { return cryptoKeyVersionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
      * 
* * repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1; */ - public java.util.List - getCryptoKeyVersionsOrBuilderList() { + public java.util.List + getCryptoKeyVersionsOrBuilderList() { if (cryptoKeyVersionsBuilder_ != null) { return cryptoKeyVersionsBuilder_.getMessageOrBuilderList(); } else { @@ -932,8 +853,6 @@ public com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder getCryptoKeyVersionsOrB } } /** - * - * *
      * The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
      * 
@@ -941,47 +860,38 @@ public com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder getCryptoKeyVersionsOrB * repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1; */ public com.google.cloud.kms.v1.CryptoKeyVersion.Builder addCryptoKeyVersionsBuilder() { - return getCryptoKeyVersionsFieldBuilder() - .addBuilder(com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance()); + return getCryptoKeyVersionsFieldBuilder().addBuilder( + com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance()); } /** - * - * *
      * The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
      * 
* * repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1; */ - public com.google.cloud.kms.v1.CryptoKeyVersion.Builder addCryptoKeyVersionsBuilder(int index) { - return getCryptoKeyVersionsFieldBuilder() - .addBuilder(index, com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance()); + public com.google.cloud.kms.v1.CryptoKeyVersion.Builder addCryptoKeyVersionsBuilder( + int index) { + return getCryptoKeyVersionsFieldBuilder().addBuilder( + index, com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance()); } /** - * - * *
      * The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
      * 
* * repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1; */ - public java.util.List - getCryptoKeyVersionsBuilderList() { + public java.util.List + getCryptoKeyVersionsBuilderList() { return getCryptoKeyVersionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.v1.CryptoKeyVersion, - com.google.cloud.kms.v1.CryptoKeyVersion.Builder, - com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder> + com.google.cloud.kms.v1.CryptoKeyVersion, com.google.cloud.kms.v1.CryptoKeyVersion.Builder, com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder> getCryptoKeyVersionsFieldBuilder() { if (cryptoKeyVersionsBuilder_ == null) { - cryptoKeyVersionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.v1.CryptoKeyVersion, - com.google.cloud.kms.v1.CryptoKeyVersion.Builder, - com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder>( + cryptoKeyVersionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.kms.v1.CryptoKeyVersion, com.google.cloud.kms.v1.CryptoKeyVersion.Builder, com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder>( cryptoKeyVersions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -993,8 +903,6 @@ public com.google.cloud.kms.v1.CryptoKeyVersion.Builder addCryptoKeyVersionsBuil private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCryptoKeyVersionsRequest.page_token][google.cloud.kms.v1.ListCryptoKeyVersionsRequest.page_token]
@@ -1002,13 +910,13 @@ public com.google.cloud.kms.v1.CryptoKeyVersion.Builder addCryptoKeyVersionsBuil
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1017,8 +925,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCryptoKeyVersionsRequest.page_token][google.cloud.kms.v1.ListCryptoKeyVersionsRequest.page_token]
@@ -1026,14 +932,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1041,8 +948,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCryptoKeyVersionsRequest.page_token][google.cloud.kms.v1.ListCryptoKeyVersionsRequest.page_token]
@@ -1050,22 +955,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCryptoKeyVersionsRequest.page_token][google.cloud.kms.v1.ListCryptoKeyVersionsRequest.page_token]
@@ -1073,18 +976,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCryptoKeyVersionsRequest.page_token][google.cloud.kms.v1.ListCryptoKeyVersionsRequest.page_token]
@@ -1092,25 +992,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_; + private int totalSize_ ; /** - * - * *
      * The total number of
      * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] that matched the
@@ -1118,7 +1016,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 total_size = 3; - * * @return The totalSize. */ @java.lang.Override @@ -1126,8 +1023,6 @@ public int getTotalSize() { return totalSize_; } /** - * - * *
      * The total number of
      * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] that matched the
@@ -1135,19 +1030,16 @@ public int getTotalSize() {
      * 
* * int32 total_size = 3; - * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** - * - * *
      * The total number of
      * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] that matched the
@@ -1155,18 +1047,17 @@ public Builder setTotalSize(int value) {
      * 
* * int32 total_size = 3; - * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 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); } @@ -1176,12 +1067,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.ListCryptoKeyVersionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.ListCryptoKeyVersionsResponse) private static final com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse(); } @@ -1190,27 +1081,27 @@ public static com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCryptoKeyVersionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCryptoKeyVersionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1225,4 +1116,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsResponseOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsResponseOrBuilder.java similarity index 73% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsResponseOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsResponseOrBuilder.java index d09760e63da6..0ca6fc7fc411 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsResponseOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsResponseOrBuilder.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/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface ListCryptoKeyVersionsResponseOrBuilder - extends +public interface ListCryptoKeyVersionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.ListCryptoKeyVersionsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
    * 
* * repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1; */ - java.util.List getCryptoKeyVersionsList(); + java.util.List + getCryptoKeyVersionsList(); /** - * - * *
    * The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
    * 
@@ -44,8 +25,6 @@ public interface ListCryptoKeyVersionsResponseOrBuilder */ com.google.cloud.kms.v1.CryptoKeyVersion getCryptoKeyVersions(int index); /** - * - * *
    * The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
    * 
@@ -54,30 +33,25 @@ public interface ListCryptoKeyVersionsResponseOrBuilder */ int getCryptoKeyVersionsCount(); /** - * - * *
    * The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
    * 
* * repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1; */ - java.util.List + java.util.List getCryptoKeyVersionsOrBuilderList(); /** - * - * *
    * The list of [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].
    * 
* * repeated .google.cloud.kms.v1.CryptoKeyVersion crypto_key_versions = 1; */ - com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder getCryptoKeyVersionsOrBuilder(int index); + com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder getCryptoKeyVersionsOrBuilder( + int index); /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCryptoKeyVersionsRequest.page_token][google.cloud.kms.v1.ListCryptoKeyVersionsRequest.page_token]
@@ -85,13 +59,10 @@ public interface ListCryptoKeyVersionsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCryptoKeyVersionsRequest.page_token][google.cloud.kms.v1.ListCryptoKeyVersionsRequest.page_token]
@@ -99,14 +70,12 @@ public interface ListCryptoKeyVersionsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * The total number of
    * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] that matched the
@@ -114,7 +83,6 @@ public interface ListCryptoKeyVersionsResponseOrBuilder
    * 
* * int32 total_size = 3; - * * @return The totalSize. */ int getTotalSize(); diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysRequest.java similarity index 72% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysRequest.java index 677825a7fa7d..2975499cf8c0 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysRequest.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for
  * [KeyManagementService.ListCryptoKeys][google.cloud.kms.v1.KeyManagementService.ListCryptoKeys].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.ListCryptoKeysRequest}
  */
-public final class ListCryptoKeysRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListCryptoKeysRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.ListCryptoKeysRequest)
     ListCryptoKeysRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListCryptoKeysRequest.newBuilder() to construct.
   private ListCryptoKeysRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListCryptoKeysRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -48,44 +30,38 @@ private ListCryptoKeysRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListCryptoKeysRequest();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_ListCryptoKeysRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListCryptoKeysRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_ListCryptoKeysRequest_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListCryptoKeysRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.ListCryptoKeysRequest.class,
-            com.google.cloud.kms.v1.ListCryptoKeysRequest.Builder.class);
+            com.google.cloud.kms.v1.ListCryptoKeysRequest.class, com.google.cloud.kms.v1.ListCryptoKeysRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
-   *
-   *
    * 
    * Required. The resource name of the [KeyRing][google.cloud.kms.v1.KeyRing]
    * to list, in the format `projects/*/locations/*/keyRings/*`.
    * 
* - * - * string parent = 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 @@ -94,32 +70,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 resource name of the [KeyRing][google.cloud.kms.v1.KeyRing]
    * to list, in the format `projects/*/locations/*/keyRings/*`.
    * 
* - * - * string parent = 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,8 +104,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. Optional limit on the number of
    * [CryptoKeys][google.cloud.kms.v1.CryptoKey] to include in the response.
@@ -143,7 +115,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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_; /** - * - * *
    * Optional. Optional pagination token, returned earlier via
    * [ListCryptoKeysResponse.next_page_token][google.cloud.kms.v1.ListCryptoKeysResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } } /** - * - * *
    * Optional. Optional pagination token, returned earlier via
    * [ListCryptoKeysResponse.next_page_token][google.cloud.kms.v1.ListCryptoKeysResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -205,46 +173,33 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int VERSION_VIEW_FIELD_NUMBER = 4; private int versionView_; /** - * - * *
    * The fields of the primary version to include in the response.
    * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView version_view = 4; - * * @return The enum numeric value on the wire for versionView. */ - @java.lang.Override - public int getVersionViewValue() { + @java.lang.Override public int getVersionViewValue() { return versionView_; } /** - * - * *
    * The fields of the primary version to include in the response.
    * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView version_view = 4; - * * @return The versionView. */ - @java.lang.Override - public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView getVersionView() { + @java.lang.Override public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView getVersionView() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView result = - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.valueOf(versionView_); - return result == null - ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.UNRECOGNIZED - : result; + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView result = com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.valueOf(versionView_); + return result == null ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.UNRECOGNIZED : result; } public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** - * - * *
    * Optional. Only include resources that match the filter in the response. For
    * more information, see
@@ -253,7 +208,6 @@ public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView getVersionV
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -262,15 +216,14 @@ 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; } } /** - * - * *
    * Optional. Only include resources that match the filter in the response. For
    * more information, see
@@ -279,15 +232,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -298,8 +252,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 6; private volatile java.lang.Object orderBy_; /** - * - * *
    * Optional. Specify how the results should be sorted. If not specified, the
    * results will be sorted in the default order. For more information, see
@@ -308,7 +260,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ @java.lang.Override @@ -317,15 +268,14 @@ 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; } } /** - * - * *
    * Optional. Specify how the results should be sorted. If not specified, the
    * results will be sorted in the default order. For more information, see
@@ -334,15 +284,16 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -351,7 +302,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -363,7 +313,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -373,10 +324,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - if (versionView_ - != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView - .CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED - .getNumber()) { + if (versionView_ != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(4, versionView_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { @@ -398,16 +346,15 @@ 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_); } - if (versionView_ - != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView - .CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, versionView_); + if (versionView_ != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, versionView_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); @@ -423,20 +370,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.kms.v1.ListCryptoKeysRequest)) { return super.equals(obj); } - com.google.cloud.kms.v1.ListCryptoKeysRequest other = - (com.google.cloud.kms.v1.ListCryptoKeysRequest) obj; + com.google.cloud.kms.v1.ListCryptoKeysRequest other = (com.google.cloud.kms.v1.ListCryptoKeysRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (versionView_ != other.versionView_) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -465,104 +416,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.ListCryptoKeysRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.ListCryptoKeysRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ListCryptoKeysRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.ListCryptoKeysRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ListCryptoKeysRequest parseFrom( 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.kms.v1.ListCryptoKeysRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ListCryptoKeysRequest parseFrom( - byte[] data, com.google.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.kms.v1.ListCryptoKeysRequest parseFrom(java.io.InputStream input) 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.kms.v1.ListCryptoKeysRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.ListCryptoKeysRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.ListCryptoKeysRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.ListCryptoKeysRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.ListCryptoKeysRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.ListCryptoKeysRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.ListCryptoKeysRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for
    * [KeyManagementService.ListCryptoKeys][google.cloud.kms.v1.KeyManagementService.ListCryptoKeys].
@@ -570,32 +514,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.ListCryptoKeysRequest}
    */
-  public static final class Builder extends 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.kms.v1.ListCryptoKeysRequest)
       com.google.cloud.kms.v1.ListCryptoKeysRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_ListCryptoKeysRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListCryptoKeysRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_ListCryptoKeysRequest_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListCryptoKeysRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.ListCryptoKeysRequest.class,
-              com.google.cloud.kms.v1.ListCryptoKeysRequest.Builder.class);
+              com.google.cloud.kms.v1.ListCryptoKeysRequest.class, com.google.cloud.kms.v1.ListCryptoKeysRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.ListCryptoKeysRequest.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();
@@ -615,9 +560,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_ListCryptoKeysRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListCryptoKeysRequest_descriptor;
     }
 
     @java.lang.Override
@@ -636,8 +581,7 @@ public com.google.cloud.kms.v1.ListCryptoKeysRequest build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.ListCryptoKeysRequest buildPartial() {
-      com.google.cloud.kms.v1.ListCryptoKeysRequest result =
-          new com.google.cloud.kms.v1.ListCryptoKeysRequest(this);
+      com.google.cloud.kms.v1.ListCryptoKeysRequest result = new com.google.cloud.kms.v1.ListCryptoKeysRequest(this);
       result.parent_ = parent_;
       result.pageSize_ = pageSize_;
       result.pageToken_ = pageToken_;
@@ -652,39 +596,38 @@ public com.google.cloud.kms.v1.ListCryptoKeysRequest 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.kms.v1.ListCryptoKeysRequest) {
-        return mergeFrom((com.google.cloud.kms.v1.ListCryptoKeysRequest) other);
+        return mergeFrom((com.google.cloud.kms.v1.ListCryptoKeysRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -741,49 +684,42 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 16:
-              {
-                pageSize_ = input.readInt32();
-
-                break;
-              } // case 16
-            case 26:
-              {
-                pageToken_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 26
-            case 32:
-              {
-                versionView_ = input.readEnum();
-
-                break;
-              } // case 32
-            case 42:
-              {
-                filter_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 42
-            case 50:
-              {
-                orderBy_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 50
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 16: {
+              pageSize_ = input.readInt32();
+
+              break;
+            } // case 16
+            case 26: {
+              pageToken_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 26
+            case 32: {
+              versionView_ = input.readEnum();
+
+              break;
+            } // case 32
+            case 42: {
+              filter_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 42
+            case 50: {
+              orderBy_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 50
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -796,23 +732,19 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the [KeyRing][google.cloud.kms.v1.KeyRing]
      * to list, in the format `projects/*/locations/*/keyRings/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -821,24 +753,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the [KeyRing][google.cloud.kms.v1.KeyRing]
      * to list, in the format `projects/*/locations/*/keyRings/*`.
      * 
* - * - * string parent = 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 { @@ -846,79 +775,64 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the [KeyRing][google.cloud.kms.v1.KeyRing]
      * to list, in the format `projects/*/locations/*/keyRings/*`.
      * 
* - * - * 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 resource name of the [KeyRing][google.cloud.kms.v1.KeyRing]
      * to list, in the format `projects/*/locations/*/keyRings/*`.
      * 
* - * - * string 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 resource name of the [KeyRing][google.cloud.kms.v1.KeyRing]
      * to list, in the format `projects/*/locations/*/keyRings/*`.
      * 
* - * - * 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_ ; /** - * - * *
      * Optional. Optional limit on the number of
      * [CryptoKeys][google.cloud.kms.v1.CryptoKey] to include in the response.
@@ -930,7 +844,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -938,8 +851,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Optional limit on the number of
      * [CryptoKeys][google.cloud.kms.v1.CryptoKey] to include in the response.
@@ -951,19 +862,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Optional limit on the number of
      * [CryptoKeys][google.cloud.kms.v1.CryptoKey] to include in the response.
@@ -975,11 +883,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -987,21 +894,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. Optional pagination token, returned earlier via
      * [ListCryptoKeysResponse.next_page_token][google.cloud.kms.v1.ListCryptoKeysResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1010,22 +915,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. Optional pagination token, returned earlier via
      * [ListCryptoKeysResponse.next_page_token][google.cloud.kms.v1.ListCryptoKeysResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1033,64 +937,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. Optional pagination token, returned earlier via
      * [ListCryptoKeysResponse.next_page_token][google.cloud.kms.v1.ListCryptoKeysResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Optional pagination token, returned earlier via
      * [ListCryptoKeysResponse.next_page_token][google.cloud.kms.v1.ListCryptoKeysResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. Optional pagination token, returned earlier via
      * [ListCryptoKeysResponse.next_page_token][google.cloud.kms.v1.ListCryptoKeysResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + 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; @@ -1098,93 +995,73 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private int versionView_ = 0; /** - * - * *
      * The fields of the primary version to include in the response.
      * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView version_view = 4; - * * @return The enum numeric value on the wire for versionView. */ - @java.lang.Override - public int getVersionViewValue() { + @java.lang.Override public int getVersionViewValue() { return versionView_; } /** - * - * *
      * The fields of the primary version to include in the response.
      * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView version_view = 4; - * * @param value The enum numeric value on the wire for versionView to set. * @return This builder for chaining. */ public Builder setVersionViewValue(int value) { - + versionView_ = value; onChanged(); return this; } /** - * - * *
      * The fields of the primary version to include in the response.
      * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView version_view = 4; - * * @return The versionView. */ @java.lang.Override public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView getVersionView() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView result = - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.valueOf(versionView_); - return result == null - ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.UNRECOGNIZED - : result; + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView result = com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.valueOf(versionView_); + return result == null ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.UNRECOGNIZED : result; } /** - * - * *
      * The fields of the primary version to include in the response.
      * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView version_view = 4; - * * @param value The versionView to set. * @return This builder for chaining. */ - public Builder setVersionView( - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView value) { + public Builder setVersionView(com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView value) { if (value == null) { throw new NullPointerException(); } - + versionView_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The fields of the primary version to include in the response.
      * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView version_view = 4; - * * @return This builder for chaining. */ public Builder clearVersionView() { - + versionView_ = 0; onChanged(); return this; @@ -1192,8 +1069,6 @@ public Builder clearVersionView() { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Only include resources that match the filter in the response. For
      * more information, see
@@ -1202,13 +1077,13 @@ public Builder clearVersionView() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1217,8 +1092,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Only include resources that match the filter in the response. For
      * more information, see
@@ -1227,14 +1100,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1242,8 +1116,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Only include resources that match the filter in the response. For
      * more information, see
@@ -1252,22 +1124,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. Only include resources that match the filter in the response. For
      * more information, see
@@ -1276,18 +1146,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Optional. Only include resources that match the filter in the response. For
      * more information, see
@@ -1296,16 +1163,16 @@ public Builder clearFilter() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1313,8 +1180,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Optional. Specify how the results should be sorted. If not specified, the
      * results will be sorted in the default order. For more information, see
@@ -1323,13 +1188,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1338,8 +1203,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Optional. Specify how the results should be sorted. If not specified, the
      * results will be sorted in the default order. For more information, see
@@ -1348,14 +1211,15 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1363,8 +1227,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Optional. Specify how the results should be sorted. If not specified, the
      * results will be sorted in the default order. For more information, see
@@ -1373,22 +1235,20 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. Specify how the results should be sorted. If not specified, the
      * results will be sorted in the default order. For more information, see
@@ -1397,18 +1257,15 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Optional. Specify how the results should be sorted. If not specified, the
      * results will be sorted in the default order. For more information, see
@@ -1417,23 +1274,23 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1443,12 +1300,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.ListCryptoKeysRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.ListCryptoKeysRequest) private static final com.google.cloud.kms.v1.ListCryptoKeysRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.ListCryptoKeysRequest(); } @@ -1457,27 +1314,27 @@ public static com.google.cloud.kms.v1.ListCryptoKeysRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCryptoKeysRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCryptoKeysRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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 +1349,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.ListCryptoKeysRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysRequestOrBuilder.java similarity index 76% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysRequestOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysRequestOrBuilder.java index a1bfa1fc5e5e..11a9ad3af7bf 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysRequestOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysRequestOrBuilder.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/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface ListCryptoKeysRequestOrBuilder - extends +public interface ListCryptoKeysRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.ListCryptoKeysRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the [KeyRing][google.cloud.kms.v1.KeyRing]
    * to list, in the format `projects/*/locations/*/keyRings/*`.
    * 
* - * - * string parent = 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 resource name of the [KeyRing][google.cloud.kms.v1.KeyRing]
    * to list, in the format `projects/*/locations/*/keyRings/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. Optional limit on the number of
    * [CryptoKeys][google.cloud.kms.v1.CryptoKey] to include in the response.
@@ -68,66 +41,52 @@ public interface ListCryptoKeysRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. Optional pagination token, returned earlier via
    * [ListCryptoKeysResponse.next_page_token][google.cloud.kms.v1.ListCryptoKeysResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. Optional pagination token, returned earlier via
    * [ListCryptoKeysResponse.next_page_token][google.cloud.kms.v1.ListCryptoKeysResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The fields of the primary version to include in the response.
    * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView version_view = 4; - * * @return The enum numeric value on the wire for versionView. */ int getVersionViewValue(); /** - * - * *
    * The fields of the primary version to include in the response.
    * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView version_view = 4; - * * @return The versionView. */ com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView getVersionView(); /** - * - * *
    * Optional. Only include resources that match the filter in the response. For
    * more information, see
@@ -136,13 +95,10 @@ public interface ListCryptoKeysRequestOrBuilder
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. Only include resources that match the filter in the response. For
    * more information, see
@@ -151,14 +107,12 @@ public interface ListCryptoKeysRequestOrBuilder
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Optional. Specify how the results should be sorted. If not specified, the
    * results will be sorted in the default order. For more information, see
@@ -167,13 +121,10 @@ public interface ListCryptoKeysRequestOrBuilder
    * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Optional. Specify how the results should be sorted. If not specified, the
    * results will be sorted in the default order. For more information, see
@@ -182,8 +133,8 @@ public interface ListCryptoKeysRequestOrBuilder
    * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysResponse.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysResponse.java similarity index 73% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysResponse.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysResponse.java index 23be7ff171a4..524e82251162 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysResponse.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysResponse.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Response message for
  * [KeyManagementService.ListCryptoKeys][google.cloud.kms.v1.KeyManagementService.ListCryptoKeys].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.ListCryptoKeysResponse}
  */
-public final class ListCryptoKeysResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListCryptoKeysResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.ListCryptoKeysResponse)
     ListCryptoKeysResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListCryptoKeysResponse.newBuilder() to construct.
   private ListCryptoKeysResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListCryptoKeysResponse() {
     cryptoKeys_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -45,35 +27,32 @@ private ListCryptoKeysResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListCryptoKeysResponse();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_ListCryptoKeysResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListCryptoKeysResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_ListCryptoKeysResponse_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListCryptoKeysResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.ListCryptoKeysResponse.class,
-            com.google.cloud.kms.v1.ListCryptoKeysResponse.Builder.class);
+            com.google.cloud.kms.v1.ListCryptoKeysResponse.class, com.google.cloud.kms.v1.ListCryptoKeysResponse.Builder.class);
   }
 
   public static final int CRYPTO_KEYS_FIELD_NUMBER = 1;
   private java.util.List cryptoKeys_;
   /**
-   *
-   *
    * 
    * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
    * 
@@ -85,8 +64,6 @@ public java.util.List getCryptoKeysList() { return cryptoKeys_; } /** - * - * *
    * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
    * 
@@ -94,13 +71,11 @@ public java.util.List getCryptoKeysList() { * repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCryptoKeysOrBuilderList() { return cryptoKeys_; } /** - * - * *
    * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
    * 
@@ -112,8 +87,6 @@ public int getCryptoKeysCount() { return cryptoKeys_.size(); } /** - * - * *
    * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
    * 
@@ -125,8 +98,6 @@ public com.google.cloud.kms.v1.CryptoKey getCryptoKeys(int index) { return cryptoKeys_.get(index); } /** - * - * *
    * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
    * 
@@ -134,15 +105,14 @@ public com.google.cloud.kms.v1.CryptoKey getCryptoKeys(int index) { * repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1; */ @java.lang.Override - public com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeysOrBuilder(int index) { + public com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeysOrBuilder( + int index) { return cryptoKeys_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCryptoKeysRequest.page_token][google.cloud.kms.v1.ListCryptoKeysRequest.page_token]
@@ -150,7 +120,6 @@ public com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeysOrBuilder(int ind
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -159,15 +128,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCryptoKeysRequest.page_token][google.cloud.kms.v1.ListCryptoKeysRequest.page_token]
@@ -175,15 +143,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -194,15 +163,12 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int TOTAL_SIZE_FIELD_NUMBER = 3; private int totalSize_; /** - * - * *
    * The total number of [CryptoKeys][google.cloud.kms.v1.CryptoKey] that
    * matched the query.
    * 
* * int32 total_size = 3; - * * @return The totalSize. */ @java.lang.Override @@ -211,7 +177,6 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -223,7 +188,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < cryptoKeys_.size(); i++) { output.writeMessage(1, cryptoKeys_.get(i)); } @@ -243,13 +209,15 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < cryptoKeys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, cryptoKeys_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, cryptoKeys_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, totalSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -259,17 +227,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.kms.v1.ListCryptoKeysResponse)) { return super.equals(obj); } - com.google.cloud.kms.v1.ListCryptoKeysResponse other = - (com.google.cloud.kms.v1.ListCryptoKeysResponse) obj; - - if (!getCryptoKeysList().equals(other.getCryptoKeysList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (getTotalSize() != other.getTotalSize()) return false; + com.google.cloud.kms.v1.ListCryptoKeysResponse other = (com.google.cloud.kms.v1.ListCryptoKeysResponse) obj; + + if (!getCryptoKeysList() + .equals(other.getCryptoKeysList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (getTotalSize() + != other.getTotalSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -294,104 +264,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.ListCryptoKeysResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.ListCryptoKeysResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ListCryptoKeysResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.ListCryptoKeysResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ListCryptoKeysResponse parseFrom( 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.kms.v1.ListCryptoKeysResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ListCryptoKeysResponse parseFrom( - byte[] data, com.google.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.kms.v1.ListCryptoKeysResponse parseFrom(java.io.InputStream input) 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.kms.v1.ListCryptoKeysResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.ListCryptoKeysResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.ListCryptoKeysResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.ListCryptoKeysResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.ListCryptoKeysResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.ListCryptoKeysResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.ListCryptoKeysResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for
    * [KeyManagementService.ListCryptoKeys][google.cloud.kms.v1.KeyManagementService.ListCryptoKeys].
@@ -399,32 +362,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.ListCryptoKeysResponse}
    */
-  public static final class Builder extends 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.kms.v1.ListCryptoKeysResponse)
       com.google.cloud.kms.v1.ListCryptoKeysResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_ListCryptoKeysResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListCryptoKeysResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_ListCryptoKeysResponse_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListCryptoKeysResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.ListCryptoKeysResponse.class,
-              com.google.cloud.kms.v1.ListCryptoKeysResponse.Builder.class);
+              com.google.cloud.kms.v1.ListCryptoKeysResponse.class, com.google.cloud.kms.v1.ListCryptoKeysResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.ListCryptoKeysResponse.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();
@@ -443,9 +407,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_ListCryptoKeysResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListCryptoKeysResponse_descriptor;
     }
 
     @java.lang.Override
@@ -464,8 +428,7 @@ public com.google.cloud.kms.v1.ListCryptoKeysResponse build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.ListCryptoKeysResponse buildPartial() {
-      com.google.cloud.kms.v1.ListCryptoKeysResponse result =
-          new com.google.cloud.kms.v1.ListCryptoKeysResponse(this);
+      com.google.cloud.kms.v1.ListCryptoKeysResponse result = new com.google.cloud.kms.v1.ListCryptoKeysResponse(this);
       int from_bitField0_ = bitField0_;
       if (cryptoKeysBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -486,39 +449,38 @@ public com.google.cloud.kms.v1.ListCryptoKeysResponse 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.kms.v1.ListCryptoKeysResponse) {
-        return mergeFrom((com.google.cloud.kms.v1.ListCryptoKeysResponse) other);
+        return mergeFrom((com.google.cloud.kms.v1.ListCryptoKeysResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -545,10 +507,9 @@ public Builder mergeFrom(com.google.cloud.kms.v1.ListCryptoKeysResponse other) {
             cryptoKeysBuilder_ = null;
             cryptoKeys_ = other.cryptoKeys_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            cryptoKeysBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getCryptoKeysFieldBuilder()
-                    : null;
+            cryptoKeysBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getCryptoKeysFieldBuilder() : null;
           } else {
             cryptoKeysBuilder_.addAllMessages(other.cryptoKeys_);
           }
@@ -587,38 +548,35 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.kms.v1.CryptoKey m =
-                    input.readMessage(
-                        com.google.cloud.kms.v1.CryptoKey.parser(), extensionRegistry);
-                if (cryptoKeysBuilder_ == null) {
-                  ensureCryptoKeysIsMutable();
-                  cryptoKeys_.add(m);
-                } else {
-                  cryptoKeysBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                nextPageToken_ = input.readStringRequireUtf8();
+            case 10: {
+              com.google.cloud.kms.v1.CryptoKey m =
+                  input.readMessage(
+                      com.google.cloud.kms.v1.CryptoKey.parser(),
+                      extensionRegistry);
+              if (cryptoKeysBuilder_ == null) {
+                ensureCryptoKeysIsMutable();
+                cryptoKeys_.add(m);
+              } else {
+                cryptoKeysBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              nextPageToken_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 18
-            case 24:
-              {
-                totalSize_ = input.readInt32();
+              break;
+            } // case 18
+            case 24: {
+              totalSize_ = input.readInt32();
 
-                break;
-              } // case 24
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              break;
+            } // case 24
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -628,28 +586,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List cryptoKeys_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureCryptoKeysIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         cryptoKeys_ = new java.util.ArrayList(cryptoKeys_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.kms.v1.CryptoKey,
-            com.google.cloud.kms.v1.CryptoKey.Builder,
-            com.google.cloud.kms.v1.CryptoKeyOrBuilder>
-        cryptoKeysBuilder_;
+        com.google.cloud.kms.v1.CryptoKey, com.google.cloud.kms.v1.CryptoKey.Builder, com.google.cloud.kms.v1.CryptoKeyOrBuilder> cryptoKeysBuilder_;
 
     /**
-     *
-     *
      * 
      * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
      * 
@@ -664,8 +615,6 @@ public java.util.List getCryptoKeysList() { } } /** - * - * *
      * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
      * 
@@ -680,8 +629,6 @@ public int getCryptoKeysCount() { } } /** - * - * *
      * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
      * 
@@ -696,15 +643,14 @@ public com.google.cloud.kms.v1.CryptoKey getCryptoKeys(int index) { } } /** - * - * *
      * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
      * 
* * repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1; */ - public Builder setCryptoKeys(int index, com.google.cloud.kms.v1.CryptoKey value) { + public Builder setCryptoKeys( + int index, com.google.cloud.kms.v1.CryptoKey value) { if (cryptoKeysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -718,8 +664,6 @@ public Builder setCryptoKeys(int index, com.google.cloud.kms.v1.CryptoKey value) return this; } /** - * - * *
      * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
      * 
@@ -738,8 +682,6 @@ public Builder setCryptoKeys( return this; } /** - * - * *
      * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
      * 
@@ -760,15 +702,14 @@ public Builder addCryptoKeys(com.google.cloud.kms.v1.CryptoKey value) { return this; } /** - * - * *
      * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
      * 
* * repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1; */ - public Builder addCryptoKeys(int index, com.google.cloud.kms.v1.CryptoKey value) { + public Builder addCryptoKeys( + int index, com.google.cloud.kms.v1.CryptoKey value) { if (cryptoKeysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -782,15 +723,14 @@ public Builder addCryptoKeys(int index, com.google.cloud.kms.v1.CryptoKey value) return this; } /** - * - * *
      * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
      * 
* * repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1; */ - public Builder addCryptoKeys(com.google.cloud.kms.v1.CryptoKey.Builder builderForValue) { + public Builder addCryptoKeys( + com.google.cloud.kms.v1.CryptoKey.Builder builderForValue) { if (cryptoKeysBuilder_ == null) { ensureCryptoKeysIsMutable(); cryptoKeys_.add(builderForValue.build()); @@ -801,8 +741,6 @@ public Builder addCryptoKeys(com.google.cloud.kms.v1.CryptoKey.Builder builderFo return this; } /** - * - * *
      * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
      * 
@@ -821,8 +759,6 @@ public Builder addCryptoKeys( return this; } /** - * - * *
      * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
      * 
@@ -833,7 +769,8 @@ public Builder addAllCryptoKeys( java.lang.Iterable values) { if (cryptoKeysBuilder_ == null) { ensureCryptoKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cryptoKeys_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, cryptoKeys_); onChanged(); } else { cryptoKeysBuilder_.addAllMessages(values); @@ -841,8 +778,6 @@ public Builder addAllCryptoKeys( return this; } /** - * - * *
      * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
      * 
@@ -860,8 +795,6 @@ public Builder clearCryptoKeys() { return this; } /** - * - * *
      * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
      * 
@@ -879,44 +812,39 @@ public Builder removeCryptoKeys(int index) { return this; } /** - * - * *
      * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
      * 
* * repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1; */ - public com.google.cloud.kms.v1.CryptoKey.Builder getCryptoKeysBuilder(int index) { + public com.google.cloud.kms.v1.CryptoKey.Builder getCryptoKeysBuilder( + int index) { return getCryptoKeysFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
      * 
* * repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1; */ - public com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeysOrBuilder(int index) { + public com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeysOrBuilder( + int index) { if (cryptoKeysBuilder_ == null) { - return cryptoKeys_.get(index); - } else { + return cryptoKeys_.get(index); } else { return cryptoKeysBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
      * 
* * repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1; */ - public java.util.List - getCryptoKeysOrBuilderList() { + public java.util.List + getCryptoKeysOrBuilderList() { if (cryptoKeysBuilder_ != null) { return cryptoKeysBuilder_.getMessageOrBuilderList(); } else { @@ -924,8 +852,6 @@ public com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeysOrBuilder(int ind } } /** - * - * *
      * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
      * 
@@ -933,47 +859,42 @@ public com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeysOrBuilder(int ind * repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1; */ public com.google.cloud.kms.v1.CryptoKey.Builder addCryptoKeysBuilder() { - return getCryptoKeysFieldBuilder() - .addBuilder(com.google.cloud.kms.v1.CryptoKey.getDefaultInstance()); + return getCryptoKeysFieldBuilder().addBuilder( + com.google.cloud.kms.v1.CryptoKey.getDefaultInstance()); } /** - * - * *
      * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
      * 
* * repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1; */ - public com.google.cloud.kms.v1.CryptoKey.Builder addCryptoKeysBuilder(int index) { - return getCryptoKeysFieldBuilder() - .addBuilder(index, com.google.cloud.kms.v1.CryptoKey.getDefaultInstance()); + public com.google.cloud.kms.v1.CryptoKey.Builder addCryptoKeysBuilder( + int index) { + return getCryptoKeysFieldBuilder().addBuilder( + index, com.google.cloud.kms.v1.CryptoKey.getDefaultInstance()); } /** - * - * *
      * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
      * 
* * repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1; */ - public java.util.List getCryptoKeysBuilderList() { + public java.util.List + getCryptoKeysBuilderList() { return getCryptoKeysFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.v1.CryptoKey, - com.google.cloud.kms.v1.CryptoKey.Builder, - com.google.cloud.kms.v1.CryptoKeyOrBuilder> + com.google.cloud.kms.v1.CryptoKey, com.google.cloud.kms.v1.CryptoKey.Builder, com.google.cloud.kms.v1.CryptoKeyOrBuilder> getCryptoKeysFieldBuilder() { if (cryptoKeysBuilder_ == null) { - cryptoKeysBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.v1.CryptoKey, - com.google.cloud.kms.v1.CryptoKey.Builder, - com.google.cloud.kms.v1.CryptoKeyOrBuilder>( - cryptoKeys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + cryptoKeysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.kms.v1.CryptoKey, com.google.cloud.kms.v1.CryptoKey.Builder, com.google.cloud.kms.v1.CryptoKeyOrBuilder>( + cryptoKeys_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); cryptoKeys_ = null; } return cryptoKeysBuilder_; @@ -981,8 +902,6 @@ public java.util.List getCryptoKeysBu private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCryptoKeysRequest.page_token][google.cloud.kms.v1.ListCryptoKeysRequest.page_token]
@@ -990,13 +909,13 @@ public java.util.List getCryptoKeysBu
      * 
* * 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; @@ -1005,8 +924,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCryptoKeysRequest.page_token][google.cloud.kms.v1.ListCryptoKeysRequest.page_token]
@@ -1014,14 +931,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1029,8 +947,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCryptoKeysRequest.page_token][google.cloud.kms.v1.ListCryptoKeysRequest.page_token]
@@ -1038,22 +954,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCryptoKeysRequest.page_token][google.cloud.kms.v1.ListCryptoKeysRequest.page_token]
@@ -1061,18 +975,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCryptoKeysRequest.page_token][google.cloud.kms.v1.ListCryptoKeysRequest.page_token]
@@ -1080,32 +991,29 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_; + private int totalSize_ ; /** - * - * *
      * The total number of [CryptoKeys][google.cloud.kms.v1.CryptoKey] that
      * matched the query.
      * 
* * int32 total_size = 3; - * * @return The totalSize. */ @java.lang.Override @@ -1113,45 +1021,39 @@ public int getTotalSize() { return totalSize_; } /** - * - * *
      * The total number of [CryptoKeys][google.cloud.kms.v1.CryptoKey] that
      * matched the query.
      * 
* * int32 total_size = 3; - * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** - * - * *
      * The total number of [CryptoKeys][google.cloud.kms.v1.CryptoKey] that
      * matched the query.
      * 
* * int32 total_size = 3; - * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 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); } @@ -1161,12 +1063,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.ListCryptoKeysResponse) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.ListCryptoKeysResponse) private static final com.google.cloud.kms.v1.ListCryptoKeysResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.ListCryptoKeysResponse(); } @@ -1175,27 +1077,27 @@ public static com.google.cloud.kms.v1.ListCryptoKeysResponse getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCryptoKeysResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCryptoKeysResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1210,4 +1112,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.ListCryptoKeysResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysResponseOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysResponseOrBuilder.java similarity index 71% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysResponseOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysResponseOrBuilder.java index 2d434f442c81..2a2999612ab2 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysResponseOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysResponseOrBuilder.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/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface ListCryptoKeysResponseOrBuilder - extends +public interface ListCryptoKeysResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.ListCryptoKeysResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
    * 
* * repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1; */ - java.util.List getCryptoKeysList(); + java.util.List + getCryptoKeysList(); /** - * - * *
    * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
    * 
@@ -44,8 +25,6 @@ public interface ListCryptoKeysResponseOrBuilder */ com.google.cloud.kms.v1.CryptoKey getCryptoKeys(int index); /** - * - * *
    * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
    * 
@@ -54,29 +33,25 @@ public interface ListCryptoKeysResponseOrBuilder */ int getCryptoKeysCount(); /** - * - * *
    * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
    * 
* * repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1; */ - java.util.List getCryptoKeysOrBuilderList(); + java.util.List + getCryptoKeysOrBuilderList(); /** - * - * *
    * The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
    * 
* * repeated .google.cloud.kms.v1.CryptoKey crypto_keys = 1; */ - com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeysOrBuilder(int index); + com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeysOrBuilder( + int index); /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCryptoKeysRequest.page_token][google.cloud.kms.v1.ListCryptoKeysRequest.page_token]
@@ -84,13 +59,10 @@ public interface ListCryptoKeysResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCryptoKeysRequest.page_token][google.cloud.kms.v1.ListCryptoKeysRequest.page_token]
@@ -98,21 +70,18 @@ public interface ListCryptoKeysResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * The total number of [CryptoKeys][google.cloud.kms.v1.CryptoKey] that
    * matched the query.
    * 
* * int32 total_size = 3; - * * @return The totalSize. */ int getTotalSize(); diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListEkmConnectionsRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListEkmConnectionsRequest.java similarity index 72% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListEkmConnectionsRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListEkmConnectionsRequest.java index 4fa577a25a98..23bd7601d3fd 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListEkmConnectionsRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListEkmConnectionsRequest.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/kms/v1/ekm_service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for [KeyManagementService.ListEkmConnections][].
  * 
* * Protobuf type {@code google.cloud.kms.v1.ListEkmConnectionsRequest} */ -public final class ListEkmConnectionsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListEkmConnectionsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.ListEkmConnectionsRequest) ListEkmConnectionsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListEkmConnectionsRequest.newBuilder() to construct. private ListEkmConnectionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListEkmConnectionsRequest() { parent_ = ""; pageToken_ = ""; @@ -46,45 +28,39 @@ private ListEkmConnectionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListEkmConnectionsRequest(); } @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.kms.v1.EkmServiceProto - .internal_static_google_cloud_kms_v1_ListEkmConnectionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_ListEkmConnectionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.v1.EkmServiceProto - .internal_static_google_cloud_kms_v1_ListEkmConnectionsRequest_fieldAccessorTable + return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_ListEkmConnectionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.v1.ListEkmConnectionsRequest.class, - com.google.cloud.kms.v1.ListEkmConnectionsRequest.Builder.class); + com.google.cloud.kms.v1.ListEkmConnectionsRequest.class, com.google.cloud.kms.v1.ListEkmConnectionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The resource name of the location associated with the
    * [EkmConnections][google.cloud.kms.v1.EkmConnection] to list, in the format
    * `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -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 resource name of the location associated with the
    * [EkmConnections][google.cloud.kms.v1.EkmConnection] to list, in the format
    * `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -130,8 +104,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. Optional limit on the number of
    * [EkmConnections][google.cloud.kms.v1.EkmConnection] to include in the
@@ -143,7 +115,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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_; /** - * - * *
    * Optional. Optional pagination token, returned earlier via
    * [ListEkmConnectionsResponse.next_page_token][google.cloud.kms.v1.ListEkmConnectionsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } } /** - * - * *
    * Optional. Optional pagination token, returned earlier via
    * [ListEkmConnectionsResponse.next_page_token][google.cloud.kms.v1.ListEkmConnectionsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -205,8 +173,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * Optional. Only include resources that match the filter in the response. For
    * more information, see
@@ -215,7 +181,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -224,15 +189,14 @@ 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; } } /** - * - * *
    * Optional. Only include resources that match the filter in the response. For
    * more information, see
@@ -241,15 +205,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -260,8 +225,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** - * - * *
    * Optional. Specify how the results should be sorted. If not specified, the
    * results will be sorted in the default order.  For more information, see
@@ -270,7 +233,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ @java.lang.Override @@ -279,15 +241,14 @@ 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; } } /** - * - * *
    * Optional. Specify how the results should be sorted. If not specified, the
    * results will be sorted in the default order.  For more information, see
@@ -296,15 +257,16 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -313,7 +275,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -325,7 +286,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -354,7 +316,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_); @@ -373,19 +336,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.kms.v1.ListEkmConnectionsRequest)) { return super.equals(obj); } - com.google.cloud.kms.v1.ListEkmConnectionsRequest other = - (com.google.cloud.kms.v1.ListEkmConnectionsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.kms.v1.ListEkmConnectionsRequest other = (com.google.cloud.kms.v1.ListEkmConnectionsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -413,135 +380,129 @@ public int hashCode() { } public static com.google.cloud.kms.v1.ListEkmConnectionsRequest 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.kms.v1.ListEkmConnectionsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.ListEkmConnectionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ListEkmConnectionsRequest parseFrom( 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.kms.v1.ListEkmConnectionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ListEkmConnectionsRequest parseFrom( - byte[] data, com.google.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.kms.v1.ListEkmConnectionsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.ListEkmConnectionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.ListEkmConnectionsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.ListEkmConnectionsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.ListEkmConnectionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.ListEkmConnectionsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.ListEkmConnectionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.ListEkmConnectionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.ListEkmConnectionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [KeyManagementService.ListEkmConnections][].
    * 
* * Protobuf type {@code google.cloud.kms.v1.ListEkmConnectionsRequest} */ - public static final class Builder extends 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.kms.v1.ListEkmConnectionsRequest) com.google.cloud.kms.v1.ListEkmConnectionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.kms.v1.EkmServiceProto - .internal_static_google_cloud_kms_v1_ListEkmConnectionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_ListEkmConnectionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.v1.EkmServiceProto - .internal_static_google_cloud_kms_v1_ListEkmConnectionsRequest_fieldAccessorTable + return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_ListEkmConnectionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.v1.ListEkmConnectionsRequest.class, - com.google.cloud.kms.v1.ListEkmConnectionsRequest.Builder.class); + com.google.cloud.kms.v1.ListEkmConnectionsRequest.class, com.google.cloud.kms.v1.ListEkmConnectionsRequest.Builder.class); } // Construct using com.google.cloud.kms.v1.ListEkmConnectionsRequest.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(); @@ -559,9 +520,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.kms.v1.EkmServiceProto - .internal_static_google_cloud_kms_v1_ListEkmConnectionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_ListEkmConnectionsRequest_descriptor; } @java.lang.Override @@ -580,8 +541,7 @@ public com.google.cloud.kms.v1.ListEkmConnectionsRequest build() { @java.lang.Override public com.google.cloud.kms.v1.ListEkmConnectionsRequest buildPartial() { - com.google.cloud.kms.v1.ListEkmConnectionsRequest result = - new com.google.cloud.kms.v1.ListEkmConnectionsRequest(this); + com.google.cloud.kms.v1.ListEkmConnectionsRequest result = new com.google.cloud.kms.v1.ListEkmConnectionsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -595,39 +555,38 @@ public com.google.cloud.kms.v1.ListEkmConnectionsRequest 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.kms.v1.ListEkmConnectionsRequest) { - return mergeFrom((com.google.cloud.kms.v1.ListEkmConnectionsRequest) other); + return mergeFrom((com.google.cloud.kms.v1.ListEkmConnectionsRequest)other); } else { super.mergeFrom(other); return this; @@ -635,8 +594,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.kms.v1.ListEkmConnectionsRequest other) { - if (other == com.google.cloud.kms.v1.ListEkmConnectionsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.kms.v1.ListEkmConnectionsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -682,43 +640,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: - { - filter_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: - { - orderBy_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: { + orderBy_ = 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) { @@ -731,24 +683,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the location associated with the
      * [EkmConnections][google.cloud.kms.v1.EkmConnection] to list, in the format
      * `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -757,25 +705,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [EkmConnections][google.cloud.kms.v1.EkmConnection] to list, in the format
      * `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -783,82 +728,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [EkmConnections][google.cloud.kms.v1.EkmConnection] to list, in the format
      * `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the location associated with the
      * [EkmConnections][google.cloud.kms.v1.EkmConnection] to list, in the format
      * `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the location associated with the
      * [EkmConnections][google.cloud.kms.v1.EkmConnection] to list, in the format
      * `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. Optional limit on the number of
      * [EkmConnections][google.cloud.kms.v1.EkmConnection] to include in the
@@ -870,7 +800,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -878,8 +807,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Optional limit on the number of
      * [EkmConnections][google.cloud.kms.v1.EkmConnection] to include in the
@@ -891,19 +818,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Optional limit on the number of
      * [EkmConnections][google.cloud.kms.v1.EkmConnection] to include in the
@@ -915,11 +839,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -927,21 +850,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. Optional pagination token, returned earlier via
      * [ListEkmConnectionsResponse.next_page_token][google.cloud.kms.v1.ListEkmConnectionsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -950,22 +871,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. Optional pagination token, returned earlier via
      * [ListEkmConnectionsResponse.next_page_token][google.cloud.kms.v1.ListEkmConnectionsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -973,64 +893,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. Optional pagination token, returned earlier via
      * [ListEkmConnectionsResponse.next_page_token][google.cloud.kms.v1.ListEkmConnectionsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Optional pagination token, returned earlier via
      * [ListEkmConnectionsResponse.next_page_token][google.cloud.kms.v1.ListEkmConnectionsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. Optional pagination token, returned earlier via
      * [ListEkmConnectionsResponse.next_page_token][google.cloud.kms.v1.ListEkmConnectionsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + 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; @@ -1038,8 +951,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Only include resources that match the filter in the response. For
      * more information, see
@@ -1048,13 +959,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1063,8 +974,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Only include resources that match the filter in the response. For
      * more information, see
@@ -1073,14 +982,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1088,8 +998,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Only include resources that match the filter in the response. For
      * more information, see
@@ -1098,22 +1006,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. Only include resources that match the filter in the response. For
      * more information, see
@@ -1122,18 +1028,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Optional. Only include resources that match the filter in the response. For
      * more information, see
@@ -1142,16 +1045,16 @@ public Builder clearFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1159,8 +1062,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Optional. Specify how the results should be sorted. If not specified, the
      * results will be sorted in the default order.  For more information, see
@@ -1169,13 +1070,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1184,8 +1085,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Optional. Specify how the results should be sorted. If not specified, the
      * results will be sorted in the default order.  For more information, see
@@ -1194,14 +1093,15 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1209,8 +1109,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Optional. Specify how the results should be sorted. If not specified, the
      * results will be sorted in the default order.  For more information, see
@@ -1219,22 +1117,20 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. Specify how the results should be sorted. If not specified, the
      * results will be sorted in the default order.  For more information, see
@@ -1243,18 +1139,15 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Optional. Specify how the results should be sorted. If not specified, the
      * results will be sorted in the default order.  For more information, see
@@ -1263,23 +1156,23 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1289,12 +1182,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.ListEkmConnectionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.ListEkmConnectionsRequest) private static final com.google.cloud.kms.v1.ListEkmConnectionsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.ListEkmConnectionsRequest(); } @@ -1303,27 +1196,27 @@ public static com.google.cloud.kms.v1.ListEkmConnectionsRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEkmConnectionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEkmConnectionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1338,4 +1231,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.kms.v1.ListEkmConnectionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListEkmConnectionsRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListEkmConnectionsRequestOrBuilder.java similarity index 74% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListEkmConnectionsRequestOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListEkmConnectionsRequestOrBuilder.java index 23ed0fb8a321..c2a9805108c0 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListEkmConnectionsRequestOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListEkmConnectionsRequestOrBuilder.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/kms/v1/ekm_service.proto package com.google.cloud.kms.v1; -public interface ListEkmConnectionsRequestOrBuilder - extends +public interface ListEkmConnectionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.ListEkmConnectionsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the location associated with the
    * [EkmConnections][google.cloud.kms.v1.EkmConnection] to list, in the format
    * `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The resource name of the location associated with the
    * [EkmConnections][google.cloud.kms.v1.EkmConnection] to list, in the format
    * `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. Optional limit on the number of
    * [EkmConnections][google.cloud.kms.v1.EkmConnection] to include in the
@@ -70,41 +43,33 @@ public interface ListEkmConnectionsRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. Optional pagination token, returned earlier via
    * [ListEkmConnectionsResponse.next_page_token][google.cloud.kms.v1.ListEkmConnectionsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. Optional pagination token, returned earlier via
    * [ListEkmConnectionsResponse.next_page_token][google.cloud.kms.v1.ListEkmConnectionsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Optional. Only include resources that match the filter in the response. For
    * more information, see
@@ -113,13 +78,10 @@ public interface ListEkmConnectionsRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. Only include resources that match the filter in the response. For
    * more information, see
@@ -128,14 +90,12 @@ public interface ListEkmConnectionsRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Optional. Specify how the results should be sorted. If not specified, the
    * results will be sorted in the default order.  For more information, see
@@ -144,13 +104,10 @@ public interface ListEkmConnectionsRequestOrBuilder
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Optional. Specify how the results should be sorted. If not specified, the
    * results will be sorted in the default order.  For more information, see
@@ -159,8 +116,8 @@ public interface ListEkmConnectionsRequestOrBuilder
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListEkmConnectionsResponse.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListEkmConnectionsResponse.java similarity index 73% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListEkmConnectionsResponse.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListEkmConnectionsResponse.java index 83affd9b164f..b6b76c7e09d7 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListEkmConnectionsResponse.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListEkmConnectionsResponse.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/kms/v1/ekm_service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Response message for [KeyManagementService.ListEkmConnections][].
  * 
* * Protobuf type {@code google.cloud.kms.v1.ListEkmConnectionsResponse} */ -public final class ListEkmConnectionsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListEkmConnectionsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.ListEkmConnectionsResponse) ListEkmConnectionsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListEkmConnectionsResponse.newBuilder() to construct. private ListEkmConnectionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListEkmConnectionsResponse() { ekmConnections_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,35 +26,32 @@ private ListEkmConnectionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListEkmConnectionsResponse(); } @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.kms.v1.EkmServiceProto - .internal_static_google_cloud_kms_v1_ListEkmConnectionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_ListEkmConnectionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.v1.EkmServiceProto - .internal_static_google_cloud_kms_v1_ListEkmConnectionsResponse_fieldAccessorTable + return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_ListEkmConnectionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.v1.ListEkmConnectionsResponse.class, - com.google.cloud.kms.v1.ListEkmConnectionsResponse.Builder.class); + com.google.cloud.kms.v1.ListEkmConnectionsResponse.class, com.google.cloud.kms.v1.ListEkmConnectionsResponse.Builder.class); } public static final int EKM_CONNECTIONS_FIELD_NUMBER = 1; private java.util.List ekmConnections_; /** - * - * *
    * The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
    * 
@@ -84,8 +63,6 @@ public java.util.List getEkmConnectionsLi return ekmConnections_; } /** - * - * *
    * The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
    * 
@@ -93,13 +70,11 @@ public java.util.List getEkmConnectionsLi * repeated .google.cloud.kms.v1.EkmConnection ekm_connections = 1; */ @java.lang.Override - public java.util.List + public java.util.List getEkmConnectionsOrBuilderList() { return ekmConnections_; } /** - * - * *
    * The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
    * 
@@ -111,8 +86,6 @@ public int getEkmConnectionsCount() { return ekmConnections_.size(); } /** - * - * *
    * The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
    * 
@@ -124,8 +97,6 @@ public com.google.cloud.kms.v1.EkmConnection getEkmConnections(int index) { return ekmConnections_.get(index); } /** - * - * *
    * The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
    * 
@@ -133,15 +104,14 @@ public com.google.cloud.kms.v1.EkmConnection getEkmConnections(int index) { * repeated .google.cloud.kms.v1.EkmConnection ekm_connections = 1; */ @java.lang.Override - public com.google.cloud.kms.v1.EkmConnectionOrBuilder getEkmConnectionsOrBuilder(int index) { + public com.google.cloud.kms.v1.EkmConnectionOrBuilder getEkmConnectionsOrBuilder( + int index) { return ekmConnections_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListEkmConnectionsRequest.page_token][google.cloud.kms.v1.ListEkmConnectionsRequest.page_token]
@@ -149,7 +119,6 @@ public com.google.cloud.kms.v1.EkmConnectionOrBuilder getEkmConnectionsOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -158,15 +127,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListEkmConnectionsRequest.page_token][google.cloud.kms.v1.ListEkmConnectionsRequest.page_token]
@@ -174,15 +142,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -193,15 +162,12 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int TOTAL_SIZE_FIELD_NUMBER = 3; private int totalSize_; /** - * - * *
    * The total number of [EkmConnections][google.cloud.kms.v1.EkmConnection]
    * that matched the query.
    * 
* * int32 total_size = 3; - * * @return The totalSize. */ @java.lang.Override @@ -210,7 +176,6 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,7 +187,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < ekmConnections_.size(); i++) { output.writeMessage(1, ekmConnections_.get(i)); } @@ -242,13 +208,15 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < ekmConnections_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, ekmConnections_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, ekmConnections_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, totalSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -258,17 +226,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.kms.v1.ListEkmConnectionsResponse)) { return super.equals(obj); } - com.google.cloud.kms.v1.ListEkmConnectionsResponse other = - (com.google.cloud.kms.v1.ListEkmConnectionsResponse) obj; - - if (!getEkmConnectionsList().equals(other.getEkmConnectionsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (getTotalSize() != other.getTotalSize()) return false; + com.google.cloud.kms.v1.ListEkmConnectionsResponse other = (com.google.cloud.kms.v1.ListEkmConnectionsResponse) obj; + + if (!getEkmConnectionsList() + .equals(other.getEkmConnectionsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (getTotalSize() + != other.getTotalSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -294,135 +264,129 @@ public int hashCode() { } public static com.google.cloud.kms.v1.ListEkmConnectionsResponse 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.kms.v1.ListEkmConnectionsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.ListEkmConnectionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ListEkmConnectionsResponse parseFrom( 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.kms.v1.ListEkmConnectionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ListEkmConnectionsResponse parseFrom( - byte[] data, com.google.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.kms.v1.ListEkmConnectionsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.ListEkmConnectionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.ListEkmConnectionsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.ListEkmConnectionsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.ListEkmConnectionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.ListEkmConnectionsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.ListEkmConnectionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.ListEkmConnectionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.ListEkmConnectionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for [KeyManagementService.ListEkmConnections][].
    * 
* * Protobuf type {@code google.cloud.kms.v1.ListEkmConnectionsResponse} */ - public static final class Builder extends 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.kms.v1.ListEkmConnectionsResponse) com.google.cloud.kms.v1.ListEkmConnectionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.kms.v1.EkmServiceProto - .internal_static_google_cloud_kms_v1_ListEkmConnectionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_ListEkmConnectionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.v1.EkmServiceProto - .internal_static_google_cloud_kms_v1_ListEkmConnectionsResponse_fieldAccessorTable + return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_ListEkmConnectionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.v1.ListEkmConnectionsResponse.class, - com.google.cloud.kms.v1.ListEkmConnectionsResponse.Builder.class); + com.google.cloud.kms.v1.ListEkmConnectionsResponse.class, com.google.cloud.kms.v1.ListEkmConnectionsResponse.Builder.class); } // Construct using com.google.cloud.kms.v1.ListEkmConnectionsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -441,9 +405,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.kms.v1.EkmServiceProto - .internal_static_google_cloud_kms_v1_ListEkmConnectionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_ListEkmConnectionsResponse_descriptor; } @java.lang.Override @@ -462,8 +426,7 @@ public com.google.cloud.kms.v1.ListEkmConnectionsResponse build() { @java.lang.Override public com.google.cloud.kms.v1.ListEkmConnectionsResponse buildPartial() { - com.google.cloud.kms.v1.ListEkmConnectionsResponse result = - new com.google.cloud.kms.v1.ListEkmConnectionsResponse(this); + com.google.cloud.kms.v1.ListEkmConnectionsResponse result = new com.google.cloud.kms.v1.ListEkmConnectionsResponse(this); int from_bitField0_ = bitField0_; if (ekmConnectionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -484,39 +447,38 @@ public com.google.cloud.kms.v1.ListEkmConnectionsResponse 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.kms.v1.ListEkmConnectionsResponse) { - return mergeFrom((com.google.cloud.kms.v1.ListEkmConnectionsResponse) other); + return mergeFrom((com.google.cloud.kms.v1.ListEkmConnectionsResponse)other); } else { super.mergeFrom(other); return this; @@ -524,8 +486,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.kms.v1.ListEkmConnectionsResponse other) { - if (other == com.google.cloud.kms.v1.ListEkmConnectionsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.kms.v1.ListEkmConnectionsResponse.getDefaultInstance()) return this; if (ekmConnectionsBuilder_ == null) { if (!other.ekmConnections_.isEmpty()) { if (ekmConnections_.isEmpty()) { @@ -544,10 +505,9 @@ public Builder mergeFrom(com.google.cloud.kms.v1.ListEkmConnectionsResponse othe ekmConnectionsBuilder_ = null; ekmConnections_ = other.ekmConnections_; bitField0_ = (bitField0_ & ~0x00000001); - ekmConnectionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEkmConnectionsFieldBuilder() - : null; + ekmConnectionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEkmConnectionsFieldBuilder() : null; } else { ekmConnectionsBuilder_.addAllMessages(other.ekmConnections_); } @@ -586,38 +546,35 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.kms.v1.EkmConnection m = - input.readMessage( - com.google.cloud.kms.v1.EkmConnection.parser(), extensionRegistry); - if (ekmConnectionsBuilder_ == null) { - ensureEkmConnectionsIsMutable(); - ekmConnections_.add(m); - } else { - ekmConnectionsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: { + com.google.cloud.kms.v1.EkmConnection m = + input.readMessage( + com.google.cloud.kms.v1.EkmConnection.parser(), + extensionRegistry); + if (ekmConnectionsBuilder_ == null) { + ensureEkmConnectionsIsMutable(); + ekmConnections_.add(m); + } else { + ekmConnectionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 24: - { - totalSize_ = input.readInt32(); + break; + } // case 18 + case 24: { + totalSize_ = input.readInt32(); - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -627,29 +584,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List ekmConnections_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureEkmConnectionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - ekmConnections_ = - new java.util.ArrayList(ekmConnections_); + ekmConnections_ = new java.util.ArrayList(ekmConnections_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.v1.EkmConnection, - com.google.cloud.kms.v1.EkmConnection.Builder, - com.google.cloud.kms.v1.EkmConnectionOrBuilder> - ekmConnectionsBuilder_; + com.google.cloud.kms.v1.EkmConnection, com.google.cloud.kms.v1.EkmConnection.Builder, com.google.cloud.kms.v1.EkmConnectionOrBuilder> ekmConnectionsBuilder_; /** - * - * *
      * The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
      * 
@@ -664,8 +613,6 @@ public java.util.List getEkmConnectionsLi } } /** - * - * *
      * The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
      * 
@@ -680,8 +627,6 @@ public int getEkmConnectionsCount() { } } /** - * - * *
      * The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
      * 
@@ -696,15 +641,14 @@ public com.google.cloud.kms.v1.EkmConnection getEkmConnections(int index) { } } /** - * - * *
      * The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
      * 
* * repeated .google.cloud.kms.v1.EkmConnection ekm_connections = 1; */ - public Builder setEkmConnections(int index, com.google.cloud.kms.v1.EkmConnection value) { + public Builder setEkmConnections( + int index, com.google.cloud.kms.v1.EkmConnection value) { if (ekmConnectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -718,8 +662,6 @@ public Builder setEkmConnections(int index, com.google.cloud.kms.v1.EkmConnectio return this; } /** - * - * *
      * The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
      * 
@@ -738,8 +680,6 @@ public Builder setEkmConnections( return this; } /** - * - * *
      * The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
      * 
@@ -760,15 +700,14 @@ public Builder addEkmConnections(com.google.cloud.kms.v1.EkmConnection value) { return this; } /** - * - * *
      * The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
      * 
* * repeated .google.cloud.kms.v1.EkmConnection ekm_connections = 1; */ - public Builder addEkmConnections(int index, com.google.cloud.kms.v1.EkmConnection value) { + public Builder addEkmConnections( + int index, com.google.cloud.kms.v1.EkmConnection value) { if (ekmConnectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -782,8 +721,6 @@ public Builder addEkmConnections(int index, com.google.cloud.kms.v1.EkmConnectio return this; } /** - * - * *
      * The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
      * 
@@ -802,8 +739,6 @@ public Builder addEkmConnections( return this; } /** - * - * *
      * The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
      * 
@@ -822,8 +757,6 @@ public Builder addEkmConnections( return this; } /** - * - * *
      * The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
      * 
@@ -834,7 +767,8 @@ public Builder addAllEkmConnections( java.lang.Iterable values) { if (ekmConnectionsBuilder_ == null) { ensureEkmConnectionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ekmConnections_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ekmConnections_); onChanged(); } else { ekmConnectionsBuilder_.addAllMessages(values); @@ -842,8 +776,6 @@ public Builder addAllEkmConnections( return this; } /** - * - * *
      * The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
      * 
@@ -861,8 +793,6 @@ public Builder clearEkmConnections() { return this; } /** - * - * *
      * The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
      * 
@@ -880,44 +810,39 @@ public Builder removeEkmConnections(int index) { return this; } /** - * - * *
      * The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
      * 
* * repeated .google.cloud.kms.v1.EkmConnection ekm_connections = 1; */ - public com.google.cloud.kms.v1.EkmConnection.Builder getEkmConnectionsBuilder(int index) { + public com.google.cloud.kms.v1.EkmConnection.Builder getEkmConnectionsBuilder( + int index) { return getEkmConnectionsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
      * 
* * repeated .google.cloud.kms.v1.EkmConnection ekm_connections = 1; */ - public com.google.cloud.kms.v1.EkmConnectionOrBuilder getEkmConnectionsOrBuilder(int index) { + public com.google.cloud.kms.v1.EkmConnectionOrBuilder getEkmConnectionsOrBuilder( + int index) { if (ekmConnectionsBuilder_ == null) { - return ekmConnections_.get(index); - } else { + return ekmConnections_.get(index); } else { return ekmConnectionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
      * 
* * repeated .google.cloud.kms.v1.EkmConnection ekm_connections = 1; */ - public java.util.List - getEkmConnectionsOrBuilderList() { + public java.util.List + getEkmConnectionsOrBuilderList() { if (ekmConnectionsBuilder_ != null) { return ekmConnectionsBuilder_.getMessageOrBuilderList(); } else { @@ -925,8 +850,6 @@ public com.google.cloud.kms.v1.EkmConnectionOrBuilder getEkmConnectionsOrBuilder } } /** - * - * *
      * The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
      * 
@@ -934,47 +857,38 @@ public com.google.cloud.kms.v1.EkmConnectionOrBuilder getEkmConnectionsOrBuilder * repeated .google.cloud.kms.v1.EkmConnection ekm_connections = 1; */ public com.google.cloud.kms.v1.EkmConnection.Builder addEkmConnectionsBuilder() { - return getEkmConnectionsFieldBuilder() - .addBuilder(com.google.cloud.kms.v1.EkmConnection.getDefaultInstance()); + return getEkmConnectionsFieldBuilder().addBuilder( + com.google.cloud.kms.v1.EkmConnection.getDefaultInstance()); } /** - * - * *
      * The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
      * 
* * repeated .google.cloud.kms.v1.EkmConnection ekm_connections = 1; */ - public com.google.cloud.kms.v1.EkmConnection.Builder addEkmConnectionsBuilder(int index) { - return getEkmConnectionsFieldBuilder() - .addBuilder(index, com.google.cloud.kms.v1.EkmConnection.getDefaultInstance()); + public com.google.cloud.kms.v1.EkmConnection.Builder addEkmConnectionsBuilder( + int index) { + return getEkmConnectionsFieldBuilder().addBuilder( + index, com.google.cloud.kms.v1.EkmConnection.getDefaultInstance()); } /** - * - * *
      * The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
      * 
* * repeated .google.cloud.kms.v1.EkmConnection ekm_connections = 1; */ - public java.util.List - getEkmConnectionsBuilderList() { + public java.util.List + getEkmConnectionsBuilderList() { return getEkmConnectionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.v1.EkmConnection, - com.google.cloud.kms.v1.EkmConnection.Builder, - com.google.cloud.kms.v1.EkmConnectionOrBuilder> + com.google.cloud.kms.v1.EkmConnection, com.google.cloud.kms.v1.EkmConnection.Builder, com.google.cloud.kms.v1.EkmConnectionOrBuilder> getEkmConnectionsFieldBuilder() { if (ekmConnectionsBuilder_ == null) { - ekmConnectionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.v1.EkmConnection, - com.google.cloud.kms.v1.EkmConnection.Builder, - com.google.cloud.kms.v1.EkmConnectionOrBuilder>( + ekmConnectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.kms.v1.EkmConnection, com.google.cloud.kms.v1.EkmConnection.Builder, com.google.cloud.kms.v1.EkmConnectionOrBuilder>( ekmConnections_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -986,8 +900,6 @@ public com.google.cloud.kms.v1.EkmConnection.Builder addEkmConnectionsBuilder(in private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListEkmConnectionsRequest.page_token][google.cloud.kms.v1.ListEkmConnectionsRequest.page_token]
@@ -995,13 +907,13 @@ public com.google.cloud.kms.v1.EkmConnection.Builder addEkmConnectionsBuilder(in
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1010,8 +922,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListEkmConnectionsRequest.page_token][google.cloud.kms.v1.ListEkmConnectionsRequest.page_token]
@@ -1019,14 +929,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1034,8 +945,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListEkmConnectionsRequest.page_token][google.cloud.kms.v1.ListEkmConnectionsRequest.page_token]
@@ -1043,22 +952,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListEkmConnectionsRequest.page_token][google.cloud.kms.v1.ListEkmConnectionsRequest.page_token]
@@ -1066,18 +973,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListEkmConnectionsRequest.page_token][google.cloud.kms.v1.ListEkmConnectionsRequest.page_token]
@@ -1085,32 +989,29 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_; + private int totalSize_ ; /** - * - * *
      * The total number of [EkmConnections][google.cloud.kms.v1.EkmConnection]
      * that matched the query.
      * 
* * int32 total_size = 3; - * * @return The totalSize. */ @java.lang.Override @@ -1118,45 +1019,39 @@ public int getTotalSize() { return totalSize_; } /** - * - * *
      * The total number of [EkmConnections][google.cloud.kms.v1.EkmConnection]
      * that matched the query.
      * 
* * int32 total_size = 3; - * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** - * - * *
      * The total number of [EkmConnections][google.cloud.kms.v1.EkmConnection]
      * that matched the query.
      * 
* * int32 total_size = 3; - * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 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); } @@ -1166,12 +1061,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.ListEkmConnectionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.ListEkmConnectionsResponse) private static final com.google.cloud.kms.v1.ListEkmConnectionsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.ListEkmConnectionsResponse(); } @@ -1180,27 +1075,27 @@ public static com.google.cloud.kms.v1.ListEkmConnectionsResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEkmConnectionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEkmConnectionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1215,4 +1110,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.kms.v1.ListEkmConnectionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListEkmConnectionsResponseOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListEkmConnectionsResponseOrBuilder.java similarity index 72% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListEkmConnectionsResponseOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListEkmConnectionsResponseOrBuilder.java index 7277b536e04c..73645b92e7d4 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListEkmConnectionsResponseOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListEkmConnectionsResponseOrBuilder.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/kms/v1/ekm_service.proto package com.google.cloud.kms.v1; -public interface ListEkmConnectionsResponseOrBuilder - extends +public interface ListEkmConnectionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.ListEkmConnectionsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
    * 
* * repeated .google.cloud.kms.v1.EkmConnection ekm_connections = 1; */ - java.util.List getEkmConnectionsList(); + java.util.List + getEkmConnectionsList(); /** - * - * *
    * The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
    * 
@@ -44,8 +25,6 @@ public interface ListEkmConnectionsResponseOrBuilder */ com.google.cloud.kms.v1.EkmConnection getEkmConnections(int index); /** - * - * *
    * The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
    * 
@@ -54,30 +33,25 @@ public interface ListEkmConnectionsResponseOrBuilder */ int getEkmConnectionsCount(); /** - * - * *
    * The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
    * 
* * repeated .google.cloud.kms.v1.EkmConnection ekm_connections = 1; */ - java.util.List + java.util.List getEkmConnectionsOrBuilderList(); /** - * - * *
    * The list of [EkmConnections][google.cloud.kms.v1.EkmConnection].
    * 
* * repeated .google.cloud.kms.v1.EkmConnection ekm_connections = 1; */ - com.google.cloud.kms.v1.EkmConnectionOrBuilder getEkmConnectionsOrBuilder(int index); + com.google.cloud.kms.v1.EkmConnectionOrBuilder getEkmConnectionsOrBuilder( + int index); /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListEkmConnectionsRequest.page_token][google.cloud.kms.v1.ListEkmConnectionsRequest.page_token]
@@ -85,13 +59,10 @@ public interface ListEkmConnectionsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListEkmConnectionsRequest.page_token][google.cloud.kms.v1.ListEkmConnectionsRequest.page_token]
@@ -99,21 +70,18 @@ public interface ListEkmConnectionsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * The total number of [EkmConnections][google.cloud.kms.v1.EkmConnection]
    * that matched the query.
    * 
* * int32 total_size = 3; - * * @return The totalSize. */ int getTotalSize(); diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListImportJobsRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListImportJobsRequest.java similarity index 73% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListImportJobsRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListImportJobsRequest.java index 194a7ea8fd50..1a4244fcdf1a 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListImportJobsRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListImportJobsRequest.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for
  * [KeyManagementService.ListImportJobs][google.cloud.kms.v1.KeyManagementService.ListImportJobs].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.ListImportJobsRequest}
  */
-public final class ListImportJobsRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListImportJobsRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.ListImportJobsRequest)
     ListImportJobsRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListImportJobsRequest.newBuilder() to construct.
   private ListImportJobsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListImportJobsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -47,44 +29,38 @@ private ListImportJobsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListImportJobsRequest();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_ListImportJobsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListImportJobsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_ListImportJobsRequest_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListImportJobsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.ListImportJobsRequest.class,
-            com.google.cloud.kms.v1.ListImportJobsRequest.Builder.class);
+            com.google.cloud.kms.v1.ListImportJobsRequest.class, com.google.cloud.kms.v1.ListImportJobsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
-   *
-   *
    * 
    * Required. The resource name of the [KeyRing][google.cloud.kms.v1.KeyRing]
    * to list, in the format `projects/*/locations/*/keyRings/*`.
    * 
* - * - * string parent = 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,32 +69,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The resource name of the [KeyRing][google.cloud.kms.v1.KeyRing]
    * to list, in the format `projects/*/locations/*/keyRings/*`.
    * 
* - * - * string parent = 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 { @@ -129,8 +103,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. Optional limit on the number of
    * [ImportJobs][google.cloud.kms.v1.ImportJob] to include in the response.
@@ -142,7 +114,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -153,15 +124,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. Optional pagination token, returned earlier via
    * [ListImportJobsResponse.next_page_token][google.cloud.kms.v1.ListImportJobsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -170,30 +138,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. Optional pagination token, returned earlier via
    * [ListImportJobsResponse.next_page_token][google.cloud.kms.v1.ListImportJobsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -204,8 +172,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * Optional. Only include resources that match the filter in the response. For
    * more information, see
@@ -214,7 +180,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -223,15 +188,14 @@ 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; } } /** - * - * *
    * Optional. Only include resources that match the filter in the response. For
    * more information, see
@@ -240,15 +204,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -259,8 +224,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** - * - * *
    * Optional. Specify how the results should be sorted. If not specified, the
    * results will be sorted in the default order. For more information, see
@@ -269,7 +232,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ @java.lang.Override @@ -278,15 +240,14 @@ 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; } } /** - * - * *
    * Optional. Specify how the results should be sorted. If not specified, the
    * results will be sorted in the default order. For more information, see
@@ -295,15 +256,16 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -312,7 +274,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,7 +285,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -353,7 +315,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_); @@ -372,19 +335,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.kms.v1.ListImportJobsRequest)) { return super.equals(obj); } - com.google.cloud.kms.v1.ListImportJobsRequest other = - (com.google.cloud.kms.v1.ListImportJobsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.kms.v1.ListImportJobsRequest other = (com.google.cloud.kms.v1.ListImportJobsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -411,104 +378,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.ListImportJobsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.ListImportJobsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ListImportJobsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.ListImportJobsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ListImportJobsRequest parseFrom( 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.kms.v1.ListImportJobsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ListImportJobsRequest parseFrom( - byte[] data, com.google.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.kms.v1.ListImportJobsRequest parseFrom(java.io.InputStream input) 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.kms.v1.ListImportJobsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.ListImportJobsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.ListImportJobsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.ListImportJobsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.ListImportJobsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.ListImportJobsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.ListImportJobsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for
    * [KeyManagementService.ListImportJobs][google.cloud.kms.v1.KeyManagementService.ListImportJobs].
@@ -516,32 +476,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.ListImportJobsRequest}
    */
-  public static final class Builder extends 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.kms.v1.ListImportJobsRequest)
       com.google.cloud.kms.v1.ListImportJobsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_ListImportJobsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListImportJobsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_ListImportJobsRequest_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListImportJobsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.ListImportJobsRequest.class,
-              com.google.cloud.kms.v1.ListImportJobsRequest.Builder.class);
+              com.google.cloud.kms.v1.ListImportJobsRequest.class, com.google.cloud.kms.v1.ListImportJobsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.ListImportJobsRequest.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();
@@ -559,9 +520,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_ListImportJobsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListImportJobsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -580,8 +541,7 @@ public com.google.cloud.kms.v1.ListImportJobsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.ListImportJobsRequest buildPartial() {
-      com.google.cloud.kms.v1.ListImportJobsRequest result =
-          new com.google.cloud.kms.v1.ListImportJobsRequest(this);
+      com.google.cloud.kms.v1.ListImportJobsRequest result = new com.google.cloud.kms.v1.ListImportJobsRequest(this);
       result.parent_ = parent_;
       result.pageSize_ = pageSize_;
       result.pageToken_ = pageToken_;
@@ -595,39 +555,38 @@ public com.google.cloud.kms.v1.ListImportJobsRequest 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.kms.v1.ListImportJobsRequest) {
-        return mergeFrom((com.google.cloud.kms.v1.ListImportJobsRequest) other);
+        return mergeFrom((com.google.cloud.kms.v1.ListImportJobsRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -681,43 +640,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:
-              {
-                filter_ = input.readStringRequireUtf8();
+              break;
+            } // case 26
+            case 34: {
+              filter_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 34
-            case 42:
-              {
-                orderBy_ = input.readStringRequireUtf8();
+              break;
+            } // case 34
+            case 42: {
+              orderBy_ = 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) {
@@ -730,23 +683,19 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the [KeyRing][google.cloud.kms.v1.KeyRing]
      * to list, in the format `projects/*/locations/*/keyRings/*`.
      * 
* - * - * string parent = 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; @@ -755,24 +704,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the [KeyRing][google.cloud.kms.v1.KeyRing]
      * to list, in the format `projects/*/locations/*/keyRings/*`.
      * 
* - * - * string parent = 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 { @@ -780,79 +726,64 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the [KeyRing][google.cloud.kms.v1.KeyRing]
      * to list, in the format `projects/*/locations/*/keyRings/*`.
      * 
* - * - * 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 resource name of the [KeyRing][google.cloud.kms.v1.KeyRing]
      * to list, in the format `projects/*/locations/*/keyRings/*`.
      * 
* - * - * string 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 resource name of the [KeyRing][google.cloud.kms.v1.KeyRing]
      * to list, in the format `projects/*/locations/*/keyRings/*`.
      * 
* - * - * 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_ ; /** - * - * *
      * Optional. Optional limit on the number of
      * [ImportJobs][google.cloud.kms.v1.ImportJob] to include in the response.
@@ -864,7 +795,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -872,8 +802,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Optional limit on the number of
      * [ImportJobs][google.cloud.kms.v1.ImportJob] to include in the response.
@@ -885,19 +813,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Optional limit on the number of
      * [ImportJobs][google.cloud.kms.v1.ImportJob] to include in the response.
@@ -909,11 +834,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -921,21 +845,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. Optional pagination token, returned earlier via
      * [ListImportJobsResponse.next_page_token][google.cloud.kms.v1.ListImportJobsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -944,22 +866,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. Optional pagination token, returned earlier via
      * [ListImportJobsResponse.next_page_token][google.cloud.kms.v1.ListImportJobsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -967,64 +888,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. Optional pagination token, returned earlier via
      * [ListImportJobsResponse.next_page_token][google.cloud.kms.v1.ListImportJobsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Optional pagination token, returned earlier via
      * [ListImportJobsResponse.next_page_token][google.cloud.kms.v1.ListImportJobsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. Optional pagination token, returned earlier via
      * [ListImportJobsResponse.next_page_token][google.cloud.kms.v1.ListImportJobsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + 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; @@ -1032,8 +946,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Only include resources that match the filter in the response. For
      * more information, see
@@ -1042,13 +954,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1057,8 +969,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Only include resources that match the filter in the response. For
      * more information, see
@@ -1067,14 +977,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1082,8 +993,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Only include resources that match the filter in the response. For
      * more information, see
@@ -1092,22 +1001,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. Only include resources that match the filter in the response. For
      * more information, see
@@ -1116,18 +1023,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Optional. Only include resources that match the filter in the response. For
      * more information, see
@@ -1136,16 +1040,16 @@ public Builder clearFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1153,8 +1057,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Optional. Specify how the results should be sorted. If not specified, the
      * results will be sorted in the default order. For more information, see
@@ -1163,13 +1065,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1178,8 +1080,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Optional. Specify how the results should be sorted. If not specified, the
      * results will be sorted in the default order. For more information, see
@@ -1188,14 +1088,15 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1203,8 +1104,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Optional. Specify how the results should be sorted. If not specified, the
      * results will be sorted in the default order. For more information, see
@@ -1213,22 +1112,20 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. Specify how the results should be sorted. If not specified, the
      * results will be sorted in the default order. For more information, see
@@ -1237,18 +1134,15 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Optional. Specify how the results should be sorted. If not specified, the
      * results will be sorted in the default order. For more information, see
@@ -1257,23 +1151,23 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1283,12 +1177,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.ListImportJobsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.ListImportJobsRequest) private static final com.google.cloud.kms.v1.ListImportJobsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.ListImportJobsRequest(); } @@ -1297,27 +1191,27 @@ public static com.google.cloud.kms.v1.ListImportJobsRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListImportJobsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListImportJobsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1332,4 +1226,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.ListImportJobsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListImportJobsRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListImportJobsRequestOrBuilder.java similarity index 74% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListImportJobsRequestOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListImportJobsRequestOrBuilder.java index e3501bf0584a..ecf77300c67b 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListImportJobsRequestOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListImportJobsRequestOrBuilder.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/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface ListImportJobsRequestOrBuilder - extends +public interface ListImportJobsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.ListImportJobsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the [KeyRing][google.cloud.kms.v1.KeyRing]
    * to list, in the format `projects/*/locations/*/keyRings/*`.
    * 
* - * - * string parent = 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 resource name of the [KeyRing][google.cloud.kms.v1.KeyRing]
    * to list, in the format `projects/*/locations/*/keyRings/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. Optional limit on the number of
    * [ImportJobs][google.cloud.kms.v1.ImportJob] to include in the response.
@@ -68,41 +41,33 @@ public interface ListImportJobsRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. Optional pagination token, returned earlier via
    * [ListImportJobsResponse.next_page_token][google.cloud.kms.v1.ListImportJobsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. Optional pagination token, returned earlier via
    * [ListImportJobsResponse.next_page_token][google.cloud.kms.v1.ListImportJobsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Optional. Only include resources that match the filter in the response. For
    * more information, see
@@ -111,13 +76,10 @@ public interface ListImportJobsRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. Only include resources that match the filter in the response. For
    * more information, see
@@ -126,14 +88,12 @@ public interface ListImportJobsRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Optional. Specify how the results should be sorted. If not specified, the
    * results will be sorted in the default order. For more information, see
@@ -142,13 +102,10 @@ public interface ListImportJobsRequestOrBuilder
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Optional. Specify how the results should be sorted. If not specified, the
    * results will be sorted in the default order. For more information, see
@@ -157,8 +114,8 @@ public interface ListImportJobsRequestOrBuilder
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListImportJobsResponse.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListImportJobsResponse.java similarity index 73% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListImportJobsResponse.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListImportJobsResponse.java index 62b63d7966aa..8a305b0128a8 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListImportJobsResponse.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListImportJobsResponse.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Response message for
  * [KeyManagementService.ListImportJobs][google.cloud.kms.v1.KeyManagementService.ListImportJobs].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.ListImportJobsResponse}
  */
-public final class ListImportJobsResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListImportJobsResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.ListImportJobsResponse)
     ListImportJobsResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListImportJobsResponse.newBuilder() to construct.
   private ListImportJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListImportJobsResponse() {
     importJobs_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -45,35 +27,32 @@ private ListImportJobsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListImportJobsResponse();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_ListImportJobsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListImportJobsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_ListImportJobsResponse_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListImportJobsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.ListImportJobsResponse.class,
-            com.google.cloud.kms.v1.ListImportJobsResponse.Builder.class);
+            com.google.cloud.kms.v1.ListImportJobsResponse.class, com.google.cloud.kms.v1.ListImportJobsResponse.Builder.class);
   }
 
   public static final int IMPORT_JOBS_FIELD_NUMBER = 1;
   private java.util.List importJobs_;
   /**
-   *
-   *
    * 
    * The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
    * 
@@ -85,8 +64,6 @@ public java.util.List getImportJobsList() { return importJobs_; } /** - * - * *
    * The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
    * 
@@ -94,13 +71,11 @@ public java.util.List getImportJobsList() { * repeated .google.cloud.kms.v1.ImportJob import_jobs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getImportJobsOrBuilderList() { return importJobs_; } /** - * - * *
    * The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
    * 
@@ -112,8 +87,6 @@ public int getImportJobsCount() { return importJobs_.size(); } /** - * - * *
    * The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
    * 
@@ -125,8 +98,6 @@ public com.google.cloud.kms.v1.ImportJob getImportJobs(int index) { return importJobs_.get(index); } /** - * - * *
    * The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
    * 
@@ -134,15 +105,14 @@ public com.google.cloud.kms.v1.ImportJob getImportJobs(int index) { * repeated .google.cloud.kms.v1.ImportJob import_jobs = 1; */ @java.lang.Override - public com.google.cloud.kms.v1.ImportJobOrBuilder getImportJobsOrBuilder(int index) { + public com.google.cloud.kms.v1.ImportJobOrBuilder getImportJobsOrBuilder( + int index) { return importJobs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListImportJobsRequest.page_token][google.cloud.kms.v1.ListImportJobsRequest.page_token]
@@ -150,7 +120,6 @@ public com.google.cloud.kms.v1.ImportJobOrBuilder getImportJobsOrBuilder(int ind
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -159,15 +128,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListImportJobsRequest.page_token][google.cloud.kms.v1.ListImportJobsRequest.page_token]
@@ -175,15 +143,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -194,15 +163,12 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int TOTAL_SIZE_FIELD_NUMBER = 3; private int totalSize_; /** - * - * *
    * The total number of [ImportJobs][google.cloud.kms.v1.ImportJob] that
    * matched the query.
    * 
* * int32 total_size = 3; - * * @return The totalSize. */ @java.lang.Override @@ -211,7 +177,6 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -223,7 +188,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < importJobs_.size(); i++) { output.writeMessage(1, importJobs_.get(i)); } @@ -243,13 +209,15 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < importJobs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, importJobs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, importJobs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, totalSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -259,17 +227,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.kms.v1.ListImportJobsResponse)) { return super.equals(obj); } - com.google.cloud.kms.v1.ListImportJobsResponse other = - (com.google.cloud.kms.v1.ListImportJobsResponse) obj; - - if (!getImportJobsList().equals(other.getImportJobsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (getTotalSize() != other.getTotalSize()) return false; + com.google.cloud.kms.v1.ListImportJobsResponse other = (com.google.cloud.kms.v1.ListImportJobsResponse) obj; + + if (!getImportJobsList() + .equals(other.getImportJobsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (getTotalSize() + != other.getTotalSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -294,104 +264,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.ListImportJobsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.ListImportJobsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ListImportJobsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.ListImportJobsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ListImportJobsResponse parseFrom( 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.kms.v1.ListImportJobsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ListImportJobsResponse parseFrom( - byte[] data, com.google.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.kms.v1.ListImportJobsResponse parseFrom(java.io.InputStream input) 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.kms.v1.ListImportJobsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.ListImportJobsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.ListImportJobsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.ListImportJobsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.ListImportJobsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.ListImportJobsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.ListImportJobsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for
    * [KeyManagementService.ListImportJobs][google.cloud.kms.v1.KeyManagementService.ListImportJobs].
@@ -399,32 +362,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.ListImportJobsResponse}
    */
-  public static final class Builder extends 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.kms.v1.ListImportJobsResponse)
       com.google.cloud.kms.v1.ListImportJobsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_ListImportJobsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListImportJobsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_ListImportJobsResponse_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListImportJobsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.ListImportJobsResponse.class,
-              com.google.cloud.kms.v1.ListImportJobsResponse.Builder.class);
+              com.google.cloud.kms.v1.ListImportJobsResponse.class, com.google.cloud.kms.v1.ListImportJobsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.ListImportJobsResponse.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();
@@ -443,9 +407,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_ListImportJobsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListImportJobsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -464,8 +428,7 @@ public com.google.cloud.kms.v1.ListImportJobsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.ListImportJobsResponse buildPartial() {
-      com.google.cloud.kms.v1.ListImportJobsResponse result =
-          new com.google.cloud.kms.v1.ListImportJobsResponse(this);
+      com.google.cloud.kms.v1.ListImportJobsResponse result = new com.google.cloud.kms.v1.ListImportJobsResponse(this);
       int from_bitField0_ = bitField0_;
       if (importJobsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -486,39 +449,38 @@ public com.google.cloud.kms.v1.ListImportJobsResponse 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.kms.v1.ListImportJobsResponse) {
-        return mergeFrom((com.google.cloud.kms.v1.ListImportJobsResponse) other);
+        return mergeFrom((com.google.cloud.kms.v1.ListImportJobsResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -545,10 +507,9 @@ public Builder mergeFrom(com.google.cloud.kms.v1.ListImportJobsResponse other) {
             importJobsBuilder_ = null;
             importJobs_ = other.importJobs_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            importJobsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getImportJobsFieldBuilder()
-                    : null;
+            importJobsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getImportJobsFieldBuilder() : null;
           } else {
             importJobsBuilder_.addAllMessages(other.importJobs_);
           }
@@ -587,38 +548,35 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.kms.v1.ImportJob m =
-                    input.readMessage(
-                        com.google.cloud.kms.v1.ImportJob.parser(), extensionRegistry);
-                if (importJobsBuilder_ == null) {
-                  ensureImportJobsIsMutable();
-                  importJobs_.add(m);
-                } else {
-                  importJobsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                nextPageToken_ = input.readStringRequireUtf8();
+            case 10: {
+              com.google.cloud.kms.v1.ImportJob m =
+                  input.readMessage(
+                      com.google.cloud.kms.v1.ImportJob.parser(),
+                      extensionRegistry);
+              if (importJobsBuilder_ == null) {
+                ensureImportJobsIsMutable();
+                importJobs_.add(m);
+              } else {
+                importJobsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              nextPageToken_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 18
-            case 24:
-              {
-                totalSize_ = input.readInt32();
+              break;
+            } // case 18
+            case 24: {
+              totalSize_ = input.readInt32();
 
-                break;
-              } // case 24
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              break;
+            } // case 24
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -628,28 +586,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List importJobs_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureImportJobsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         importJobs_ = new java.util.ArrayList(importJobs_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.kms.v1.ImportJob,
-            com.google.cloud.kms.v1.ImportJob.Builder,
-            com.google.cloud.kms.v1.ImportJobOrBuilder>
-        importJobsBuilder_;
+        com.google.cloud.kms.v1.ImportJob, com.google.cloud.kms.v1.ImportJob.Builder, com.google.cloud.kms.v1.ImportJobOrBuilder> importJobsBuilder_;
 
     /**
-     *
-     *
      * 
      * The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
      * 
@@ -664,8 +615,6 @@ public java.util.List getImportJobsList() { } } /** - * - * *
      * The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
      * 
@@ -680,8 +629,6 @@ public int getImportJobsCount() { } } /** - * - * *
      * The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
      * 
@@ -696,15 +643,14 @@ public com.google.cloud.kms.v1.ImportJob getImportJobs(int index) { } } /** - * - * *
      * The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
      * 
* * repeated .google.cloud.kms.v1.ImportJob import_jobs = 1; */ - public Builder setImportJobs(int index, com.google.cloud.kms.v1.ImportJob value) { + public Builder setImportJobs( + int index, com.google.cloud.kms.v1.ImportJob value) { if (importJobsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -718,8 +664,6 @@ public Builder setImportJobs(int index, com.google.cloud.kms.v1.ImportJob value) return this; } /** - * - * *
      * The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
      * 
@@ -738,8 +682,6 @@ public Builder setImportJobs( return this; } /** - * - * *
      * The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
      * 
@@ -760,15 +702,14 @@ public Builder addImportJobs(com.google.cloud.kms.v1.ImportJob value) { return this; } /** - * - * *
      * The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
      * 
* * repeated .google.cloud.kms.v1.ImportJob import_jobs = 1; */ - public Builder addImportJobs(int index, com.google.cloud.kms.v1.ImportJob value) { + public Builder addImportJobs( + int index, com.google.cloud.kms.v1.ImportJob value) { if (importJobsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -782,15 +723,14 @@ public Builder addImportJobs(int index, com.google.cloud.kms.v1.ImportJob value) return this; } /** - * - * *
      * The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
      * 
* * repeated .google.cloud.kms.v1.ImportJob import_jobs = 1; */ - public Builder addImportJobs(com.google.cloud.kms.v1.ImportJob.Builder builderForValue) { + public Builder addImportJobs( + com.google.cloud.kms.v1.ImportJob.Builder builderForValue) { if (importJobsBuilder_ == null) { ensureImportJobsIsMutable(); importJobs_.add(builderForValue.build()); @@ -801,8 +741,6 @@ public Builder addImportJobs(com.google.cloud.kms.v1.ImportJob.Builder builderFo return this; } /** - * - * *
      * The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
      * 
@@ -821,8 +759,6 @@ public Builder addImportJobs( return this; } /** - * - * *
      * The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
      * 
@@ -833,7 +769,8 @@ public Builder addAllImportJobs( java.lang.Iterable values) { if (importJobsBuilder_ == null) { ensureImportJobsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, importJobs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, importJobs_); onChanged(); } else { importJobsBuilder_.addAllMessages(values); @@ -841,8 +778,6 @@ public Builder addAllImportJobs( return this; } /** - * - * *
      * The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
      * 
@@ -860,8 +795,6 @@ public Builder clearImportJobs() { return this; } /** - * - * *
      * The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
      * 
@@ -879,44 +812,39 @@ public Builder removeImportJobs(int index) { return this; } /** - * - * *
      * The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
      * 
* * repeated .google.cloud.kms.v1.ImportJob import_jobs = 1; */ - public com.google.cloud.kms.v1.ImportJob.Builder getImportJobsBuilder(int index) { + public com.google.cloud.kms.v1.ImportJob.Builder getImportJobsBuilder( + int index) { return getImportJobsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
      * 
* * repeated .google.cloud.kms.v1.ImportJob import_jobs = 1; */ - public com.google.cloud.kms.v1.ImportJobOrBuilder getImportJobsOrBuilder(int index) { + public com.google.cloud.kms.v1.ImportJobOrBuilder getImportJobsOrBuilder( + int index) { if (importJobsBuilder_ == null) { - return importJobs_.get(index); - } else { + return importJobs_.get(index); } else { return importJobsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
      * 
* * repeated .google.cloud.kms.v1.ImportJob import_jobs = 1; */ - public java.util.List - getImportJobsOrBuilderList() { + public java.util.List + getImportJobsOrBuilderList() { if (importJobsBuilder_ != null) { return importJobsBuilder_.getMessageOrBuilderList(); } else { @@ -924,8 +852,6 @@ public com.google.cloud.kms.v1.ImportJobOrBuilder getImportJobsOrBuilder(int ind } } /** - * - * *
      * The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
      * 
@@ -933,47 +859,42 @@ public com.google.cloud.kms.v1.ImportJobOrBuilder getImportJobsOrBuilder(int ind * repeated .google.cloud.kms.v1.ImportJob import_jobs = 1; */ public com.google.cloud.kms.v1.ImportJob.Builder addImportJobsBuilder() { - return getImportJobsFieldBuilder() - .addBuilder(com.google.cloud.kms.v1.ImportJob.getDefaultInstance()); + return getImportJobsFieldBuilder().addBuilder( + com.google.cloud.kms.v1.ImportJob.getDefaultInstance()); } /** - * - * *
      * The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
      * 
* * repeated .google.cloud.kms.v1.ImportJob import_jobs = 1; */ - public com.google.cloud.kms.v1.ImportJob.Builder addImportJobsBuilder(int index) { - return getImportJobsFieldBuilder() - .addBuilder(index, com.google.cloud.kms.v1.ImportJob.getDefaultInstance()); + public com.google.cloud.kms.v1.ImportJob.Builder addImportJobsBuilder( + int index) { + return getImportJobsFieldBuilder().addBuilder( + index, com.google.cloud.kms.v1.ImportJob.getDefaultInstance()); } /** - * - * *
      * The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
      * 
* * repeated .google.cloud.kms.v1.ImportJob import_jobs = 1; */ - public java.util.List getImportJobsBuilderList() { + public java.util.List + getImportJobsBuilderList() { return getImportJobsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.v1.ImportJob, - com.google.cloud.kms.v1.ImportJob.Builder, - com.google.cloud.kms.v1.ImportJobOrBuilder> + com.google.cloud.kms.v1.ImportJob, com.google.cloud.kms.v1.ImportJob.Builder, com.google.cloud.kms.v1.ImportJobOrBuilder> getImportJobsFieldBuilder() { if (importJobsBuilder_ == null) { - importJobsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.v1.ImportJob, - com.google.cloud.kms.v1.ImportJob.Builder, - com.google.cloud.kms.v1.ImportJobOrBuilder>( - importJobs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + importJobsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.kms.v1.ImportJob, com.google.cloud.kms.v1.ImportJob.Builder, com.google.cloud.kms.v1.ImportJobOrBuilder>( + importJobs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); importJobs_ = null; } return importJobsBuilder_; @@ -981,8 +902,6 @@ public java.util.List getImportJobsBu private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListImportJobsRequest.page_token][google.cloud.kms.v1.ListImportJobsRequest.page_token]
@@ -990,13 +909,13 @@ public java.util.List getImportJobsBu
      * 
* * 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; @@ -1005,8 +924,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListImportJobsRequest.page_token][google.cloud.kms.v1.ListImportJobsRequest.page_token]
@@ -1014,14 +931,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1029,8 +947,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListImportJobsRequest.page_token][google.cloud.kms.v1.ListImportJobsRequest.page_token]
@@ -1038,22 +954,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListImportJobsRequest.page_token][google.cloud.kms.v1.ListImportJobsRequest.page_token]
@@ -1061,18 +975,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListImportJobsRequest.page_token][google.cloud.kms.v1.ListImportJobsRequest.page_token]
@@ -1080,32 +991,29 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_; + private int totalSize_ ; /** - * - * *
      * The total number of [ImportJobs][google.cloud.kms.v1.ImportJob] that
      * matched the query.
      * 
* * int32 total_size = 3; - * * @return The totalSize. */ @java.lang.Override @@ -1113,45 +1021,39 @@ public int getTotalSize() { return totalSize_; } /** - * - * *
      * The total number of [ImportJobs][google.cloud.kms.v1.ImportJob] that
      * matched the query.
      * 
* * int32 total_size = 3; - * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** - * - * *
      * The total number of [ImportJobs][google.cloud.kms.v1.ImportJob] that
      * matched the query.
      * 
* * int32 total_size = 3; - * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 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); } @@ -1161,12 +1063,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.ListImportJobsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.ListImportJobsResponse) private static final com.google.cloud.kms.v1.ListImportJobsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.ListImportJobsResponse(); } @@ -1175,27 +1077,27 @@ public static com.google.cloud.kms.v1.ListImportJobsResponse getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListImportJobsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListImportJobsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1210,4 +1112,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.ListImportJobsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListImportJobsResponseOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListImportJobsResponseOrBuilder.java similarity index 71% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListImportJobsResponseOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListImportJobsResponseOrBuilder.java index 25ff17240b45..9452dfbe8328 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListImportJobsResponseOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListImportJobsResponseOrBuilder.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/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface ListImportJobsResponseOrBuilder - extends +public interface ListImportJobsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.ListImportJobsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
    * 
* * repeated .google.cloud.kms.v1.ImportJob import_jobs = 1; */ - java.util.List getImportJobsList(); + java.util.List + getImportJobsList(); /** - * - * *
    * The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
    * 
@@ -44,8 +25,6 @@ public interface ListImportJobsResponseOrBuilder */ com.google.cloud.kms.v1.ImportJob getImportJobs(int index); /** - * - * *
    * The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
    * 
@@ -54,29 +33,25 @@ public interface ListImportJobsResponseOrBuilder */ int getImportJobsCount(); /** - * - * *
    * The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
    * 
* * repeated .google.cloud.kms.v1.ImportJob import_jobs = 1; */ - java.util.List getImportJobsOrBuilderList(); + java.util.List + getImportJobsOrBuilderList(); /** - * - * *
    * The list of [ImportJobs][google.cloud.kms.v1.ImportJob].
    * 
* * repeated .google.cloud.kms.v1.ImportJob import_jobs = 1; */ - com.google.cloud.kms.v1.ImportJobOrBuilder getImportJobsOrBuilder(int index); + com.google.cloud.kms.v1.ImportJobOrBuilder getImportJobsOrBuilder( + int index); /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListImportJobsRequest.page_token][google.cloud.kms.v1.ListImportJobsRequest.page_token]
@@ -84,13 +59,10 @@ public interface ListImportJobsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListImportJobsRequest.page_token][google.cloud.kms.v1.ListImportJobsRequest.page_token]
@@ -98,21 +70,18 @@ public interface ListImportJobsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * The total number of [ImportJobs][google.cloud.kms.v1.ImportJob] that
    * matched the query.
    * 
* * int32 total_size = 3; - * * @return The totalSize. */ int getTotalSize(); diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListKeyRingsRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListKeyRingsRequest.java similarity index 72% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListKeyRingsRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListKeyRingsRequest.java index ae1fafbacd5f..9b5f90c08b69 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListKeyRingsRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListKeyRingsRequest.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for
  * [KeyManagementService.ListKeyRings][google.cloud.kms.v1.KeyManagementService.ListKeyRings].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.ListKeyRingsRequest}
  */
-public final class ListKeyRingsRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListKeyRingsRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.ListKeyRingsRequest)
     ListKeyRingsRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListKeyRingsRequest.newBuilder() to construct.
   private ListKeyRingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListKeyRingsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -47,45 +29,39 @@ private ListKeyRingsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListKeyRingsRequest();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_ListKeyRingsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListKeyRingsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_ListKeyRingsRequest_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListKeyRingsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.ListKeyRingsRequest.class,
-            com.google.cloud.kms.v1.ListKeyRingsRequest.Builder.class);
+            com.google.cloud.kms.v1.ListKeyRingsRequest.class, com.google.cloud.kms.v1.ListKeyRingsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
-   *
-   *
    * 
    * Required. The resource name of the location associated with the
    * [KeyRings][google.cloud.kms.v1.KeyRing], in the format
    * `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -94,33 +70,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 resource name of the location associated with the
    * [KeyRings][google.cloud.kms.v1.KeyRing], in the format
    * `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -131,8 +105,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. Optional limit on the number of
    * [KeyRings][google.cloud.kms.v1.KeyRing] to include in the response. Further
@@ -144,7 +116,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -155,15 +126,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. Optional pagination token, returned earlier via
    * [ListKeyRingsResponse.next_page_token][google.cloud.kms.v1.ListKeyRingsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -172,30 +140,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. Optional pagination token, returned earlier via
    * [ListKeyRingsResponse.next_page_token][google.cloud.kms.v1.ListKeyRingsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -206,8 +174,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * Optional. Only include resources that match the filter in the response. For
    * more information, see
@@ -216,7 +182,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -225,15 +190,14 @@ 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; } } /** - * - * *
    * Optional. Only include resources that match the filter in the response. For
    * more information, see
@@ -242,15 +206,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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,8 +226,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** - * - * *
    * Optional. Specify how the results should be sorted. If not specified, the
    * results will be sorted in the default order.  For more information, see
@@ -271,7 +234,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ @java.lang.Override @@ -280,15 +242,14 @@ 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; } } /** - * - * *
    * Optional. Specify how the results should be sorted. If not specified, the
    * results will be sorted in the default order.  For more information, see
@@ -297,15 +258,16 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -314,7 +276,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -326,7 +287,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -355,7 +317,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_); @@ -374,19 +337,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.kms.v1.ListKeyRingsRequest)) { return super.equals(obj); } - com.google.cloud.kms.v1.ListKeyRingsRequest other = - (com.google.cloud.kms.v1.ListKeyRingsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.kms.v1.ListKeyRingsRequest other = (com.google.cloud.kms.v1.ListKeyRingsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -413,104 +380,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.ListKeyRingsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.ListKeyRingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ListKeyRingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.ListKeyRingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ListKeyRingsRequest parseFrom( 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.kms.v1.ListKeyRingsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ListKeyRingsRequest parseFrom( - byte[] data, com.google.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.kms.v1.ListKeyRingsRequest parseFrom(java.io.InputStream input) 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.kms.v1.ListKeyRingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.ListKeyRingsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.ListKeyRingsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.ListKeyRingsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.ListKeyRingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.ListKeyRingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.ListKeyRingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for
    * [KeyManagementService.ListKeyRings][google.cloud.kms.v1.KeyManagementService.ListKeyRings].
@@ -518,32 +478,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.ListKeyRingsRequest}
    */
-  public static final class Builder extends 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.kms.v1.ListKeyRingsRequest)
       com.google.cloud.kms.v1.ListKeyRingsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_ListKeyRingsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListKeyRingsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_ListKeyRingsRequest_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListKeyRingsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.ListKeyRingsRequest.class,
-              com.google.cloud.kms.v1.ListKeyRingsRequest.Builder.class);
+              com.google.cloud.kms.v1.ListKeyRingsRequest.class, com.google.cloud.kms.v1.ListKeyRingsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.ListKeyRingsRequest.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();
@@ -561,9 +522,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_ListKeyRingsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListKeyRingsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -582,8 +543,7 @@ public com.google.cloud.kms.v1.ListKeyRingsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.ListKeyRingsRequest buildPartial() {
-      com.google.cloud.kms.v1.ListKeyRingsRequest result =
-          new com.google.cloud.kms.v1.ListKeyRingsRequest(this);
+      com.google.cloud.kms.v1.ListKeyRingsRequest result = new com.google.cloud.kms.v1.ListKeyRingsRequest(this);
       result.parent_ = parent_;
       result.pageSize_ = pageSize_;
       result.pageToken_ = pageToken_;
@@ -597,39 +557,38 @@ public com.google.cloud.kms.v1.ListKeyRingsRequest 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.kms.v1.ListKeyRingsRequest) {
-        return mergeFrom((com.google.cloud.kms.v1.ListKeyRingsRequest) other);
+        return mergeFrom((com.google.cloud.kms.v1.ListKeyRingsRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -683,43 +642,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:
-              {
-                filter_ = input.readStringRequireUtf8();
+              break;
+            } // case 26
+            case 34: {
+              filter_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 34
-            case 42:
-              {
-                orderBy_ = input.readStringRequireUtf8();
+              break;
+            } // case 34
+            case 42: {
+              orderBy_ = 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) {
@@ -732,24 +685,20 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the location associated with the
      * [KeyRings][google.cloud.kms.v1.KeyRing], in the format
      * `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -758,25 +707,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [KeyRings][google.cloud.kms.v1.KeyRing], in the format
      * `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -784,82 +730,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [KeyRings][google.cloud.kms.v1.KeyRing], in the format
      * `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the location associated with the
      * [KeyRings][google.cloud.kms.v1.KeyRing], in the format
      * `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the location associated with the
      * [KeyRings][google.cloud.kms.v1.KeyRing], in the format
      * `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. Optional limit on the number of
      * [KeyRings][google.cloud.kms.v1.KeyRing] to include in the response. Further
@@ -871,7 +802,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -879,8 +809,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Optional limit on the number of
      * [KeyRings][google.cloud.kms.v1.KeyRing] to include in the response. Further
@@ -892,19 +820,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Optional limit on the number of
      * [KeyRings][google.cloud.kms.v1.KeyRing] to include in the response. Further
@@ -916,11 +841,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -928,21 +852,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. Optional pagination token, returned earlier via
      * [ListKeyRingsResponse.next_page_token][google.cloud.kms.v1.ListKeyRingsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -951,22 +873,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. Optional pagination token, returned earlier via
      * [ListKeyRingsResponse.next_page_token][google.cloud.kms.v1.ListKeyRingsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -974,64 +895,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. Optional pagination token, returned earlier via
      * [ListKeyRingsResponse.next_page_token][google.cloud.kms.v1.ListKeyRingsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Optional pagination token, returned earlier via
      * [ListKeyRingsResponse.next_page_token][google.cloud.kms.v1.ListKeyRingsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. Optional pagination token, returned earlier via
      * [ListKeyRingsResponse.next_page_token][google.cloud.kms.v1.ListKeyRingsResponse.next_page_token].
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + 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; @@ -1039,8 +953,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Only include resources that match the filter in the response. For
      * more information, see
@@ -1049,13 +961,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1064,8 +976,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Only include resources that match the filter in the response. For
      * more information, see
@@ -1074,14 +984,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1089,8 +1000,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Only include resources that match the filter in the response. For
      * more information, see
@@ -1099,22 +1008,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. Only include resources that match the filter in the response. For
      * more information, see
@@ -1123,18 +1030,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Optional. Only include resources that match the filter in the response. For
      * more information, see
@@ -1143,16 +1047,16 @@ public Builder clearFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1160,8 +1064,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Optional. Specify how the results should be sorted. If not specified, the
      * results will be sorted in the default order.  For more information, see
@@ -1170,13 +1072,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1185,8 +1087,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Optional. Specify how the results should be sorted. If not specified, the
      * results will be sorted in the default order.  For more information, see
@@ -1195,14 +1095,15 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1210,8 +1111,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Optional. Specify how the results should be sorted. If not specified, the
      * results will be sorted in the default order.  For more information, see
@@ -1220,22 +1119,20 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. Specify how the results should be sorted. If not specified, the
      * results will be sorted in the default order.  For more information, see
@@ -1244,18 +1141,15 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Optional. Specify how the results should be sorted. If not specified, the
      * results will be sorted in the default order.  For more information, see
@@ -1264,23 +1158,23 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1290,12 +1184,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.ListKeyRingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.ListKeyRingsRequest) private static final com.google.cloud.kms.v1.ListKeyRingsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.ListKeyRingsRequest(); } @@ -1304,27 +1198,27 @@ public static com.google.cloud.kms.v1.ListKeyRingsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListKeyRingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListKeyRingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1339,4 +1233,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.ListKeyRingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListKeyRingsRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListKeyRingsRequestOrBuilder.java similarity index 74% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListKeyRingsRequestOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListKeyRingsRequestOrBuilder.java index 4a87024b34bd..bdf6d2f4cc6c 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListKeyRingsRequestOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListKeyRingsRequestOrBuilder.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/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface ListKeyRingsRequestOrBuilder - extends +public interface ListKeyRingsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.ListKeyRingsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the location associated with the
    * [KeyRings][google.cloud.kms.v1.KeyRing], in the format
    * `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The resource name of the location associated with the
    * [KeyRings][google.cloud.kms.v1.KeyRing], in the format
    * `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. Optional limit on the number of
    * [KeyRings][google.cloud.kms.v1.KeyRing] to include in the response. Further
@@ -70,41 +43,33 @@ public interface ListKeyRingsRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. Optional pagination token, returned earlier via
    * [ListKeyRingsResponse.next_page_token][google.cloud.kms.v1.ListKeyRingsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. Optional pagination token, returned earlier via
    * [ListKeyRingsResponse.next_page_token][google.cloud.kms.v1.ListKeyRingsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Optional. Only include resources that match the filter in the response. For
    * more information, see
@@ -113,13 +78,10 @@ public interface ListKeyRingsRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. Only include resources that match the filter in the response. For
    * more information, see
@@ -128,14 +90,12 @@ public interface ListKeyRingsRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Optional. Specify how the results should be sorted. If not specified, the
    * results will be sorted in the default order.  For more information, see
@@ -144,13 +104,10 @@ public interface ListKeyRingsRequestOrBuilder
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Optional. Specify how the results should be sorted. If not specified, the
    * results will be sorted in the default order.  For more information, see
@@ -159,8 +116,8 @@ public interface ListKeyRingsRequestOrBuilder
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListKeyRingsResponse.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListKeyRingsResponse.java similarity index 73% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListKeyRingsResponse.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListKeyRingsResponse.java index 05a27d1c16cb..66c36c9946c8 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListKeyRingsResponse.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListKeyRingsResponse.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Response message for
  * [KeyManagementService.ListKeyRings][google.cloud.kms.v1.KeyManagementService.ListKeyRings].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.ListKeyRingsResponse}
  */
-public final class ListKeyRingsResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListKeyRingsResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.ListKeyRingsResponse)
     ListKeyRingsResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListKeyRingsResponse.newBuilder() to construct.
   private ListKeyRingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListKeyRingsResponse() {
     keyRings_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -45,35 +27,32 @@ private ListKeyRingsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListKeyRingsResponse();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_ListKeyRingsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListKeyRingsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_ListKeyRingsResponse_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListKeyRingsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.ListKeyRingsResponse.class,
-            com.google.cloud.kms.v1.ListKeyRingsResponse.Builder.class);
+            com.google.cloud.kms.v1.ListKeyRingsResponse.class, com.google.cloud.kms.v1.ListKeyRingsResponse.Builder.class);
   }
 
   public static final int KEY_RINGS_FIELD_NUMBER = 1;
   private java.util.List keyRings_;
   /**
-   *
-   *
    * 
    * The list of [KeyRings][google.cloud.kms.v1.KeyRing].
    * 
@@ -85,8 +64,6 @@ public java.util.List getKeyRingsList() { return keyRings_; } /** - * - * *
    * The list of [KeyRings][google.cloud.kms.v1.KeyRing].
    * 
@@ -94,13 +71,11 @@ public java.util.List getKeyRingsList() { * repeated .google.cloud.kms.v1.KeyRing key_rings = 1; */ @java.lang.Override - public java.util.List + public java.util.List getKeyRingsOrBuilderList() { return keyRings_; } /** - * - * *
    * The list of [KeyRings][google.cloud.kms.v1.KeyRing].
    * 
@@ -112,8 +87,6 @@ public int getKeyRingsCount() { return keyRings_.size(); } /** - * - * *
    * The list of [KeyRings][google.cloud.kms.v1.KeyRing].
    * 
@@ -125,8 +98,6 @@ public com.google.cloud.kms.v1.KeyRing getKeyRings(int index) { return keyRings_.get(index); } /** - * - * *
    * The list of [KeyRings][google.cloud.kms.v1.KeyRing].
    * 
@@ -134,15 +105,14 @@ public com.google.cloud.kms.v1.KeyRing getKeyRings(int index) { * repeated .google.cloud.kms.v1.KeyRing key_rings = 1; */ @java.lang.Override - public com.google.cloud.kms.v1.KeyRingOrBuilder getKeyRingsOrBuilder(int index) { + public com.google.cloud.kms.v1.KeyRingOrBuilder getKeyRingsOrBuilder( + int index) { return keyRings_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListKeyRingsRequest.page_token][google.cloud.kms.v1.ListKeyRingsRequest.page_token]
@@ -150,7 +120,6 @@ public com.google.cloud.kms.v1.KeyRingOrBuilder getKeyRingsOrBuilder(int index)
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -159,15 +128,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListKeyRingsRequest.page_token][google.cloud.kms.v1.ListKeyRingsRequest.page_token]
@@ -175,15 +143,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -194,15 +163,12 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int TOTAL_SIZE_FIELD_NUMBER = 3; private int totalSize_; /** - * - * *
    * The total number of [KeyRings][google.cloud.kms.v1.KeyRing] that matched
    * the query.
    * 
* * int32 total_size = 3; - * * @return The totalSize. */ @java.lang.Override @@ -211,7 +177,6 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -223,7 +188,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < keyRings_.size(); i++) { output.writeMessage(1, keyRings_.get(i)); } @@ -243,13 +209,15 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < keyRings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, keyRings_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, keyRings_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, totalSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -259,17 +227,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.kms.v1.ListKeyRingsResponse)) { return super.equals(obj); } - com.google.cloud.kms.v1.ListKeyRingsResponse other = - (com.google.cloud.kms.v1.ListKeyRingsResponse) obj; - - if (!getKeyRingsList().equals(other.getKeyRingsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (getTotalSize() != other.getTotalSize()) return false; + com.google.cloud.kms.v1.ListKeyRingsResponse other = (com.google.cloud.kms.v1.ListKeyRingsResponse) obj; + + if (!getKeyRingsList() + .equals(other.getKeyRingsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (getTotalSize() + != other.getTotalSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -294,104 +264,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.ListKeyRingsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.ListKeyRingsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ListKeyRingsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.ListKeyRingsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ListKeyRingsResponse parseFrom( 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.kms.v1.ListKeyRingsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.ListKeyRingsResponse parseFrom( - byte[] data, com.google.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.kms.v1.ListKeyRingsResponse parseFrom(java.io.InputStream input) 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.kms.v1.ListKeyRingsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.ListKeyRingsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.ListKeyRingsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.ListKeyRingsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.ListKeyRingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.ListKeyRingsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.ListKeyRingsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for
    * [KeyManagementService.ListKeyRings][google.cloud.kms.v1.KeyManagementService.ListKeyRings].
@@ -399,32 +362,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.ListKeyRingsResponse}
    */
-  public static final class Builder extends 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.kms.v1.ListKeyRingsResponse)
       com.google.cloud.kms.v1.ListKeyRingsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_ListKeyRingsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListKeyRingsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_ListKeyRingsResponse_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListKeyRingsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.ListKeyRingsResponse.class,
-              com.google.cloud.kms.v1.ListKeyRingsResponse.Builder.class);
+              com.google.cloud.kms.v1.ListKeyRingsResponse.class, com.google.cloud.kms.v1.ListKeyRingsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.ListKeyRingsResponse.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();
@@ -443,9 +407,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_ListKeyRingsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_ListKeyRingsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -464,8 +428,7 @@ public com.google.cloud.kms.v1.ListKeyRingsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.ListKeyRingsResponse buildPartial() {
-      com.google.cloud.kms.v1.ListKeyRingsResponse result =
-          new com.google.cloud.kms.v1.ListKeyRingsResponse(this);
+      com.google.cloud.kms.v1.ListKeyRingsResponse result = new com.google.cloud.kms.v1.ListKeyRingsResponse(this);
       int from_bitField0_ = bitField0_;
       if (keyRingsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -486,39 +449,38 @@ public com.google.cloud.kms.v1.ListKeyRingsResponse 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.kms.v1.ListKeyRingsResponse) {
-        return mergeFrom((com.google.cloud.kms.v1.ListKeyRingsResponse) other);
+        return mergeFrom((com.google.cloud.kms.v1.ListKeyRingsResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -545,10 +507,9 @@ public Builder mergeFrom(com.google.cloud.kms.v1.ListKeyRingsResponse other) {
             keyRingsBuilder_ = null;
             keyRings_ = other.keyRings_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            keyRingsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getKeyRingsFieldBuilder()
-                    : null;
+            keyRingsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getKeyRingsFieldBuilder() : null;
           } else {
             keyRingsBuilder_.addAllMessages(other.keyRings_);
           }
@@ -587,37 +548,35 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.kms.v1.KeyRing m =
-                    input.readMessage(com.google.cloud.kms.v1.KeyRing.parser(), extensionRegistry);
-                if (keyRingsBuilder_ == null) {
-                  ensureKeyRingsIsMutable();
-                  keyRings_.add(m);
-                } else {
-                  keyRingsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                nextPageToken_ = input.readStringRequireUtf8();
+            case 10: {
+              com.google.cloud.kms.v1.KeyRing m =
+                  input.readMessage(
+                      com.google.cloud.kms.v1.KeyRing.parser(),
+                      extensionRegistry);
+              if (keyRingsBuilder_ == null) {
+                ensureKeyRingsIsMutable();
+                keyRings_.add(m);
+              } else {
+                keyRingsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              nextPageToken_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 18
-            case 24:
-              {
-                totalSize_ = input.readInt32();
+              break;
+            } // case 18
+            case 24: {
+              totalSize_ = input.readInt32();
 
-                break;
-              } // case 24
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              break;
+            } // case 24
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -627,28 +586,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List keyRings_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureKeyRingsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         keyRings_ = new java.util.ArrayList(keyRings_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.kms.v1.KeyRing,
-            com.google.cloud.kms.v1.KeyRing.Builder,
-            com.google.cloud.kms.v1.KeyRingOrBuilder>
-        keyRingsBuilder_;
+        com.google.cloud.kms.v1.KeyRing, com.google.cloud.kms.v1.KeyRing.Builder, com.google.cloud.kms.v1.KeyRingOrBuilder> keyRingsBuilder_;
 
     /**
-     *
-     *
      * 
      * The list of [KeyRings][google.cloud.kms.v1.KeyRing].
      * 
@@ -663,8 +615,6 @@ public java.util.List getKeyRingsList() { } } /** - * - * *
      * The list of [KeyRings][google.cloud.kms.v1.KeyRing].
      * 
@@ -679,8 +629,6 @@ public int getKeyRingsCount() { } } /** - * - * *
      * The list of [KeyRings][google.cloud.kms.v1.KeyRing].
      * 
@@ -695,15 +643,14 @@ public com.google.cloud.kms.v1.KeyRing getKeyRings(int index) { } } /** - * - * *
      * The list of [KeyRings][google.cloud.kms.v1.KeyRing].
      * 
* * repeated .google.cloud.kms.v1.KeyRing key_rings = 1; */ - public Builder setKeyRings(int index, com.google.cloud.kms.v1.KeyRing value) { + public Builder setKeyRings( + int index, com.google.cloud.kms.v1.KeyRing value) { if (keyRingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -717,15 +664,14 @@ public Builder setKeyRings(int index, com.google.cloud.kms.v1.KeyRing value) { return this; } /** - * - * *
      * The list of [KeyRings][google.cloud.kms.v1.KeyRing].
      * 
* * repeated .google.cloud.kms.v1.KeyRing key_rings = 1; */ - public Builder setKeyRings(int index, com.google.cloud.kms.v1.KeyRing.Builder builderForValue) { + public Builder setKeyRings( + int index, com.google.cloud.kms.v1.KeyRing.Builder builderForValue) { if (keyRingsBuilder_ == null) { ensureKeyRingsIsMutable(); keyRings_.set(index, builderForValue.build()); @@ -736,8 +682,6 @@ public Builder setKeyRings(int index, com.google.cloud.kms.v1.KeyRing.Builder bu return this; } /** - * - * *
      * The list of [KeyRings][google.cloud.kms.v1.KeyRing].
      * 
@@ -758,15 +702,14 @@ public Builder addKeyRings(com.google.cloud.kms.v1.KeyRing value) { return this; } /** - * - * *
      * The list of [KeyRings][google.cloud.kms.v1.KeyRing].
      * 
* * repeated .google.cloud.kms.v1.KeyRing key_rings = 1; */ - public Builder addKeyRings(int index, com.google.cloud.kms.v1.KeyRing value) { + public Builder addKeyRings( + int index, com.google.cloud.kms.v1.KeyRing value) { if (keyRingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -780,15 +723,14 @@ public Builder addKeyRings(int index, com.google.cloud.kms.v1.KeyRing value) { return this; } /** - * - * *
      * The list of [KeyRings][google.cloud.kms.v1.KeyRing].
      * 
* * repeated .google.cloud.kms.v1.KeyRing key_rings = 1; */ - public Builder addKeyRings(com.google.cloud.kms.v1.KeyRing.Builder builderForValue) { + public Builder addKeyRings( + com.google.cloud.kms.v1.KeyRing.Builder builderForValue) { if (keyRingsBuilder_ == null) { ensureKeyRingsIsMutable(); keyRings_.add(builderForValue.build()); @@ -799,15 +741,14 @@ public Builder addKeyRings(com.google.cloud.kms.v1.KeyRing.Builder builderForVal return this; } /** - * - * *
      * The list of [KeyRings][google.cloud.kms.v1.KeyRing].
      * 
* * repeated .google.cloud.kms.v1.KeyRing key_rings = 1; */ - public Builder addKeyRings(int index, com.google.cloud.kms.v1.KeyRing.Builder builderForValue) { + public Builder addKeyRings( + int index, com.google.cloud.kms.v1.KeyRing.Builder builderForValue) { if (keyRingsBuilder_ == null) { ensureKeyRingsIsMutable(); keyRings_.add(index, builderForValue.build()); @@ -818,8 +759,6 @@ public Builder addKeyRings(int index, com.google.cloud.kms.v1.KeyRing.Builder bu return this; } /** - * - * *
      * The list of [KeyRings][google.cloud.kms.v1.KeyRing].
      * 
@@ -830,7 +769,8 @@ public Builder addAllKeyRings( java.lang.Iterable values) { if (keyRingsBuilder_ == null) { ensureKeyRingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, keyRings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, keyRings_); onChanged(); } else { keyRingsBuilder_.addAllMessages(values); @@ -838,8 +778,6 @@ public Builder addAllKeyRings( return this; } /** - * - * *
      * The list of [KeyRings][google.cloud.kms.v1.KeyRing].
      * 
@@ -857,8 +795,6 @@ public Builder clearKeyRings() { return this; } /** - * - * *
      * The list of [KeyRings][google.cloud.kms.v1.KeyRing].
      * 
@@ -876,44 +812,39 @@ public Builder removeKeyRings(int index) { return this; } /** - * - * *
      * The list of [KeyRings][google.cloud.kms.v1.KeyRing].
      * 
* * repeated .google.cloud.kms.v1.KeyRing key_rings = 1; */ - public com.google.cloud.kms.v1.KeyRing.Builder getKeyRingsBuilder(int index) { + public com.google.cloud.kms.v1.KeyRing.Builder getKeyRingsBuilder( + int index) { return getKeyRingsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of [KeyRings][google.cloud.kms.v1.KeyRing].
      * 
* * repeated .google.cloud.kms.v1.KeyRing key_rings = 1; */ - public com.google.cloud.kms.v1.KeyRingOrBuilder getKeyRingsOrBuilder(int index) { + public com.google.cloud.kms.v1.KeyRingOrBuilder getKeyRingsOrBuilder( + int index) { if (keyRingsBuilder_ == null) { - return keyRings_.get(index); - } else { + return keyRings_.get(index); } else { return keyRingsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of [KeyRings][google.cloud.kms.v1.KeyRing].
      * 
* * repeated .google.cloud.kms.v1.KeyRing key_rings = 1; */ - public java.util.List - getKeyRingsOrBuilderList() { + public java.util.List + getKeyRingsOrBuilderList() { if (keyRingsBuilder_ != null) { return keyRingsBuilder_.getMessageOrBuilderList(); } else { @@ -921,8 +852,6 @@ public com.google.cloud.kms.v1.KeyRingOrBuilder getKeyRingsOrBuilder(int index) } } /** - * - * *
      * The list of [KeyRings][google.cloud.kms.v1.KeyRing].
      * 
@@ -930,47 +859,42 @@ public com.google.cloud.kms.v1.KeyRingOrBuilder getKeyRingsOrBuilder(int index) * repeated .google.cloud.kms.v1.KeyRing key_rings = 1; */ public com.google.cloud.kms.v1.KeyRing.Builder addKeyRingsBuilder() { - return getKeyRingsFieldBuilder() - .addBuilder(com.google.cloud.kms.v1.KeyRing.getDefaultInstance()); + return getKeyRingsFieldBuilder().addBuilder( + com.google.cloud.kms.v1.KeyRing.getDefaultInstance()); } /** - * - * *
      * The list of [KeyRings][google.cloud.kms.v1.KeyRing].
      * 
* * repeated .google.cloud.kms.v1.KeyRing key_rings = 1; */ - public com.google.cloud.kms.v1.KeyRing.Builder addKeyRingsBuilder(int index) { - return getKeyRingsFieldBuilder() - .addBuilder(index, com.google.cloud.kms.v1.KeyRing.getDefaultInstance()); + public com.google.cloud.kms.v1.KeyRing.Builder addKeyRingsBuilder( + int index) { + return getKeyRingsFieldBuilder().addBuilder( + index, com.google.cloud.kms.v1.KeyRing.getDefaultInstance()); } /** - * - * *
      * The list of [KeyRings][google.cloud.kms.v1.KeyRing].
      * 
* * repeated .google.cloud.kms.v1.KeyRing key_rings = 1; */ - public java.util.List getKeyRingsBuilderList() { + public java.util.List + getKeyRingsBuilderList() { return getKeyRingsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.v1.KeyRing, - com.google.cloud.kms.v1.KeyRing.Builder, - com.google.cloud.kms.v1.KeyRingOrBuilder> + com.google.cloud.kms.v1.KeyRing, com.google.cloud.kms.v1.KeyRing.Builder, com.google.cloud.kms.v1.KeyRingOrBuilder> getKeyRingsFieldBuilder() { if (keyRingsBuilder_ == null) { - keyRingsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.kms.v1.KeyRing, - com.google.cloud.kms.v1.KeyRing.Builder, - com.google.cloud.kms.v1.KeyRingOrBuilder>( - keyRings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + keyRingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.kms.v1.KeyRing, com.google.cloud.kms.v1.KeyRing.Builder, com.google.cloud.kms.v1.KeyRingOrBuilder>( + keyRings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); keyRings_ = null; } return keyRingsBuilder_; @@ -978,8 +902,6 @@ public java.util.List getKeyRingsBuilde private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListKeyRingsRequest.page_token][google.cloud.kms.v1.ListKeyRingsRequest.page_token]
@@ -987,13 +909,13 @@ public java.util.List getKeyRingsBuilde
      * 
* * 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; @@ -1002,8 +924,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListKeyRingsRequest.page_token][google.cloud.kms.v1.ListKeyRingsRequest.page_token]
@@ -1011,14 +931,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1026,8 +947,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListKeyRingsRequest.page_token][google.cloud.kms.v1.ListKeyRingsRequest.page_token]
@@ -1035,22 +954,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListKeyRingsRequest.page_token][google.cloud.kms.v1.ListKeyRingsRequest.page_token]
@@ -1058,18 +975,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListKeyRingsRequest.page_token][google.cloud.kms.v1.ListKeyRingsRequest.page_token]
@@ -1077,32 +991,29 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_; + private int totalSize_ ; /** - * - * *
      * The total number of [KeyRings][google.cloud.kms.v1.KeyRing] that matched
      * the query.
      * 
* * int32 total_size = 3; - * * @return The totalSize. */ @java.lang.Override @@ -1110,45 +1021,39 @@ public int getTotalSize() { return totalSize_; } /** - * - * *
      * The total number of [KeyRings][google.cloud.kms.v1.KeyRing] that matched
      * the query.
      * 
* * int32 total_size = 3; - * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** - * - * *
      * The total number of [KeyRings][google.cloud.kms.v1.KeyRing] that matched
      * the query.
      * 
* * int32 total_size = 3; - * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 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); } @@ -1158,12 +1063,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.ListKeyRingsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.ListKeyRingsResponse) private static final com.google.cloud.kms.v1.ListKeyRingsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.ListKeyRingsResponse(); } @@ -1172,27 +1077,27 @@ public static com.google.cloud.kms.v1.ListKeyRingsResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListKeyRingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListKeyRingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1207,4 +1112,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.ListKeyRingsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListKeyRingsResponseOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListKeyRingsResponseOrBuilder.java similarity index 70% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListKeyRingsResponseOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListKeyRingsResponseOrBuilder.java index bb558e6c4c96..1cc327847f1a 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListKeyRingsResponseOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListKeyRingsResponseOrBuilder.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/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface ListKeyRingsResponseOrBuilder - extends +public interface ListKeyRingsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.ListKeyRingsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of [KeyRings][google.cloud.kms.v1.KeyRing].
    * 
* * repeated .google.cloud.kms.v1.KeyRing key_rings = 1; */ - java.util.List getKeyRingsList(); + java.util.List + getKeyRingsList(); /** - * - * *
    * The list of [KeyRings][google.cloud.kms.v1.KeyRing].
    * 
@@ -44,8 +25,6 @@ public interface ListKeyRingsResponseOrBuilder */ com.google.cloud.kms.v1.KeyRing getKeyRings(int index); /** - * - * *
    * The list of [KeyRings][google.cloud.kms.v1.KeyRing].
    * 
@@ -54,29 +33,25 @@ public interface ListKeyRingsResponseOrBuilder */ int getKeyRingsCount(); /** - * - * *
    * The list of [KeyRings][google.cloud.kms.v1.KeyRing].
    * 
* * repeated .google.cloud.kms.v1.KeyRing key_rings = 1; */ - java.util.List getKeyRingsOrBuilderList(); + java.util.List + getKeyRingsOrBuilderList(); /** - * - * *
    * The list of [KeyRings][google.cloud.kms.v1.KeyRing].
    * 
* * repeated .google.cloud.kms.v1.KeyRing key_rings = 1; */ - com.google.cloud.kms.v1.KeyRingOrBuilder getKeyRingsOrBuilder(int index); + com.google.cloud.kms.v1.KeyRingOrBuilder getKeyRingsOrBuilder( + int index); /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListKeyRingsRequest.page_token][google.cloud.kms.v1.ListKeyRingsRequest.page_token]
@@ -84,13 +59,10 @@ public interface ListKeyRingsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListKeyRingsRequest.page_token][google.cloud.kms.v1.ListKeyRingsRequest.page_token]
@@ -98,21 +70,18 @@ public interface ListKeyRingsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * The total number of [KeyRings][google.cloud.kms.v1.KeyRing] that matched
    * the query.
    * 
* * int32 total_size = 3; - * * @return The totalSize. */ int getTotalSize(); diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationMetadata.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationMetadata.java similarity index 69% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationMetadata.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationMetadata.java index a714987dab67..a33aba5577a5 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationMetadata.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationMetadata.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Cloud KMS metadata for the given
  * [google.cloud.location.Location][google.cloud.location.Location].
@@ -28,49 +11,46 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.LocationMetadata}
  */
-public final class LocationMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LocationMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.LocationMetadata)
     LocationMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LocationMetadata.newBuilder() to construct.
   private LocationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private LocationMetadata() {}
+  private LocationMetadata() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LocationMetadata();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_LocationMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_LocationMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_LocationMetadata_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_LocationMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.LocationMetadata.class,
-            com.google.cloud.kms.v1.LocationMetadata.Builder.class);
+            com.google.cloud.kms.v1.LocationMetadata.class, com.google.cloud.kms.v1.LocationMetadata.Builder.class);
   }
 
   public static final int HSM_AVAILABLE_FIELD_NUMBER = 1;
   private boolean hsmAvailable_;
   /**
-   *
-   *
    * 
    * Indicates whether [CryptoKeys][google.cloud.kms.v1.CryptoKey] with
    * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]
@@ -79,7 +59,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bool hsm_available = 1; - * * @return The hsmAvailable. */ @java.lang.Override @@ -90,8 +69,6 @@ public boolean getHsmAvailable() { public static final int EKM_AVAILABLE_FIELD_NUMBER = 2; private boolean ekmAvailable_; /** - * - * *
    * Indicates whether [CryptoKeys][google.cloud.kms.v1.CryptoKey] with
    * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]
@@ -100,7 +77,6 @@ public boolean getHsmAvailable() {
    * 
* * bool ekm_available = 2; - * * @return The ekmAvailable. */ @java.lang.Override @@ -109,7 +85,6 @@ public boolean getEkmAvailable() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,7 +96,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (hsmAvailable_ != false) { output.writeBool(1, hsmAvailable_); } @@ -138,10 +114,12 @@ public int getSerializedSize() { size = 0; if (hsmAvailable_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, hsmAvailable_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, hsmAvailable_); } if (ekmAvailable_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, ekmAvailable_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, ekmAvailable_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -151,15 +129,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.kms.v1.LocationMetadata)) { return super.equals(obj); } com.google.cloud.kms.v1.LocationMetadata other = (com.google.cloud.kms.v1.LocationMetadata) obj; - if (getHsmAvailable() != other.getHsmAvailable()) return false; - if (getEkmAvailable() != other.getEkmAvailable()) return false; + if (getHsmAvailable() + != other.getHsmAvailable()) return false; + if (getEkmAvailable() + != other.getEkmAvailable()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -172,112 +152,107 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + HSM_AVAILABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHsmAvailable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHsmAvailable()); hash = (37 * hash) + EKM_AVAILABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEkmAvailable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEkmAvailable()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.kms.v1.LocationMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.LocationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.LocationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.LocationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.LocationMetadata parseFrom( 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.kms.v1.LocationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.LocationMetadata parseFrom( - byte[] data, com.google.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.kms.v1.LocationMetadata parseFrom(java.io.InputStream input) 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.kms.v1.LocationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.LocationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.LocationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.LocationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.LocationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.LocationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.LocationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Cloud KMS metadata for the given
    * [google.cloud.location.Location][google.cloud.location.Location].
@@ -285,32 +260,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.LocationMetadata}
    */
-  public static final class Builder extends 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.kms.v1.LocationMetadata)
       com.google.cloud.kms.v1.LocationMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_LocationMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_LocationMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_LocationMetadata_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_LocationMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.LocationMetadata.class,
-              com.google.cloud.kms.v1.LocationMetadata.Builder.class);
+              com.google.cloud.kms.v1.LocationMetadata.class, com.google.cloud.kms.v1.LocationMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.LocationMetadata.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -322,9 +298,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_LocationMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_LocationMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -343,8 +319,7 @@ public com.google.cloud.kms.v1.LocationMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.LocationMetadata buildPartial() {
-      com.google.cloud.kms.v1.LocationMetadata result =
-          new com.google.cloud.kms.v1.LocationMetadata(this);
+      com.google.cloud.kms.v1.LocationMetadata result = new com.google.cloud.kms.v1.LocationMetadata(this);
       result.hsmAvailable_ = hsmAvailable_;
       result.ekmAvailable_ = ekmAvailable_;
       onBuilt();
@@ -355,39 +330,38 @@ public com.google.cloud.kms.v1.LocationMetadata 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.kms.v1.LocationMetadata) {
-        return mergeFrom((com.google.cloud.kms.v1.LocationMetadata) other);
+        return mergeFrom((com.google.cloud.kms.v1.LocationMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -428,25 +402,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                hsmAvailable_ = input.readBool();
-
-                break;
-              } // case 8
-            case 16:
-              {
-                ekmAvailable_ = input.readBool();
-
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              hsmAvailable_ = input.readBool();
+
+              break;
+            } // case 8
+            case 16: {
+              ekmAvailable_ = 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) {
@@ -457,10 +428,8 @@ public Builder mergeFrom(
       return this;
     }
 
-    private boolean hsmAvailable_;
+    private boolean hsmAvailable_ ;
     /**
-     *
-     *
      * 
      * Indicates whether [CryptoKeys][google.cloud.kms.v1.CryptoKey] with
      * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]
@@ -469,7 +438,6 @@ public Builder mergeFrom(
      * 
* * bool hsm_available = 1; - * * @return The hsmAvailable. */ @java.lang.Override @@ -477,8 +445,6 @@ public boolean getHsmAvailable() { return hsmAvailable_; } /** - * - * *
      * Indicates whether [CryptoKeys][google.cloud.kms.v1.CryptoKey] with
      * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]
@@ -487,19 +453,16 @@ public boolean getHsmAvailable() {
      * 
* * bool hsm_available = 1; - * * @param value The hsmAvailable to set. * @return This builder for chaining. */ public Builder setHsmAvailable(boolean value) { - + hsmAvailable_ = value; onChanged(); return this; } /** - * - * *
      * Indicates whether [CryptoKeys][google.cloud.kms.v1.CryptoKey] with
      * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]
@@ -508,20 +471,17 @@ public Builder setHsmAvailable(boolean value) {
      * 
* * bool hsm_available = 1; - * * @return This builder for chaining. */ public Builder clearHsmAvailable() { - + hsmAvailable_ = false; onChanged(); return this; } - private boolean ekmAvailable_; + private boolean ekmAvailable_ ; /** - * - * *
      * Indicates whether [CryptoKeys][google.cloud.kms.v1.CryptoKey] with
      * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]
@@ -530,7 +490,6 @@ public Builder clearHsmAvailable() {
      * 
* * bool ekm_available = 2; - * * @return The ekmAvailable. */ @java.lang.Override @@ -538,8 +497,6 @@ public boolean getEkmAvailable() { return ekmAvailable_; } /** - * - * *
      * Indicates whether [CryptoKeys][google.cloud.kms.v1.CryptoKey] with
      * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]
@@ -548,19 +505,16 @@ public boolean getEkmAvailable() {
      * 
* * bool ekm_available = 2; - * * @param value The ekmAvailable to set. * @return This builder for chaining. */ public Builder setEkmAvailable(boolean value) { - + ekmAvailable_ = value; onChanged(); return this; } /** - * - * *
      * Indicates whether [CryptoKeys][google.cloud.kms.v1.CryptoKey] with
      * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]
@@ -569,18 +523,17 @@ public Builder setEkmAvailable(boolean value) {
      * 
* * bool ekm_available = 2; - * * @return This builder for chaining. */ public Builder clearEkmAvailable() { - + ekmAvailable_ = 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); } @@ -590,12 +543,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.LocationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.LocationMetadata) private static final com.google.cloud.kms.v1.LocationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.LocationMetadata(); } @@ -604,27 +557,27 @@ public static com.google.cloud.kms.v1.LocationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -639,4 +592,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.LocationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationMetadataOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationMetadataOrBuilder.java similarity index 61% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationMetadataOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationMetadataOrBuilder.java index e76d48349558..159a949e11e6 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationMetadataOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationMetadataOrBuilder.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/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface LocationMetadataOrBuilder - extends +public interface LocationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.LocationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Indicates whether [CryptoKeys][google.cloud.kms.v1.CryptoKey] with
    * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]
@@ -34,14 +16,11 @@ public interface LocationMetadataOrBuilder
    * 
* * bool hsm_available = 1; - * * @return The hsmAvailable. */ boolean getHsmAvailable(); /** - * - * *
    * Indicates whether [CryptoKeys][google.cloud.kms.v1.CryptoKey] with
    * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]
@@ -50,7 +29,6 @@ public interface LocationMetadataOrBuilder
    * 
* * bool ekm_available = 2; - * * @return The ekmAvailable. */ boolean getEkmAvailable(); diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationName.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationName.java similarity index 100% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationName.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationName.java diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacSignRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacSignRequest.java similarity index 76% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacSignRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacSignRequest.java index 12a28ee3936f..7338ad96a7fb 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacSignRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacSignRequest.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for
  * [KeyManagementService.MacSign][google.cloud.kms.v1.KeyManagementService.MacSign].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.MacSignRequest}
  */
-public final class MacSignRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class MacSignRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.MacSignRequest)
     MacSignRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use MacSignRequest.newBuilder() to construct.
   private MacSignRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private MacSignRequest() {
     name_ = "";
     data_ = com.google.protobuf.ByteString.EMPTY;
@@ -45,45 +27,39 @@ private MacSignRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new MacSignRequest();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_MacSignRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_MacSignRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_MacSignRequest_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_MacSignRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.MacSignRequest.class,
-            com.google.cloud.kms.v1.MacSignRequest.Builder.class);
+            com.google.cloud.kms.v1.MacSignRequest.class, com.google.cloud.kms.v1.MacSignRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
    * signing.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -92,33 +68,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
    * signing.
    * 
* - * - * string name = 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 { @@ -129,15 +103,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString data_; /** - * - * *
    * Required. The data to sign. The MAC tag is computed over this data field
    * based on the specific algorithm.
    * 
* * bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The data. */ @java.lang.Override @@ -148,8 +119,6 @@ public com.google.protobuf.ByteString getData() { public static final int DATA_CRC32C_FIELD_NUMBER = 3; private com.google.protobuf.Int64Value dataCrc32C_; /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]. If
@@ -170,9 +139,7 @@ public com.google.protobuf.ByteString getData() {
    * this type.
    * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the dataCrc32c field is set. */ @java.lang.Override @@ -180,8 +147,6 @@ public boolean hasDataCrc32C() { return dataCrc32C_ != null; } /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]. If
@@ -202,9 +167,7 @@ public boolean hasDataCrc32C() {
    * this type.
    * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The dataCrc32c. */ @java.lang.Override @@ -212,8 +175,6 @@ public com.google.protobuf.Int64Value getDataCrc32C() { return dataCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : dataCrc32C_; } /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]. If
@@ -234,8 +195,7 @@ public com.google.protobuf.Int64Value getDataCrc32C() {
    * this type.
    * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getDataCrc32COrBuilder() { @@ -243,7 +203,6 @@ public com.google.protobuf.Int64ValueOrBuilder getDataCrc32COrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,7 +214,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -278,10 +238,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, data_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, data_); } if (dataCrc32C_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDataCrc32C()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDataCrc32C()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -291,18 +253,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.kms.v1.MacSignRequest)) { return super.equals(obj); } com.google.cloud.kms.v1.MacSignRequest other = (com.google.cloud.kms.v1.MacSignRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getData().equals(other.getData())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getData() + .equals(other.getData())) return false; if (hasDataCrc32C() != other.hasDataCrc32C()) return false; if (hasDataCrc32C()) { - if (!getDataCrc32C().equals(other.getDataCrc32C())) return false; + if (!getDataCrc32C() + .equals(other.getDataCrc32C())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -328,104 +293,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.MacSignRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.MacSignRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.MacSignRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.MacSignRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.MacSignRequest parseFrom( 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.kms.v1.MacSignRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.MacSignRequest parseFrom( - byte[] data, com.google.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.kms.v1.MacSignRequest parseFrom(java.io.InputStream input) 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.kms.v1.MacSignRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.MacSignRequest 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.kms.v1.MacSignRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.MacSignRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.MacSignRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.MacSignRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for
    * [KeyManagementService.MacSign][google.cloud.kms.v1.KeyManagementService.MacSign].
@@ -433,32 +391,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.MacSignRequest}
    */
-  public static final class Builder extends 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.kms.v1.MacSignRequest)
       com.google.cloud.kms.v1.MacSignRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_MacSignRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_MacSignRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_MacSignRequest_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_MacSignRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.MacSignRequest.class,
-              com.google.cloud.kms.v1.MacSignRequest.Builder.class);
+              com.google.cloud.kms.v1.MacSignRequest.class, com.google.cloud.kms.v1.MacSignRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.MacSignRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -476,9 +435,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_MacSignRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_MacSignRequest_descriptor;
     }
 
     @java.lang.Override
@@ -497,8 +456,7 @@ public com.google.cloud.kms.v1.MacSignRequest build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.MacSignRequest buildPartial() {
-      com.google.cloud.kms.v1.MacSignRequest result =
-          new com.google.cloud.kms.v1.MacSignRequest(this);
+      com.google.cloud.kms.v1.MacSignRequest result = new com.google.cloud.kms.v1.MacSignRequest(this);
       result.name_ = name_;
       result.data_ = data_;
       if (dataCrc32CBuilder_ == null) {
@@ -514,39 +472,38 @@ public com.google.cloud.kms.v1.MacSignRequest 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.kms.v1.MacSignRequest) {
-        return mergeFrom((com.google.cloud.kms.v1.MacSignRequest) other);
+        return mergeFrom((com.google.cloud.kms.v1.MacSignRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -591,31 +548,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
+            case 10: {
+              name_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 10
-            case 18:
-              {
-                data_ = input.readBytes();
+              break;
+            } // case 10
+            case 18: {
+              data_ = input.readBytes();
 
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getDataCrc32CFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getDataCrc32CFieldBuilder().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) {
@@ -628,24 +583,20 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
      * signing.
      * 
* - * - * string name = 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; @@ -654,25 +605,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
      * signing.
      * 
* - * - * string name = 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 { @@ -680,73 +628,60 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
      * signing.
      * 
* - * - * 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
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
      * signing.
      * 
* - * - * string 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
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
      * signing.
      * 
* - * - * 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; @@ -754,15 +689,12 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Required. The data to sign. The MAC tag is computed over this data field
      * based on the specific algorithm.
      * 
* * bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The data. */ @java.lang.Override @@ -770,41 +702,35 @@ public com.google.protobuf.ByteString getData() { return data_; } /** - * - * *
      * Required. The data to sign. The MAC tag is computed over this data field
      * based on the specific algorithm.
      * 
* * bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The data to set. * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + data_ = value; onChanged(); return this; } /** - * - * *
      * Required. The data to sign. The MAC tag is computed over this data field
      * based on the specific algorithm.
      * 
* * bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearData() { - + data_ = getDefaultInstance().getData(); onChanged(); return this; @@ -812,13 +738,8 @@ public Builder clearData() { private com.google.protobuf.Int64Value dataCrc32C_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> - dataCrc32CBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> dataCrc32CBuilder_; /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]. If
@@ -839,17 +760,13 @@ public Builder clearData() {
      * this type.
      * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the dataCrc32c field is set. */ public boolean hasDataCrc32C() { return dataCrc32CBuilder_ != null || dataCrc32C_ != null; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]. If
@@ -870,23 +787,17 @@ public boolean hasDataCrc32C() {
      * this type.
      * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The dataCrc32c. */ public com.google.protobuf.Int64Value getDataCrc32C() { if (dataCrc32CBuilder_ == null) { - return dataCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : dataCrc32C_; + return dataCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : dataCrc32C_; } else { return dataCrc32CBuilder_.getMessage(); } } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]. If
@@ -907,8 +818,7 @@ public com.google.protobuf.Int64Value getDataCrc32C() {
      * this type.
      * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setDataCrc32C(com.google.protobuf.Int64Value value) { if (dataCrc32CBuilder_ == null) { @@ -924,8 +834,6 @@ public Builder setDataCrc32C(com.google.protobuf.Int64Value value) { return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]. If
@@ -946,10 +854,10 @@ public Builder setDataCrc32C(com.google.protobuf.Int64Value value) {
      * this type.
      * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setDataCrc32C(com.google.protobuf.Int64Value.Builder builderForValue) { + public Builder setDataCrc32C( + com.google.protobuf.Int64Value.Builder builderForValue) { if (dataCrc32CBuilder_ == null) { dataCrc32C_ = builderForValue.build(); onChanged(); @@ -960,8 +868,6 @@ public Builder setDataCrc32C(com.google.protobuf.Int64Value.Builder builderForVa return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]. If
@@ -982,16 +888,13 @@ public Builder setDataCrc32C(com.google.protobuf.Int64Value.Builder builderForVa
      * this type.
      * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeDataCrc32C(com.google.protobuf.Int64Value value) { if (dataCrc32CBuilder_ == null) { if (dataCrc32C_ != null) { dataCrc32C_ = - com.google.protobuf.Int64Value.newBuilder(dataCrc32C_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Int64Value.newBuilder(dataCrc32C_).mergeFrom(value).buildPartial(); } else { dataCrc32C_ = value; } @@ -1003,8 +906,6 @@ public Builder mergeDataCrc32C(com.google.protobuf.Int64Value value) { return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]. If
@@ -1025,8 +926,7 @@ public Builder mergeDataCrc32C(com.google.protobuf.Int64Value value) {
      * this type.
      * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearDataCrc32C() { if (dataCrc32CBuilder_ == null) { @@ -1040,8 +940,6 @@ public Builder clearDataCrc32C() { return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]. If
@@ -1062,17 +960,14 @@ public Builder clearDataCrc32C() {
      * this type.
      * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Int64Value.Builder getDataCrc32CBuilder() { - + onChanged(); return getDataCrc32CFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]. If
@@ -1093,21 +988,17 @@ public com.google.protobuf.Int64Value.Builder getDataCrc32CBuilder() {
      * this type.
      * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Int64ValueOrBuilder getDataCrc32COrBuilder() { if (dataCrc32CBuilder_ != null) { return dataCrc32CBuilder_.getMessageOrBuilder(); } else { - return dataCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : dataCrc32C_; + return dataCrc32C_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : dataCrc32C_; } } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]. If
@@ -1128,28 +1019,24 @@ public com.google.protobuf.Int64ValueOrBuilder getDataCrc32COrBuilder() {
      * this type.
      * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getDataCrc32CFieldBuilder() { if (dataCrc32CBuilder_ == null) { - dataCrc32CBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder>( - getDataCrc32C(), getParentForChildren(), isClean()); + dataCrc32CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getDataCrc32C(), + getParentForChildren(), + isClean()); dataCrc32C_ = null; } return dataCrc32CBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1159,12 +1046,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.MacSignRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.MacSignRequest) private static final com.google.cloud.kms.v1.MacSignRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.MacSignRequest(); } @@ -1173,27 +1060,27 @@ public static com.google.cloud.kms.v1.MacSignRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MacSignRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MacSignRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1208,4 +1095,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.MacSignRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacSignRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacSignRequestOrBuilder.java similarity index 80% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacSignRequestOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacSignRequestOrBuilder.java index fe2177c0b1ec..ceb9485e1bd6 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacSignRequestOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacSignRequestOrBuilder.java @@ -1,78 +1,48 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface MacSignRequestOrBuilder - extends +public interface MacSignRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.MacSignRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
    * signing.
    * 
* - * - * string name = 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
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
    * signing.
    * 
* - * - * string name = 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 data to sign. The MAC tag is computed over this data field
    * based on the specific algorithm.
    * 
* * bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The data. */ com.google.protobuf.ByteString getData(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]. If
@@ -93,15 +63,11 @@ public interface MacSignRequestOrBuilder
    * this type.
    * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the dataCrc32c field is set. */ boolean hasDataCrc32C(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]. If
@@ -122,15 +88,11 @@ public interface MacSignRequestOrBuilder
    * this type.
    * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The dataCrc32c. */ com.google.protobuf.Int64Value getDataCrc32C(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]. If
@@ -151,8 +113,7 @@ public interface MacSignRequestOrBuilder
    * this type.
    * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.Int64ValueOrBuilder getDataCrc32COrBuilder(); } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacSignResponse.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacSignResponse.java similarity index 79% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacSignResponse.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacSignResponse.java index f1f554b593d9..c040add0cd9c 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacSignResponse.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacSignResponse.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Response message for
  * [KeyManagementService.MacSign][google.cloud.kms.v1.KeyManagementService.MacSign].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.MacSignResponse}
  */
-public final class MacSignResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class MacSignResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.MacSignResponse)
     MacSignResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use MacSignResponse.newBuilder() to construct.
   private MacSignResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private MacSignResponse() {
     name_ = "";
     mac_ = com.google.protobuf.ByteString.EMPTY;
@@ -46,35 +28,32 @@ private MacSignResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new MacSignResponse();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_MacSignResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_MacSignResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_MacSignResponse_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_MacSignResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.MacSignResponse.class,
-            com.google.cloud.kms.v1.MacSignResponse.Builder.class);
+            com.google.cloud.kms.v1.MacSignResponse.class, com.google.cloud.kms.v1.MacSignResponse.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * The resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
@@ -82,7 +61,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -91,15 +69,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 resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
@@ -107,15 +84,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 { @@ -126,14 +104,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int MAC_FIELD_NUMBER = 2; private com.google.protobuf.ByteString mac_; /** - * - * *
    * The created signature.
    * 
* * bytes mac = 2; - * * @return The mac. */ @java.lang.Override @@ -144,8 +119,6 @@ public com.google.protobuf.ByteString getMac() { public static final int MAC_CRC32C_FIELD_NUMBER = 3; private com.google.protobuf.Int64Value macCrc32C_; /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac]. An
@@ -163,7 +136,6 @@ public com.google.protobuf.ByteString getMac() {
    * 
* * .google.protobuf.Int64Value mac_crc32c = 3; - * * @return Whether the macCrc32c field is set. */ @java.lang.Override @@ -171,8 +143,6 @@ public boolean hasMacCrc32C() { return macCrc32C_ != null; } /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac]. An
@@ -190,7 +160,6 @@ public boolean hasMacCrc32C() {
    * 
* * .google.protobuf.Int64Value mac_crc32c = 3; - * * @return The macCrc32c. */ @java.lang.Override @@ -198,8 +167,6 @@ public com.google.protobuf.Int64Value getMacCrc32C() { return macCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : macCrc32C_; } /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac]. An
@@ -226,8 +193,6 @@ public com.google.protobuf.Int64ValueOrBuilder getMacCrc32COrBuilder() {
   public static final int VERIFIED_DATA_CRC32C_FIELD_NUMBER = 4;
   private boolean verifiedDataCrc32C_;
   /**
-   *
-   *
    * 
    * Integrity verification field. A flag indicating whether
    * [MacSignRequest.data_crc32c][google.cloud.kms.v1.MacSignRequest.data_crc32c]
@@ -246,7 +211,6 @@ public com.google.protobuf.Int64ValueOrBuilder getMacCrc32COrBuilder() {
    * 
* * bool verified_data_crc32c = 4; - * * @return The verifiedDataCrc32c. */ @java.lang.Override @@ -257,43 +221,33 @@ public boolean getVerifiedDataCrc32C() { public static final int PROTECTION_LEVEL_FIELD_NUMBER = 5; private int protectionLevel_; /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 5; - * * @return The enum numeric value on the wire for protectionLevel. */ - @java.lang.Override - public int getProtectionLevelValue() { + @java.lang.Override public int getProtectionLevelValue() { return protectionLevel_; } /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 5; - * * @return The protectionLevel. */ - @java.lang.Override - public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { + @java.lang.Override public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.ProtectionLevel result = - com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); + com.google.cloud.kms.v1.ProtectionLevel result = com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); return result == null ? com.google.cloud.kms.v1.ProtectionLevel.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -305,7 +259,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -318,8 +273,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (verifiedDataCrc32C_ != false) { output.writeBool(4, verifiedDataCrc32C_); } - if (protectionLevel_ - != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { + if (protectionLevel_ != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(5, protectionLevel_); } getUnknownFields().writeTo(output); @@ -335,17 +289,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!mac_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, mac_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, mac_); } if (macCrc32C_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMacCrc32C()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMacCrc32C()); } if (verifiedDataCrc32C_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, verifiedDataCrc32C_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, verifiedDataCrc32C_); } - if (protectionLevel_ - != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, protectionLevel_); + if (protectionLevel_ != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, protectionLevel_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -355,20 +312,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.kms.v1.MacSignResponse)) { return super.equals(obj); } com.google.cloud.kms.v1.MacSignResponse other = (com.google.cloud.kms.v1.MacSignResponse) obj; - if (!getName().equals(other.getName())) return false; - if (!getMac().equals(other.getMac())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getMac() + .equals(other.getMac())) return false; if (hasMacCrc32C() != other.hasMacCrc32C()) return false; if (hasMacCrc32C()) { - if (!getMacCrc32C().equals(other.getMacCrc32C())) return false; + if (!getMacCrc32C() + .equals(other.getMacCrc32C())) return false; } - if (getVerifiedDataCrc32C() != other.getVerifiedDataCrc32C()) return false; + if (getVerifiedDataCrc32C() + != other.getVerifiedDataCrc32C()) return false; if (protectionLevel_ != other.protectionLevel_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -390,7 +351,8 @@ public int hashCode() { hash = (53 * hash) + getMacCrc32C().hashCode(); } hash = (37 * hash) + VERIFIED_DATA_CRC32C_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVerifiedDataCrc32C()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getVerifiedDataCrc32C()); hash = (37 * hash) + PROTECTION_LEVEL_FIELD_NUMBER; hash = (53 * hash) + protectionLevel_; hash = (29 * hash) + getUnknownFields().hashCode(); @@ -398,104 +360,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.MacSignResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.MacSignResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.MacSignResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.MacSignResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.MacSignResponse parseFrom( 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.kms.v1.MacSignResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.MacSignResponse parseFrom( - byte[] data, com.google.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.kms.v1.MacSignResponse parseFrom(java.io.InputStream input) 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.kms.v1.MacSignResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.MacSignResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.MacSignResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.MacSignResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.MacSignResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.MacSignResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.MacSignResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for
    * [KeyManagementService.MacSign][google.cloud.kms.v1.KeyManagementService.MacSign].
@@ -503,32 +458,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.MacSignResponse}
    */
-  public static final class Builder extends 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.kms.v1.MacSignResponse)
       com.google.cloud.kms.v1.MacSignResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_MacSignResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_MacSignResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_MacSignResponse_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_MacSignResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.MacSignResponse.class,
-              com.google.cloud.kms.v1.MacSignResponse.Builder.class);
+              com.google.cloud.kms.v1.MacSignResponse.class, com.google.cloud.kms.v1.MacSignResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.MacSignResponse.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();
@@ -550,9 +506,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_MacSignResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_MacSignResponse_descriptor;
     }
 
     @java.lang.Override
@@ -571,8 +527,7 @@ public com.google.cloud.kms.v1.MacSignResponse build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.MacSignResponse buildPartial() {
-      com.google.cloud.kms.v1.MacSignResponse result =
-          new com.google.cloud.kms.v1.MacSignResponse(this);
+      com.google.cloud.kms.v1.MacSignResponse result = new com.google.cloud.kms.v1.MacSignResponse(this);
       result.name_ = name_;
       result.mac_ = mac_;
       if (macCrc32CBuilder_ == null) {
@@ -590,39 +545,38 @@ public com.google.cloud.kms.v1.MacSignResponse 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.kms.v1.MacSignResponse) {
-        return mergeFrom((com.google.cloud.kms.v1.MacSignResponse) other);
+        return mergeFrom((com.google.cloud.kms.v1.MacSignResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -673,43 +627,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
+            case 10: {
+              name_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 10
-            case 18:
-              {
-                mac_ = input.readBytes();
+              break;
+            } // case 10
+            case 18: {
+              mac_ = input.readBytes();
 
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getMacCrc32CFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getMacCrc32CFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 26
-            case 32:
-              {
-                verifiedDataCrc32C_ = input.readBool();
+              break;
+            } // case 26
+            case 32: {
+              verifiedDataCrc32C_ = input.readBool();
 
-                break;
-              } // case 32
-            case 40:
-              {
-                protectionLevel_ = input.readEnum();
+              break;
+            } // case 32
+            case 40: {
+              protectionLevel_ = input.readEnum();
 
-                break;
-              } // case 40
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              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) {
@@ -722,8 +672,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
@@ -731,13 +679,13 @@ public Builder mergeFrom(
      * 
* * 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; @@ -746,8 +694,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
@@ -755,14 +701,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 { @@ -770,8 +717,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
@@ -779,22 +724,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 resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
@@ -802,18 +745,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 resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
@@ -821,16 +761,16 @@ 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; @@ -838,14 +778,11 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.ByteString mac_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * The created signature.
      * 
* * bytes mac = 2; - * * @return The mac. */ @java.lang.Override @@ -853,39 +790,33 @@ public com.google.protobuf.ByteString getMac() { return mac_; } /** - * - * *
      * The created signature.
      * 
* * bytes mac = 2; - * * @param value The mac to set. * @return This builder for chaining. */ public Builder setMac(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mac_ = value; onChanged(); return this; } /** - * - * *
      * The created signature.
      * 
* * bytes mac = 2; - * * @return This builder for chaining. */ public Builder clearMac() { - + mac_ = getDefaultInstance().getMac(); onChanged(); return this; @@ -893,13 +824,8 @@ public Builder clearMac() { private com.google.protobuf.Int64Value macCrc32C_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> - macCrc32CBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> macCrc32CBuilder_; /** - * - * *
      * Integrity verification field. A CRC32C checksum of the returned
      * [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac]. An
@@ -917,15 +843,12 @@ public Builder clearMac() {
      * 
* * .google.protobuf.Int64Value mac_crc32c = 3; - * * @return Whether the macCrc32c field is set. */ public boolean hasMacCrc32C() { return macCrc32CBuilder_ != null || macCrc32C_ != null; } /** - * - * *
      * Integrity verification field. A CRC32C checksum of the returned
      * [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac]. An
@@ -943,21 +866,16 @@ public boolean hasMacCrc32C() {
      * 
* * .google.protobuf.Int64Value mac_crc32c = 3; - * * @return The macCrc32c. */ public com.google.protobuf.Int64Value getMacCrc32C() { if (macCrc32CBuilder_ == null) { - return macCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : macCrc32C_; + return macCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : macCrc32C_; } else { return macCrc32CBuilder_.getMessage(); } } /** - * - * *
      * Integrity verification field. A CRC32C checksum of the returned
      * [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac]. An
@@ -990,8 +908,6 @@ public Builder setMacCrc32C(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac]. An
@@ -1010,7 +926,8 @@ public Builder setMacCrc32C(com.google.protobuf.Int64Value value) {
      *
      * .google.protobuf.Int64Value mac_crc32c = 3;
      */
-    public Builder setMacCrc32C(com.google.protobuf.Int64Value.Builder builderForValue) {
+    public Builder setMacCrc32C(
+        com.google.protobuf.Int64Value.Builder builderForValue) {
       if (macCrc32CBuilder_ == null) {
         macCrc32C_ = builderForValue.build();
         onChanged();
@@ -1021,8 +938,6 @@ public Builder setMacCrc32C(com.google.protobuf.Int64Value.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac]. An
@@ -1045,7 +960,7 @@ public Builder mergeMacCrc32C(com.google.protobuf.Int64Value value) {
       if (macCrc32CBuilder_ == null) {
         if (macCrc32C_ != null) {
           macCrc32C_ =
-              com.google.protobuf.Int64Value.newBuilder(macCrc32C_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Int64Value.newBuilder(macCrc32C_).mergeFrom(value).buildPartial();
         } else {
           macCrc32C_ = value;
         }
@@ -1057,8 +972,6 @@ public Builder mergeMacCrc32C(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac]. An
@@ -1089,8 +1002,6 @@ public Builder clearMacCrc32C() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac]. An
@@ -1110,13 +1021,11 @@ public Builder clearMacCrc32C() {
      * .google.protobuf.Int64Value mac_crc32c = 3;
      */
     public com.google.protobuf.Int64Value.Builder getMacCrc32CBuilder() {
-
+      
       onChanged();
       return getMacCrc32CFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac]. An
@@ -1139,14 +1048,11 @@ public com.google.protobuf.Int64ValueOrBuilder getMacCrc32COrBuilder() {
       if (macCrc32CBuilder_ != null) {
         return macCrc32CBuilder_.getMessageOrBuilder();
       } else {
-        return macCrc32C_ == null
-            ? com.google.protobuf.Int64Value.getDefaultInstance()
-            : macCrc32C_;
+        return macCrc32C_ == null ?
+            com.google.protobuf.Int64Value.getDefaultInstance() : macCrc32C_;
       }
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac]. An
@@ -1166,26 +1072,21 @@ public com.google.protobuf.Int64ValueOrBuilder getMacCrc32COrBuilder() {
      * .google.protobuf.Int64Value mac_crc32c = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Int64Value,
-            com.google.protobuf.Int64Value.Builder,
-            com.google.protobuf.Int64ValueOrBuilder>
+        com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> 
         getMacCrc32CFieldBuilder() {
       if (macCrc32CBuilder_ == null) {
-        macCrc32CBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Int64Value,
-                com.google.protobuf.Int64Value.Builder,
-                com.google.protobuf.Int64ValueOrBuilder>(
-                getMacCrc32C(), getParentForChildren(), isClean());
+        macCrc32CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
+                getMacCrc32C(),
+                getParentForChildren(),
+                isClean());
         macCrc32C_ = null;
       }
       return macCrc32CBuilder_;
     }
 
-    private boolean verifiedDataCrc32C_;
+    private boolean verifiedDataCrc32C_ ;
     /**
-     *
-     *
      * 
      * Integrity verification field. A flag indicating whether
      * [MacSignRequest.data_crc32c][google.cloud.kms.v1.MacSignRequest.data_crc32c]
@@ -1204,7 +1105,6 @@ public com.google.protobuf.Int64ValueOrBuilder getMacCrc32COrBuilder() {
      * 
* * bool verified_data_crc32c = 4; - * * @return The verifiedDataCrc32c. */ @java.lang.Override @@ -1212,8 +1112,6 @@ public boolean getVerifiedDataCrc32C() { return verifiedDataCrc32C_; } /** - * - * *
      * Integrity verification field. A flag indicating whether
      * [MacSignRequest.data_crc32c][google.cloud.kms.v1.MacSignRequest.data_crc32c]
@@ -1232,19 +1130,16 @@ public boolean getVerifiedDataCrc32C() {
      * 
* * bool verified_data_crc32c = 4; - * * @param value The verifiedDataCrc32c to set. * @return This builder for chaining. */ public Builder setVerifiedDataCrc32C(boolean value) { - + verifiedDataCrc32C_ = value; onChanged(); return this; } /** - * - * *
      * Integrity verification field. A flag indicating whether
      * [MacSignRequest.data_crc32c][google.cloud.kms.v1.MacSignRequest.data_crc32c]
@@ -1263,11 +1158,10 @@ public Builder setVerifiedDataCrc32C(boolean value) {
      * 
* * bool verified_data_crc32c = 4; - * * @return This builder for chaining. */ public Builder clearVerifiedDataCrc32C() { - + verifiedDataCrc32C_ = false; onChanged(); return this; @@ -1275,69 +1169,55 @@ public Builder clearVerifiedDataCrc32C() { private int protectionLevel_ = 0; /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 5; - * * @return The enum numeric value on the wire for protectionLevel. */ - @java.lang.Override - public int getProtectionLevelValue() { + @java.lang.Override public int getProtectionLevelValue() { return protectionLevel_; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 5; - * * @param value The enum numeric value on the wire for protectionLevel to set. * @return This builder for chaining. */ public Builder setProtectionLevelValue(int value) { - + protectionLevel_ = value; onChanged(); return this; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 5; - * * @return The protectionLevel. */ @java.lang.Override public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.ProtectionLevel result = - com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); + com.google.cloud.kms.v1.ProtectionLevel result = com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); return result == null ? com.google.cloud.kms.v1.ProtectionLevel.UNRECOGNIZED : result; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 5; - * * @param value The protectionLevel to set. * @return This builder for chaining. */ @@ -1345,32 +1225,29 @@ public Builder setProtectionLevel(com.google.cloud.kms.v1.ProtectionLevel value) if (value == null) { throw new NullPointerException(); } - + protectionLevel_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 5; - * * @return This builder for chaining. */ public Builder clearProtectionLevel() { - + protectionLevel_ = 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); } @@ -1380,12 +1257,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.MacSignResponse) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.MacSignResponse) private static final com.google.cloud.kms.v1.MacSignResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.MacSignResponse(); } @@ -1394,27 +1271,27 @@ public static com.google.cloud.kms.v1.MacSignResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MacSignResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MacSignResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1429,4 +1306,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.MacSignResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacSignResponseOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacSignResponseOrBuilder.java similarity index 87% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacSignResponseOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacSignResponseOrBuilder.java index 79c223275ad3..d3a0a7a108ba 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacSignResponseOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacSignResponseOrBuilder.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/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface MacSignResponseOrBuilder - extends +public interface MacSignResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.MacSignResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
@@ -33,13 +15,10 @@ public interface MacSignResponseOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
@@ -47,27 +26,22 @@ public interface MacSignResponseOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The created signature.
    * 
* * bytes mac = 2; - * * @return The mac. */ com.google.protobuf.ByteString getMac(); /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac]. An
@@ -85,13 +59,10 @@ public interface MacSignResponseOrBuilder
    * 
* * .google.protobuf.Int64Value mac_crc32c = 3; - * * @return Whether the macCrc32c field is set. */ boolean hasMacCrc32C(); /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac]. An
@@ -109,13 +80,10 @@ public interface MacSignResponseOrBuilder
    * 
* * .google.protobuf.Int64Value mac_crc32c = 3; - * * @return The macCrc32c. */ com.google.protobuf.Int64Value getMacCrc32C(); /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac]. An
@@ -137,8 +105,6 @@ public interface MacSignResponseOrBuilder
   com.google.protobuf.Int64ValueOrBuilder getMacCrc32COrBuilder();
 
   /**
-   *
-   *
    * 
    * Integrity verification field. A flag indicating whether
    * [MacSignRequest.data_crc32c][google.cloud.kms.v1.MacSignRequest.data_crc32c]
@@ -157,34 +123,27 @@ public interface MacSignResponseOrBuilder
    * 
* * bool verified_data_crc32c = 4; - * * @return The verifiedDataCrc32c. */ boolean getVerifiedDataCrc32C(); /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 5; - * * @return The enum numeric value on the wire for protectionLevel. */ int getProtectionLevelValue(); /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 5; - * * @return The protectionLevel. */ com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel(); diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacVerifyRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacVerifyRequest.java similarity index 80% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacVerifyRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacVerifyRequest.java index 7cee356b7f0d..8883527befe3 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacVerifyRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacVerifyRequest.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for
  * [KeyManagementService.MacVerify][google.cloud.kms.v1.KeyManagementService.MacVerify].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.MacVerifyRequest}
  */
-public final class MacVerifyRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class MacVerifyRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.MacVerifyRequest)
     MacVerifyRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use MacVerifyRequest.newBuilder() to construct.
   private MacVerifyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private MacVerifyRequest() {
     name_ = "";
     data_ = com.google.protobuf.ByteString.EMPTY;
@@ -46,45 +28,39 @@ private MacVerifyRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new MacVerifyRequest();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_MacVerifyRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_MacVerifyRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_MacVerifyRequest_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_MacVerifyRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.MacVerifyRequest.class,
-            com.google.cloud.kms.v1.MacVerifyRequest.Builder.class);
+            com.google.cloud.kms.v1.MacVerifyRequest.class, com.google.cloud.kms.v1.MacVerifyRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
    * verification.
    * 
* - * - * string name = 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 @@ -93,33 +69,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
    * verification.
    * 
* - * - * string name = 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 { @@ -130,8 +104,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString data_; /** - * - * *
    * Required. The data used previously as a
    * [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data] to generate
@@ -139,7 +111,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The data. */ @java.lang.Override @@ -150,8 +121,6 @@ public com.google.protobuf.ByteString getData() { public static final int DATA_CRC32C_FIELD_NUMBER = 3; private com.google.protobuf.Int64Value dataCrc32C_; /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [MacVerifyRequest.data][google.cloud.kms.v1.MacVerifyRequest.data]. If
@@ -173,9 +142,7 @@ public com.google.protobuf.ByteString getData() {
    * this type.
    * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the dataCrc32c field is set. */ @java.lang.Override @@ -183,8 +150,6 @@ public boolean hasDataCrc32C() { return dataCrc32C_ != null; } /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [MacVerifyRequest.data][google.cloud.kms.v1.MacVerifyRequest.data]. If
@@ -206,9 +171,7 @@ public boolean hasDataCrc32C() {
    * this type.
    * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The dataCrc32c. */ @java.lang.Override @@ -216,8 +179,6 @@ public com.google.protobuf.Int64Value getDataCrc32C() { return dataCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : dataCrc32C_; } /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [MacVerifyRequest.data][google.cloud.kms.v1.MacVerifyRequest.data]. If
@@ -239,8 +200,7 @@ public com.google.protobuf.Int64Value getDataCrc32C() {
    * this type.
    * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getDataCrc32COrBuilder() { @@ -250,14 +210,11 @@ public com.google.protobuf.Int64ValueOrBuilder getDataCrc32COrBuilder() { public static final int MAC_FIELD_NUMBER = 4; private com.google.protobuf.ByteString mac_; /** - * - * *
    * Required. The signature to verify.
    * 
* * bytes mac = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The mac. */ @java.lang.Override @@ -268,8 +225,6 @@ public com.google.protobuf.ByteString getMac() { public static final int MAC_CRC32C_FIELD_NUMBER = 5; private com.google.protobuf.Int64Value macCrc32C_; /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [MacVerifyRequest.mac][google.cloud.kms.v1.MacVerifyRequest.mac]. If
@@ -289,9 +244,7 @@ public com.google.protobuf.ByteString getMac() {
    * this type.
    * 
* - * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the macCrc32c field is set. */ @java.lang.Override @@ -299,8 +252,6 @@ public boolean hasMacCrc32C() { return macCrc32C_ != null; } /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [MacVerifyRequest.mac][google.cloud.kms.v1.MacVerifyRequest.mac]. If
@@ -320,9 +271,7 @@ public boolean hasMacCrc32C() {
    * this type.
    * 
* - * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The macCrc32c. */ @java.lang.Override @@ -330,8 +279,6 @@ public com.google.protobuf.Int64Value getMacCrc32C() { return macCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : macCrc32C_; } /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [MacVerifyRequest.mac][google.cloud.kms.v1.MacVerifyRequest.mac]. If
@@ -351,8 +298,7 @@ public com.google.protobuf.Int64Value getMacCrc32C() {
    * this type.
    * 
* - * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getMacCrc32COrBuilder() { @@ -360,7 +306,6 @@ public com.google.protobuf.Int64ValueOrBuilder getMacCrc32COrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -372,7 +317,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -401,16 +347,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, data_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, data_); } if (dataCrc32C_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDataCrc32C()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDataCrc32C()); } if (!mac_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, mac_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, mac_); } if (macCrc32C_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMacCrc32C()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getMacCrc32C()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -420,23 +370,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.kms.v1.MacVerifyRequest)) { return super.equals(obj); } com.google.cloud.kms.v1.MacVerifyRequest other = (com.google.cloud.kms.v1.MacVerifyRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getData().equals(other.getData())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getData() + .equals(other.getData())) return false; if (hasDataCrc32C() != other.hasDataCrc32C()) return false; if (hasDataCrc32C()) { - if (!getDataCrc32C().equals(other.getDataCrc32C())) return false; + if (!getDataCrc32C() + .equals(other.getDataCrc32C())) return false; } - if (!getMac().equals(other.getMac())) return false; + if (!getMac() + .equals(other.getMac())) return false; if (hasMacCrc32C() != other.hasMacCrc32C()) return false; if (hasMacCrc32C()) { - if (!getMacCrc32C().equals(other.getMacCrc32C())) return false; + if (!getMacCrc32C() + .equals(other.getMacCrc32C())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -468,104 +423,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.MacVerifyRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.MacVerifyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.MacVerifyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.MacVerifyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.MacVerifyRequest parseFrom( 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.kms.v1.MacVerifyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.MacVerifyRequest parseFrom( - byte[] data, com.google.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.kms.v1.MacVerifyRequest parseFrom(java.io.InputStream input) 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.kms.v1.MacVerifyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.MacVerifyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.MacVerifyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.MacVerifyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.MacVerifyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.MacVerifyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.MacVerifyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for
    * [KeyManagementService.MacVerify][google.cloud.kms.v1.KeyManagementService.MacVerify].
@@ -573,32 +521,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.MacVerifyRequest}
    */
-  public static final class Builder extends 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.kms.v1.MacVerifyRequest)
       com.google.cloud.kms.v1.MacVerifyRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_MacVerifyRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_MacVerifyRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_MacVerifyRequest_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_MacVerifyRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.MacVerifyRequest.class,
-              com.google.cloud.kms.v1.MacVerifyRequest.Builder.class);
+              com.google.cloud.kms.v1.MacVerifyRequest.class, com.google.cloud.kms.v1.MacVerifyRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.MacVerifyRequest.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();
@@ -624,9 +573,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_MacVerifyRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_MacVerifyRequest_descriptor;
     }
 
     @java.lang.Override
@@ -645,8 +594,7 @@ public com.google.cloud.kms.v1.MacVerifyRequest build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.MacVerifyRequest buildPartial() {
-      com.google.cloud.kms.v1.MacVerifyRequest result =
-          new com.google.cloud.kms.v1.MacVerifyRequest(this);
+      com.google.cloud.kms.v1.MacVerifyRequest result = new com.google.cloud.kms.v1.MacVerifyRequest(this);
       result.name_ = name_;
       result.data_ = data_;
       if (dataCrc32CBuilder_ == null) {
@@ -668,39 +616,38 @@ public com.google.cloud.kms.v1.MacVerifyRequest 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.kms.v1.MacVerifyRequest) {
-        return mergeFrom((com.google.cloud.kms.v1.MacVerifyRequest) other);
+        return mergeFrom((com.google.cloud.kms.v1.MacVerifyRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -751,43 +698,41 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 18:
-              {
-                data_ = input.readBytes();
-
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getDataCrc32CFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 26
-            case 34:
-              {
-                mac_ = input.readBytes();
-
-                break;
-              } // case 34
-            case 42:
-              {
-                input.readMessage(getMacCrc32CFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 42
-            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: {
+              data_ = input.readBytes();
+
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getDataCrc32CFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 26
+            case 34: {
+              mac_ = input.readBytes();
+
+              break;
+            } // case 34
+            case 42: {
+              input.readMessage(
+                  getMacCrc32CFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              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) {
@@ -800,24 +745,20 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
      * verification.
      * 
* - * - * string name = 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; @@ -826,25 +767,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
      * verification.
      * 
* - * - * string name = 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 { @@ -852,73 +790,60 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
      * verification.
      * 
* - * - * 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
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
      * verification.
      * 
* - * - * string 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
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
      * verification.
      * 
* - * - * 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; @@ -926,8 +851,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Required. The data used previously as a
      * [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data] to generate
@@ -935,7 +858,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The data. */ @java.lang.Override @@ -943,8 +865,6 @@ public com.google.protobuf.ByteString getData() { return data_; } /** - * - * *
      * Required. The data used previously as a
      * [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data] to generate
@@ -952,22 +872,19 @@ public com.google.protobuf.ByteString getData() {
      * 
* * bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The data to set. * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + data_ = value; onChanged(); return this; } /** - * - * *
      * Required. The data used previously as a
      * [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data] to generate
@@ -975,11 +892,10 @@ public Builder setData(com.google.protobuf.ByteString value) {
      * 
* * bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearData() { - + data_ = getDefaultInstance().getData(); onChanged(); return this; @@ -987,13 +903,8 @@ public Builder clearData() { private com.google.protobuf.Int64Value dataCrc32C_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> - dataCrc32CBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> dataCrc32CBuilder_; /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [MacVerifyRequest.data][google.cloud.kms.v1.MacVerifyRequest.data]. If
@@ -1015,17 +926,13 @@ public Builder clearData() {
      * this type.
      * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the dataCrc32c field is set. */ public boolean hasDataCrc32C() { return dataCrc32CBuilder_ != null || dataCrc32C_ != null; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [MacVerifyRequest.data][google.cloud.kms.v1.MacVerifyRequest.data]. If
@@ -1047,23 +954,17 @@ public boolean hasDataCrc32C() {
      * this type.
      * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The dataCrc32c. */ public com.google.protobuf.Int64Value getDataCrc32C() { if (dataCrc32CBuilder_ == null) { - return dataCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : dataCrc32C_; + return dataCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : dataCrc32C_; } else { return dataCrc32CBuilder_.getMessage(); } } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [MacVerifyRequest.data][google.cloud.kms.v1.MacVerifyRequest.data]. If
@@ -1085,8 +986,7 @@ public com.google.protobuf.Int64Value getDataCrc32C() {
      * this type.
      * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setDataCrc32C(com.google.protobuf.Int64Value value) { if (dataCrc32CBuilder_ == null) { @@ -1102,8 +1002,6 @@ public Builder setDataCrc32C(com.google.protobuf.Int64Value value) { return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [MacVerifyRequest.data][google.cloud.kms.v1.MacVerifyRequest.data]. If
@@ -1125,10 +1023,10 @@ public Builder setDataCrc32C(com.google.protobuf.Int64Value value) {
      * this type.
      * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setDataCrc32C(com.google.protobuf.Int64Value.Builder builderForValue) { + public Builder setDataCrc32C( + com.google.protobuf.Int64Value.Builder builderForValue) { if (dataCrc32CBuilder_ == null) { dataCrc32C_ = builderForValue.build(); onChanged(); @@ -1139,8 +1037,6 @@ public Builder setDataCrc32C(com.google.protobuf.Int64Value.Builder builderForVa return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [MacVerifyRequest.data][google.cloud.kms.v1.MacVerifyRequest.data]. If
@@ -1162,16 +1058,13 @@ public Builder setDataCrc32C(com.google.protobuf.Int64Value.Builder builderForVa
      * this type.
      * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeDataCrc32C(com.google.protobuf.Int64Value value) { if (dataCrc32CBuilder_ == null) { if (dataCrc32C_ != null) { dataCrc32C_ = - com.google.protobuf.Int64Value.newBuilder(dataCrc32C_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Int64Value.newBuilder(dataCrc32C_).mergeFrom(value).buildPartial(); } else { dataCrc32C_ = value; } @@ -1183,8 +1076,6 @@ public Builder mergeDataCrc32C(com.google.protobuf.Int64Value value) { return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [MacVerifyRequest.data][google.cloud.kms.v1.MacVerifyRequest.data]. If
@@ -1206,8 +1097,7 @@ public Builder mergeDataCrc32C(com.google.protobuf.Int64Value value) {
      * this type.
      * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearDataCrc32C() { if (dataCrc32CBuilder_ == null) { @@ -1221,8 +1111,6 @@ public Builder clearDataCrc32C() { return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [MacVerifyRequest.data][google.cloud.kms.v1.MacVerifyRequest.data]. If
@@ -1244,17 +1132,14 @@ public Builder clearDataCrc32C() {
      * this type.
      * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Int64Value.Builder getDataCrc32CBuilder() { - + onChanged(); return getDataCrc32CFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [MacVerifyRequest.data][google.cloud.kms.v1.MacVerifyRequest.data]. If
@@ -1276,21 +1161,17 @@ public com.google.protobuf.Int64Value.Builder getDataCrc32CBuilder() {
      * this type.
      * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Int64ValueOrBuilder getDataCrc32COrBuilder() { if (dataCrc32CBuilder_ != null) { return dataCrc32CBuilder_.getMessageOrBuilder(); } else { - return dataCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : dataCrc32C_; + return dataCrc32C_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : dataCrc32C_; } } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [MacVerifyRequest.data][google.cloud.kms.v1.MacVerifyRequest.data]. If
@@ -1312,21 +1193,17 @@ public com.google.protobuf.Int64ValueOrBuilder getDataCrc32COrBuilder() {
      * this type.
      * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getDataCrc32CFieldBuilder() { if (dataCrc32CBuilder_ == null) { - dataCrc32CBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder>( - getDataCrc32C(), getParentForChildren(), isClean()); + dataCrc32CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getDataCrc32C(), + getParentForChildren(), + isClean()); dataCrc32C_ = null; } return dataCrc32CBuilder_; @@ -1334,14 +1211,11 @@ public com.google.protobuf.Int64ValueOrBuilder getDataCrc32COrBuilder() { private com.google.protobuf.ByteString mac_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Required. The signature to verify.
      * 
* * bytes mac = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The mac. */ @java.lang.Override @@ -1349,39 +1223,33 @@ public com.google.protobuf.ByteString getMac() { return mac_; } /** - * - * *
      * Required. The signature to verify.
      * 
* * bytes mac = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The mac to set. * @return This builder for chaining. */ public Builder setMac(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mac_ = value; onChanged(); return this; } /** - * - * *
      * Required. The signature to verify.
      * 
* * bytes mac = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearMac() { - + mac_ = getDefaultInstance().getMac(); onChanged(); return this; @@ -1389,13 +1257,8 @@ public Builder clearMac() { private com.google.protobuf.Int64Value macCrc32C_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> - macCrc32CBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> macCrc32CBuilder_; /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [MacVerifyRequest.mac][google.cloud.kms.v1.MacVerifyRequest.mac]. If
@@ -1415,17 +1278,13 @@ public Builder clearMac() {
      * this type.
      * 
* - * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the macCrc32c field is set. */ public boolean hasMacCrc32C() { return macCrc32CBuilder_ != null || macCrc32C_ != null; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [MacVerifyRequest.mac][google.cloud.kms.v1.MacVerifyRequest.mac]. If
@@ -1445,23 +1304,17 @@ public boolean hasMacCrc32C() {
      * this type.
      * 
* - * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The macCrc32c. */ public com.google.protobuf.Int64Value getMacCrc32C() { if (macCrc32CBuilder_ == null) { - return macCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : macCrc32C_; + return macCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : macCrc32C_; } else { return macCrc32CBuilder_.getMessage(); } } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [MacVerifyRequest.mac][google.cloud.kms.v1.MacVerifyRequest.mac]. If
@@ -1481,8 +1334,7 @@ public com.google.protobuf.Int64Value getMacCrc32C() {
      * this type.
      * 
* - * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setMacCrc32C(com.google.protobuf.Int64Value value) { if (macCrc32CBuilder_ == null) { @@ -1498,8 +1350,6 @@ public Builder setMacCrc32C(com.google.protobuf.Int64Value value) { return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [MacVerifyRequest.mac][google.cloud.kms.v1.MacVerifyRequest.mac]. If
@@ -1519,10 +1369,10 @@ public Builder setMacCrc32C(com.google.protobuf.Int64Value value) {
      * this type.
      * 
* - * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setMacCrc32C(com.google.protobuf.Int64Value.Builder builderForValue) { + public Builder setMacCrc32C( + com.google.protobuf.Int64Value.Builder builderForValue) { if (macCrc32CBuilder_ == null) { macCrc32C_ = builderForValue.build(); onChanged(); @@ -1533,8 +1383,6 @@ public Builder setMacCrc32C(com.google.protobuf.Int64Value.Builder builderForVal return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [MacVerifyRequest.mac][google.cloud.kms.v1.MacVerifyRequest.mac]. If
@@ -1554,14 +1402,13 @@ public Builder setMacCrc32C(com.google.protobuf.Int64Value.Builder builderForVal
      * this type.
      * 
* - * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeMacCrc32C(com.google.protobuf.Int64Value value) { if (macCrc32CBuilder_ == null) { if (macCrc32C_ != null) { macCrc32C_ = - com.google.protobuf.Int64Value.newBuilder(macCrc32C_).mergeFrom(value).buildPartial(); + com.google.protobuf.Int64Value.newBuilder(macCrc32C_).mergeFrom(value).buildPartial(); } else { macCrc32C_ = value; } @@ -1573,8 +1420,6 @@ public Builder mergeMacCrc32C(com.google.protobuf.Int64Value value) { return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [MacVerifyRequest.mac][google.cloud.kms.v1.MacVerifyRequest.mac]. If
@@ -1594,8 +1439,7 @@ public Builder mergeMacCrc32C(com.google.protobuf.Int64Value value) {
      * this type.
      * 
* - * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearMacCrc32C() { if (macCrc32CBuilder_ == null) { @@ -1609,8 +1453,6 @@ public Builder clearMacCrc32C() { return this; } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [MacVerifyRequest.mac][google.cloud.kms.v1.MacVerifyRequest.mac]. If
@@ -1630,17 +1472,14 @@ public Builder clearMacCrc32C() {
      * this type.
      * 
* - * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Int64Value.Builder getMacCrc32CBuilder() { - + onChanged(); return getMacCrc32CFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [MacVerifyRequest.mac][google.cloud.kms.v1.MacVerifyRequest.mac]. If
@@ -1660,21 +1499,17 @@ public com.google.protobuf.Int64Value.Builder getMacCrc32CBuilder() {
      * this type.
      * 
* - * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Int64ValueOrBuilder getMacCrc32COrBuilder() { if (macCrc32CBuilder_ != null) { return macCrc32CBuilder_.getMessageOrBuilder(); } else { - return macCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : macCrc32C_; + return macCrc32C_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : macCrc32C_; } } /** - * - * *
      * Optional. An optional CRC32C checksum of the
      * [MacVerifyRequest.mac][google.cloud.kms.v1.MacVerifyRequest.mac]. If
@@ -1694,28 +1529,24 @@ public com.google.protobuf.Int64ValueOrBuilder getMacCrc32COrBuilder() {
      * this type.
      * 
* - * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getMacCrc32CFieldBuilder() { if (macCrc32CBuilder_ == null) { - macCrc32CBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder>( - getMacCrc32C(), getParentForChildren(), isClean()); + macCrc32CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getMacCrc32C(), + getParentForChildren(), + isClean()); macCrc32C_ = null; } return macCrc32CBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1725,12 +1556,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.MacVerifyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.MacVerifyRequest) private static final com.google.cloud.kms.v1.MacVerifyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.MacVerifyRequest(); } @@ -1739,27 +1570,27 @@ public static com.google.cloud.kms.v1.MacVerifyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MacVerifyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MacVerifyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1774,4 +1605,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.MacVerifyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacVerifyRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacVerifyRequestOrBuilder.java similarity index 86% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacVerifyRequestOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacVerifyRequestOrBuilder.java index 02f675219a59..49b0f2899e19 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacVerifyRequestOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacVerifyRequestOrBuilder.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/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface MacVerifyRequestOrBuilder - extends +public interface MacVerifyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.MacVerifyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
    * verification.
    * 
* - * - * string name = 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
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
    * verification.
    * 
* - * - * string name = 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 data used previously as a
    * [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data] to generate
@@ -66,14 +39,11 @@ public interface MacVerifyRequestOrBuilder
    * 
* * bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The data. */ com.google.protobuf.ByteString getData(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [MacVerifyRequest.data][google.cloud.kms.v1.MacVerifyRequest.data]. If
@@ -95,15 +65,11 @@ public interface MacVerifyRequestOrBuilder
    * this type.
    * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the dataCrc32c field is set. */ boolean hasDataCrc32C(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [MacVerifyRequest.data][google.cloud.kms.v1.MacVerifyRequest.data]. If
@@ -125,15 +91,11 @@ public interface MacVerifyRequestOrBuilder
    * this type.
    * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The dataCrc32c. */ com.google.protobuf.Int64Value getDataCrc32C(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [MacVerifyRequest.data][google.cloud.kms.v1.MacVerifyRequest.data]. If
@@ -155,27 +117,21 @@ public interface MacVerifyRequestOrBuilder
    * this type.
    * 
* - * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.Int64ValueOrBuilder getDataCrc32COrBuilder(); /** - * - * *
    * Required. The signature to verify.
    * 
* * bytes mac = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The mac. */ com.google.protobuf.ByteString getMac(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [MacVerifyRequest.mac][google.cloud.kms.v1.MacVerifyRequest.mac]. If
@@ -195,15 +151,11 @@ public interface MacVerifyRequestOrBuilder
    * this type.
    * 
* - * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the macCrc32c field is set. */ boolean hasMacCrc32C(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [MacVerifyRequest.mac][google.cloud.kms.v1.MacVerifyRequest.mac]. If
@@ -223,15 +175,11 @@ public interface MacVerifyRequestOrBuilder
    * this type.
    * 
* - * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The macCrc32c. */ com.google.protobuf.Int64Value getMacCrc32C(); /** - * - * *
    * Optional. An optional CRC32C checksum of the
    * [MacVerifyRequest.mac][google.cloud.kms.v1.MacVerifyRequest.mac]. If
@@ -251,8 +199,7 @@ public interface MacVerifyRequestOrBuilder
    * this type.
    * 
* - * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int64Value mac_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.Int64ValueOrBuilder getMacCrc32COrBuilder(); } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacVerifyResponse.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacVerifyResponse.java similarity index 77% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacVerifyResponse.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacVerifyResponse.java index 9eee497974fd..5af72c8de599 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacVerifyResponse.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacVerifyResponse.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Response message for
  * [KeyManagementService.MacVerify][google.cloud.kms.v1.KeyManagementService.MacVerify].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.MacVerifyResponse}
  */
-public final class MacVerifyResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class MacVerifyResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.MacVerifyResponse)
     MacVerifyResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use MacVerifyResponse.newBuilder() to construct.
   private MacVerifyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private MacVerifyResponse() {
     name_ = "";
     protectionLevel_ = 0;
@@ -45,35 +27,32 @@ private MacVerifyResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new MacVerifyResponse();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_MacVerifyResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_MacVerifyResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_MacVerifyResponse_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_MacVerifyResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.MacVerifyResponse.class,
-            com.google.cloud.kms.v1.MacVerifyResponse.Builder.class);
+            com.google.cloud.kms.v1.MacVerifyResponse.class, com.google.cloud.kms.v1.MacVerifyResponse.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * The resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for
@@ -82,7 +61,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -91,15 +69,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 resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for
@@ -108,15 +85,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 { @@ -127,8 +105,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SUCCESS_FIELD_NUMBER = 2; private boolean success_; /** - * - * *
    * This field indicates whether or not the verification operation for
    * [MacVerifyRequest.mac][google.cloud.kms.v1.MacVerifyRequest.mac] over
@@ -137,7 +113,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * bool success = 2; - * * @return The success. */ @java.lang.Override @@ -148,8 +123,6 @@ public boolean getSuccess() { public static final int VERIFIED_DATA_CRC32C_FIELD_NUMBER = 3; private boolean verifiedDataCrc32C_; /** - * - * *
    * Integrity verification field. A flag indicating whether
    * [MacVerifyRequest.data_crc32c][google.cloud.kms.v1.MacVerifyRequest.data_crc32c]
@@ -168,7 +141,6 @@ public boolean getSuccess() {
    * 
* * bool verified_data_crc32c = 3; - * * @return The verifiedDataCrc32c. */ @java.lang.Override @@ -179,8 +151,6 @@ public boolean getVerifiedDataCrc32C() { public static final int VERIFIED_MAC_CRC32C_FIELD_NUMBER = 4; private boolean verifiedMacCrc32C_; /** - * - * *
    * Integrity verification field. A flag indicating whether
    * [MacVerifyRequest.mac_crc32c][google.cloud.kms.v1.MacVerifyRequest.mac_crc32c]
@@ -199,7 +169,6 @@ public boolean getVerifiedDataCrc32C() {
    * 
* * bool verified_mac_crc32c = 4; - * * @return The verifiedMacCrc32c. */ @java.lang.Override @@ -210,8 +179,6 @@ public boolean getVerifiedMacCrc32C() { public static final int VERIFIED_SUCCESS_INTEGRITY_FIELD_NUMBER = 5; private boolean verifiedSuccessIntegrity_; /** - * - * *
    * Integrity verification field. This value is used for the integrity
    * verification of [MacVerifyResponse.success]. If the value of this field
@@ -220,7 +187,6 @@ public boolean getVerifiedMacCrc32C() {
    * 
* * bool verified_success_integrity = 5; - * * @return The verifiedSuccessIntegrity. */ @java.lang.Override @@ -231,8 +197,6 @@ public boolean getVerifiedSuccessIntegrity() { public static final int PROTECTION_LEVEL_FIELD_NUMBER = 6; private int protectionLevel_; /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for
@@ -240,16 +204,12 @@ public boolean getVerifiedSuccessIntegrity() {
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 6; - * * @return The enum numeric value on the wire for protectionLevel. */ - @java.lang.Override - public int getProtectionLevelValue() { + @java.lang.Override public int getProtectionLevelValue() { return protectionLevel_; } /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for
@@ -257,19 +217,15 @@ public int getProtectionLevelValue() {
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 6; - * * @return The protectionLevel. */ - @java.lang.Override - public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { + @java.lang.Override public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.ProtectionLevel result = - com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); + com.google.cloud.kms.v1.ProtectionLevel result = com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); return result == null ? com.google.cloud.kms.v1.ProtectionLevel.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -281,7 +237,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -297,8 +254,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (verifiedSuccessIntegrity_ != false) { output.writeBool(5, verifiedSuccessIntegrity_); } - if (protectionLevel_ - != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { + if (protectionLevel_ != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(6, protectionLevel_); } getUnknownFields().writeTo(output); @@ -314,20 +270,24 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (success_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, success_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, success_); } if (verifiedDataCrc32C_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, verifiedDataCrc32C_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, verifiedDataCrc32C_); } if (verifiedMacCrc32C_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, verifiedMacCrc32C_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, verifiedMacCrc32C_); } if (verifiedSuccessIntegrity_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, verifiedSuccessIntegrity_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, verifiedSuccessIntegrity_); } - if (protectionLevel_ - != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, protectionLevel_); + if (protectionLevel_ != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, protectionLevel_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -337,19 +297,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.kms.v1.MacVerifyResponse)) { return super.equals(obj); } - com.google.cloud.kms.v1.MacVerifyResponse other = - (com.google.cloud.kms.v1.MacVerifyResponse) obj; - - if (!getName().equals(other.getName())) return false; - if (getSuccess() != other.getSuccess()) return false; - if (getVerifiedDataCrc32C() != other.getVerifiedDataCrc32C()) return false; - if (getVerifiedMacCrc32C() != other.getVerifiedMacCrc32C()) return false; - if (getVerifiedSuccessIntegrity() != other.getVerifiedSuccessIntegrity()) return false; + com.google.cloud.kms.v1.MacVerifyResponse other = (com.google.cloud.kms.v1.MacVerifyResponse) obj; + + if (!getName() + .equals(other.getName())) return false; + if (getSuccess() + != other.getSuccess()) return false; + if (getVerifiedDataCrc32C() + != other.getVerifiedDataCrc32C()) return false; + if (getVerifiedMacCrc32C() + != other.getVerifiedMacCrc32C()) return false; + if (getVerifiedSuccessIntegrity() + != other.getVerifiedSuccessIntegrity()) return false; if (protectionLevel_ != other.protectionLevel_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -365,13 +329,17 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SUCCESS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSuccess()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSuccess()); hash = (37 * hash) + VERIFIED_DATA_CRC32C_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVerifiedDataCrc32C()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getVerifiedDataCrc32C()); hash = (37 * hash) + VERIFIED_MAC_CRC32C_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVerifiedMacCrc32C()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getVerifiedMacCrc32C()); hash = (37 * hash) + VERIFIED_SUCCESS_INTEGRITY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVerifiedSuccessIntegrity()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getVerifiedSuccessIntegrity()); hash = (37 * hash) + PROTECTION_LEVEL_FIELD_NUMBER; hash = (53 * hash) + protectionLevel_; hash = (29 * hash) + getUnknownFields().hashCode(); @@ -379,104 +347,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.MacVerifyResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.MacVerifyResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.MacVerifyResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.MacVerifyResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.MacVerifyResponse parseFrom( 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.kms.v1.MacVerifyResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.MacVerifyResponse parseFrom( - byte[] data, com.google.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.kms.v1.MacVerifyResponse parseFrom(java.io.InputStream input) 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.kms.v1.MacVerifyResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.MacVerifyResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.MacVerifyResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.MacVerifyResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.MacVerifyResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.MacVerifyResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.MacVerifyResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for
    * [KeyManagementService.MacVerify][google.cloud.kms.v1.KeyManagementService.MacVerify].
@@ -484,32 +445,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.MacVerifyResponse}
    */
-  public static final class Builder extends 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.kms.v1.MacVerifyResponse)
       com.google.cloud.kms.v1.MacVerifyResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_MacVerifyResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_MacVerifyResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_MacVerifyResponse_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_MacVerifyResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.MacVerifyResponse.class,
-              com.google.cloud.kms.v1.MacVerifyResponse.Builder.class);
+              com.google.cloud.kms.v1.MacVerifyResponse.class, com.google.cloud.kms.v1.MacVerifyResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.MacVerifyResponse.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();
@@ -529,9 +491,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_MacVerifyResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_MacVerifyResponse_descriptor;
     }
 
     @java.lang.Override
@@ -550,8 +512,7 @@ public com.google.cloud.kms.v1.MacVerifyResponse build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.MacVerifyResponse buildPartial() {
-      com.google.cloud.kms.v1.MacVerifyResponse result =
-          new com.google.cloud.kms.v1.MacVerifyResponse(this);
+      com.google.cloud.kms.v1.MacVerifyResponse result = new com.google.cloud.kms.v1.MacVerifyResponse(this);
       result.name_ = name_;
       result.success_ = success_;
       result.verifiedDataCrc32C_ = verifiedDataCrc32C_;
@@ -566,39 +527,38 @@ public com.google.cloud.kms.v1.MacVerifyResponse 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.kms.v1.MacVerifyResponse) {
-        return mergeFrom((com.google.cloud.kms.v1.MacVerifyResponse) other);
+        return mergeFrom((com.google.cloud.kms.v1.MacVerifyResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -652,49 +612,42 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 16:
-              {
-                success_ = input.readBool();
-
-                break;
-              } // case 16
-            case 24:
-              {
-                verifiedDataCrc32C_ = input.readBool();
-
-                break;
-              } // case 24
-            case 32:
-              {
-                verifiedMacCrc32C_ = input.readBool();
-
-                break;
-              } // case 32
-            case 40:
-              {
-                verifiedSuccessIntegrity_ = input.readBool();
-
-                break;
-              } // case 40
-            case 48:
-              {
-                protectionLevel_ = input.readEnum();
-
-                break;
-              } // case 48
-            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: {
+              success_ = input.readBool();
+
+              break;
+            } // case 16
+            case 24: {
+              verifiedDataCrc32C_ = input.readBool();
+
+              break;
+            } // case 24
+            case 32: {
+              verifiedMacCrc32C_ = input.readBool();
+
+              break;
+            } // case 32
+            case 40: {
+              verifiedSuccessIntegrity_ = input.readBool();
+
+              break;
+            } // case 40
+            case 48: {
+              protectionLevel_ = 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) {
@@ -707,8 +660,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for
@@ -717,13 +668,13 @@ public Builder mergeFrom(
      * 
* * 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; @@ -732,8 +683,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for
@@ -742,14 +691,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 { @@ -757,8 +707,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for
@@ -767,22 +715,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 resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for
@@ -791,18 +737,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 resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for
@@ -811,25 +754,23 @@ 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 boolean success_; + private boolean success_ ; /** - * - * *
      * This field indicates whether or not the verification operation for
      * [MacVerifyRequest.mac][google.cloud.kms.v1.MacVerifyRequest.mac] over
@@ -838,7 +779,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * bool success = 2; - * * @return The success. */ @java.lang.Override @@ -846,8 +786,6 @@ public boolean getSuccess() { return success_; } /** - * - * *
      * This field indicates whether or not the verification operation for
      * [MacVerifyRequest.mac][google.cloud.kms.v1.MacVerifyRequest.mac] over
@@ -856,19 +794,16 @@ public boolean getSuccess() {
      * 
* * bool success = 2; - * * @param value The success to set. * @return This builder for chaining. */ public Builder setSuccess(boolean value) { - + success_ = value; onChanged(); return this; } /** - * - * *
      * This field indicates whether or not the verification operation for
      * [MacVerifyRequest.mac][google.cloud.kms.v1.MacVerifyRequest.mac] over
@@ -877,20 +812,17 @@ public Builder setSuccess(boolean value) {
      * 
* * bool success = 2; - * * @return This builder for chaining. */ public Builder clearSuccess() { - + success_ = false; onChanged(); return this; } - private boolean verifiedDataCrc32C_; + private boolean verifiedDataCrc32C_ ; /** - * - * *
      * Integrity verification field. A flag indicating whether
      * [MacVerifyRequest.data_crc32c][google.cloud.kms.v1.MacVerifyRequest.data_crc32c]
@@ -909,7 +841,6 @@ public Builder clearSuccess() {
      * 
* * bool verified_data_crc32c = 3; - * * @return The verifiedDataCrc32c. */ @java.lang.Override @@ -917,8 +848,6 @@ public boolean getVerifiedDataCrc32C() { return verifiedDataCrc32C_; } /** - * - * *
      * Integrity verification field. A flag indicating whether
      * [MacVerifyRequest.data_crc32c][google.cloud.kms.v1.MacVerifyRequest.data_crc32c]
@@ -937,19 +866,16 @@ public boolean getVerifiedDataCrc32C() {
      * 
* * bool verified_data_crc32c = 3; - * * @param value The verifiedDataCrc32c to set. * @return This builder for chaining. */ public Builder setVerifiedDataCrc32C(boolean value) { - + verifiedDataCrc32C_ = value; onChanged(); return this; } /** - * - * *
      * Integrity verification field. A flag indicating whether
      * [MacVerifyRequest.data_crc32c][google.cloud.kms.v1.MacVerifyRequest.data_crc32c]
@@ -968,20 +894,17 @@ public Builder setVerifiedDataCrc32C(boolean value) {
      * 
* * bool verified_data_crc32c = 3; - * * @return This builder for chaining. */ public Builder clearVerifiedDataCrc32C() { - + verifiedDataCrc32C_ = false; onChanged(); return this; } - private boolean verifiedMacCrc32C_; + private boolean verifiedMacCrc32C_ ; /** - * - * *
      * Integrity verification field. A flag indicating whether
      * [MacVerifyRequest.mac_crc32c][google.cloud.kms.v1.MacVerifyRequest.mac_crc32c]
@@ -1000,7 +923,6 @@ public Builder clearVerifiedDataCrc32C() {
      * 
* * bool verified_mac_crc32c = 4; - * * @return The verifiedMacCrc32c. */ @java.lang.Override @@ -1008,8 +930,6 @@ public boolean getVerifiedMacCrc32C() { return verifiedMacCrc32C_; } /** - * - * *
      * Integrity verification field. A flag indicating whether
      * [MacVerifyRequest.mac_crc32c][google.cloud.kms.v1.MacVerifyRequest.mac_crc32c]
@@ -1028,19 +948,16 @@ public boolean getVerifiedMacCrc32C() {
      * 
* * bool verified_mac_crc32c = 4; - * * @param value The verifiedMacCrc32c to set. * @return This builder for chaining. */ public Builder setVerifiedMacCrc32C(boolean value) { - + verifiedMacCrc32C_ = value; onChanged(); return this; } /** - * - * *
      * Integrity verification field. A flag indicating whether
      * [MacVerifyRequest.mac_crc32c][google.cloud.kms.v1.MacVerifyRequest.mac_crc32c]
@@ -1059,20 +976,17 @@ public Builder setVerifiedMacCrc32C(boolean value) {
      * 
* * bool verified_mac_crc32c = 4; - * * @return This builder for chaining. */ public Builder clearVerifiedMacCrc32C() { - + verifiedMacCrc32C_ = false; onChanged(); return this; } - private boolean verifiedSuccessIntegrity_; + private boolean verifiedSuccessIntegrity_ ; /** - * - * *
      * Integrity verification field. This value is used for the integrity
      * verification of [MacVerifyResponse.success]. If the value of this field
@@ -1081,7 +995,6 @@ public Builder clearVerifiedMacCrc32C() {
      * 
* * bool verified_success_integrity = 5; - * * @return The verifiedSuccessIntegrity. */ @java.lang.Override @@ -1089,8 +1002,6 @@ public boolean getVerifiedSuccessIntegrity() { return verifiedSuccessIntegrity_; } /** - * - * *
      * Integrity verification field. This value is used for the integrity
      * verification of [MacVerifyResponse.success]. If the value of this field
@@ -1099,19 +1010,16 @@ public boolean getVerifiedSuccessIntegrity() {
      * 
* * bool verified_success_integrity = 5; - * * @param value The verifiedSuccessIntegrity to set. * @return This builder for chaining. */ public Builder setVerifiedSuccessIntegrity(boolean value) { - + verifiedSuccessIntegrity_ = value; onChanged(); return this; } /** - * - * *
      * Integrity verification field. This value is used for the integrity
      * verification of [MacVerifyResponse.success]. If the value of this field
@@ -1120,11 +1028,10 @@ public Builder setVerifiedSuccessIntegrity(boolean value) {
      * 
* * bool verified_success_integrity = 5; - * * @return This builder for chaining. */ public Builder clearVerifiedSuccessIntegrity() { - + verifiedSuccessIntegrity_ = false; onChanged(); return this; @@ -1132,8 +1039,6 @@ public Builder clearVerifiedSuccessIntegrity() { private int protectionLevel_ = 0; /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for
@@ -1141,16 +1046,12 @@ public Builder clearVerifiedSuccessIntegrity() {
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 6; - * * @return The enum numeric value on the wire for protectionLevel. */ - @java.lang.Override - public int getProtectionLevelValue() { + @java.lang.Override public int getProtectionLevelValue() { return protectionLevel_; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for
@@ -1158,19 +1059,16 @@ public int getProtectionLevelValue() {
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 6; - * * @param value The enum numeric value on the wire for protectionLevel to set. * @return This builder for chaining. */ public Builder setProtectionLevelValue(int value) { - + protectionLevel_ = value; onChanged(); return this; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for
@@ -1178,19 +1076,15 @@ public Builder setProtectionLevelValue(int value) {
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 6; - * * @return The protectionLevel. */ @java.lang.Override public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.ProtectionLevel result = - com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); + com.google.cloud.kms.v1.ProtectionLevel result = com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); return result == null ? com.google.cloud.kms.v1.ProtectionLevel.UNRECOGNIZED : result; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for
@@ -1198,7 +1092,6 @@ public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() {
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 6; - * * @param value The protectionLevel to set. * @return This builder for chaining. */ @@ -1206,14 +1099,12 @@ public Builder setProtectionLevel(com.google.cloud.kms.v1.ProtectionLevel value) if (value == null) { throw new NullPointerException(); } - + protectionLevel_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for
@@ -1221,18 +1112,17 @@ public Builder setProtectionLevel(com.google.cloud.kms.v1.ProtectionLevel value)
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 6; - * * @return This builder for chaining. */ public Builder clearProtectionLevel() { - + protectionLevel_ = 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); } @@ -1242,12 +1132,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.MacVerifyResponse) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.MacVerifyResponse) private static final com.google.cloud.kms.v1.MacVerifyResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.MacVerifyResponse(); } @@ -1256,27 +1146,27 @@ public static com.google.cloud.kms.v1.MacVerifyResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MacVerifyResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MacVerifyResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1291,4 +1181,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.MacVerifyResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacVerifyResponseOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacVerifyResponseOrBuilder.java similarity index 84% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacVerifyResponseOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacVerifyResponseOrBuilder.java index d8f9b8ed0ea8..073a9c83730c 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacVerifyResponseOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/MacVerifyResponseOrBuilder.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/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface MacVerifyResponseOrBuilder - extends +public interface MacVerifyResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.MacVerifyResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for
@@ -34,13 +16,10 @@ public interface MacVerifyResponseOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for
@@ -49,14 +28,12 @@ public interface MacVerifyResponseOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * This field indicates whether or not the verification operation for
    * [MacVerifyRequest.mac][google.cloud.kms.v1.MacVerifyRequest.mac] over
@@ -65,14 +42,11 @@ public interface MacVerifyResponseOrBuilder
    * 
* * bool success = 2; - * * @return The success. */ boolean getSuccess(); /** - * - * *
    * Integrity verification field. A flag indicating whether
    * [MacVerifyRequest.data_crc32c][google.cloud.kms.v1.MacVerifyRequest.data_crc32c]
@@ -91,14 +65,11 @@ public interface MacVerifyResponseOrBuilder
    * 
* * bool verified_data_crc32c = 3; - * * @return The verifiedDataCrc32c. */ boolean getVerifiedDataCrc32C(); /** - * - * *
    * Integrity verification field. A flag indicating whether
    * [MacVerifyRequest.mac_crc32c][google.cloud.kms.v1.MacVerifyRequest.mac_crc32c]
@@ -117,14 +88,11 @@ public interface MacVerifyResponseOrBuilder
    * 
* * bool verified_mac_crc32c = 4; - * * @return The verifiedMacCrc32c. */ boolean getVerifiedMacCrc32C(); /** - * - * *
    * Integrity verification field. This value is used for the integrity
    * verification of [MacVerifyResponse.success]. If the value of this field
@@ -133,14 +101,11 @@ public interface MacVerifyResponseOrBuilder
    * 
* * bool verified_success_integrity = 5; - * * @return The verifiedSuccessIntegrity. */ boolean getVerifiedSuccessIntegrity(); /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for
@@ -148,13 +113,10 @@ public interface MacVerifyResponseOrBuilder
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 6; - * * @return The enum numeric value on the wire for protectionLevel. */ int getProtectionLevelValue(); /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for
@@ -162,7 +124,6 @@ public interface MacVerifyResponseOrBuilder
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 6; - * * @return The protectionLevel. */ com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel(); diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ProtectionLevel.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ProtectionLevel.java similarity index 71% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ProtectionLevel.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ProtectionLevel.java index e398ca83ddf4..5ba261455636 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ProtectionLevel.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ProtectionLevel.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/kms/v1/resources.proto package com.google.cloud.kms.v1; /** - * - * *
  * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] specifies how
  * cryptographic operations are performed. For more information, see [Protection
@@ -29,10 +12,9 @@
  *
  * Protobuf enum {@code google.cloud.kms.v1.ProtectionLevel}
  */
-public enum ProtectionLevel implements com.google.protobuf.ProtocolMessageEnum {
+public enum ProtectionLevel
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * Not specified.
    * 
@@ -41,8 +23,6 @@ public enum ProtectionLevel implements com.google.protobuf.ProtocolMessageEnum { */ PROTECTION_LEVEL_UNSPECIFIED(0), /** - * - * *
    * Crypto operations are performed in software.
    * 
@@ -51,8 +31,6 @@ public enum ProtectionLevel implements com.google.protobuf.ProtocolMessageEnum { */ SOFTWARE(1), /** - * - * *
    * Crypto operations are performed in a Hardware Security Module.
    * 
@@ -61,8 +39,6 @@ public enum ProtectionLevel implements com.google.protobuf.ProtocolMessageEnum { */ HSM(2), /** - * - * *
    * Crypto operations are performed by an external key manager.
    * 
@@ -71,8 +47,6 @@ public enum ProtectionLevel implements com.google.protobuf.ProtocolMessageEnum { */ EXTERNAL(3), /** - * - * *
    * Crypto operations are performed in an EKM-over-VPC backend.
    * 
@@ -84,8 +58,6 @@ public enum ProtectionLevel implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Not specified.
    * 
@@ -94,8 +66,6 @@ public enum ProtectionLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROTECTION_LEVEL_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Crypto operations are performed in software.
    * 
@@ -104,8 +74,6 @@ public enum ProtectionLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SOFTWARE_VALUE = 1; /** - * - * *
    * Crypto operations are performed in a Hardware Security Module.
    * 
@@ -114,8 +82,6 @@ public enum ProtectionLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int HSM_VALUE = 2; /** - * - * *
    * Crypto operations are performed by an external key manager.
    * 
@@ -124,8 +90,6 @@ public enum ProtectionLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EXTERNAL_VALUE = 3; /** - * - * *
    * Crypto operations are performed in an EKM-over-VPC backend.
    * 
@@ -134,6 +98,7 @@ public enum ProtectionLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EXTERNAL_VPC_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -158,53 +123,51 @@ public static ProtectionLevel valueOf(int value) { */ public static ProtectionLevel forNumber(int value) { switch (value) { - case 0: - return PROTECTION_LEVEL_UNSPECIFIED; - case 1: - return SOFTWARE; - case 2: - return HSM; - case 3: - return EXTERNAL; - case 4: - return EXTERNAL_VPC; - default: - return null; + case 0: return PROTECTION_LEVEL_UNSPECIFIED; + case 1: return SOFTWARE; + case 2: return HSM; + case 3: return EXTERNAL; + case 4: return EXTERNAL_VPC; + 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 internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ProtectionLevel findValueByNumber(int number) { - return ProtectionLevel.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + ProtectionLevel> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ProtectionLevel findValueByNumber(int number) { + return ProtectionLevel.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.kms.v1.KmsResourcesProto.getDescriptor().getEnumTypes().get(0); } private static final ProtectionLevel[] VALUES = values(); - public static ProtectionLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ProtectionLevel 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; @@ -220,3 +183,4 @@ private ProtectionLevel(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.kms.v1.ProtectionLevel) } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/PublicKey.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/PublicKey.java similarity index 77% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/PublicKey.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/PublicKey.java index 5ced79e1d836..cd910114906b 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/PublicKey.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/PublicKey.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/kms/v1/resources.proto package com.google.cloud.kms.v1; /** - * - * *
  * The public key for a given
  * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Obtained via
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.PublicKey}
  */
-public final class PublicKey extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class PublicKey extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.PublicKey)
     PublicKeyOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use PublicKey.newBuilder() to construct.
   private PublicKey(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private PublicKey() {
     pem_ = "";
     algorithm_ = 0;
@@ -48,35 +30,32 @@ private PublicKey() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new PublicKey();
   }
 
   @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.kms.v1.KmsResourcesProto
-        .internal_static_google_cloud_kms_v1_PublicKey_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_PublicKey_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsResourcesProto
-        .internal_static_google_cloud_kms_v1_PublicKey_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_PublicKey_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.PublicKey.class,
-            com.google.cloud.kms.v1.PublicKey.Builder.class);
+            com.google.cloud.kms.v1.PublicKey.class, com.google.cloud.kms.v1.PublicKey.Builder.class);
   }
 
   public static final int PEM_FIELD_NUMBER = 1;
   private volatile java.lang.Object pem_;
   /**
-   *
-   *
    * 
    * The public key, encoded in PEM format. For more information, see the
    * [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for
@@ -86,7 +65,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string pem = 1; - * * @return The pem. */ @java.lang.Override @@ -95,15 +73,14 @@ public java.lang.String getPem() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pem_ = s; return s; } } /** - * - * *
    * The public key, encoded in PEM format. For more information, see the
    * [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for
@@ -113,15 +90,16 @@ public java.lang.String getPem() {
    * 
* * string pem = 1; - * * @return The bytes for pem. */ @java.lang.Override - public com.google.protobuf.ByteString getPemBytes() { + public com.google.protobuf.ByteString + getPemBytes() { java.lang.Object ref = pem_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pem_ = b; return b; } else { @@ -132,8 +110,6 @@ public com.google.protobuf.ByteString getPemBytes() { public static final int ALGORITHM_FIELD_NUMBER = 2; private int algorithm_; /** - * - * *
    * The
    * [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -141,16 +117,12 @@ public com.google.protobuf.ByteString getPemBytes() {
    * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2; - * * @return The enum numeric value on the wire for algorithm. */ - @java.lang.Override - public int getAlgorithmValue() { + @java.lang.Override public int getAlgorithmValue() { return algorithm_; } /** - * - * *
    * The
    * [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -158,24 +130,17 @@ public int getAlgorithmValue() {
    * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2; - * * @return The algorithm. */ - @java.lang.Override - public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm() { + @java.lang.Override public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm result = - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.valueOf(algorithm_); - return result == null - ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.UNRECOGNIZED - : result; + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm result = com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.valueOf(algorithm_); + return result == null ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.UNRECOGNIZED : result; } public static final int PEM_CRC32C_FIELD_NUMBER = 3; private com.google.protobuf.Int64Value pemCrc32C_; /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem]. An integrity check of
@@ -193,7 +158,6 @@ public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlg
    * 
* * .google.protobuf.Int64Value pem_crc32c = 3; - * * @return Whether the pemCrc32c field is set. */ @java.lang.Override @@ -201,8 +165,6 @@ public boolean hasPemCrc32C() { return pemCrc32C_ != null; } /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem]. An integrity check of
@@ -220,7 +182,6 @@ public boolean hasPemCrc32C() {
    * 
* * .google.protobuf.Int64Value pem_crc32c = 3; - * * @return The pemCrc32c. */ @java.lang.Override @@ -228,8 +189,6 @@ public com.google.protobuf.Int64Value getPemCrc32C() { return pemCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : pemCrc32C_; } /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem]. An integrity check of
@@ -256,8 +215,6 @@ public com.google.protobuf.Int64ValueOrBuilder getPemCrc32COrBuilder() {
   public static final int NAME_FIELD_NUMBER = 4;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
@@ -266,7 +223,6 @@ public com.google.protobuf.Int64ValueOrBuilder getPemCrc32COrBuilder() {
    * 
* * string name = 4; - * * @return The name. */ @java.lang.Override @@ -275,15 +231,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][google.cloud.kms.v1.CryptoKeyVersion.name] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
@@ -292,15 +247,16 @@ public java.lang.String getName() {
    * 
* * string name = 4; - * * @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 { @@ -311,43 +267,33 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PROTECTION_LEVEL_FIELD_NUMBER = 5; private int protectionLevel_; /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 5; - * * @return The enum numeric value on the wire for protectionLevel. */ - @java.lang.Override - public int getProtectionLevelValue() { + @java.lang.Override public int getProtectionLevelValue() { return protectionLevel_; } /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 5; - * * @return The protectionLevel. */ - @java.lang.Override - public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { + @java.lang.Override public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.ProtectionLevel result = - com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); + com.google.cloud.kms.v1.ProtectionLevel result = com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); return result == null ? com.google.cloud.kms.v1.ProtectionLevel.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -359,14 +305,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pem_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pem_); } - if (algorithm_ - != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm - .CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED - .getNumber()) { + if (algorithm_ != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED.getNumber()) { output.writeEnum(2, algorithm_); } if (pemCrc32C_ != null) { @@ -375,8 +319,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); } - if (protectionLevel_ - != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { + if (protectionLevel_ != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(5, protectionLevel_); } getUnknownFields().writeTo(output); @@ -391,21 +334,20 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pem_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pem_); } - if (algorithm_ - != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm - .CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, algorithm_); + if (algorithm_ != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, algorithm_); } if (pemCrc32C_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPemCrc32C()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPemCrc32C()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); } - if (protectionLevel_ - != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, protectionLevel_); + if (protectionLevel_ != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, protectionLevel_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -415,20 +357,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.kms.v1.PublicKey)) { return super.equals(obj); } com.google.cloud.kms.v1.PublicKey other = (com.google.cloud.kms.v1.PublicKey) obj; - if (!getPem().equals(other.getPem())) return false; + if (!getPem() + .equals(other.getPem())) return false; if (algorithm_ != other.algorithm_) return false; if (hasPemCrc32C() != other.hasPemCrc32C()) return false; if (hasPemCrc32C()) { - if (!getPemCrc32C().equals(other.getPemCrc32C())) return false; + if (!getPemCrc32C() + .equals(other.getPemCrc32C())) return false; } - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (protectionLevel_ != other.protectionLevel_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -458,103 +403,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.PublicKey parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.PublicKey parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.PublicKey parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.PublicKey parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.kms.v1.PublicKey parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.PublicKey parseFrom( 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.kms.v1.PublicKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.PublicKey parseFrom( - byte[] data, com.google.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.kms.v1.PublicKey parseFrom(java.io.InputStream input) 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.kms.v1.PublicKey parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.PublicKey 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.kms.v1.PublicKey parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.PublicKey parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.PublicKey parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.PublicKey prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The public key for a given
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Obtained via
@@ -563,32 +502,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.PublicKey}
    */
-  public static final class Builder extends 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.kms.v1.PublicKey)
       com.google.cloud.kms.v1.PublicKeyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsResourcesProto
-          .internal_static_google_cloud_kms_v1_PublicKey_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_PublicKey_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsResourcesProto
-          .internal_static_google_cloud_kms_v1_PublicKey_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_PublicKey_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.PublicKey.class,
-              com.google.cloud.kms.v1.PublicKey.Builder.class);
+              com.google.cloud.kms.v1.PublicKey.class, com.google.cloud.kms.v1.PublicKey.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.PublicKey.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();
@@ -610,9 +550,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsResourcesProto
-          .internal_static_google_cloud_kms_v1_PublicKey_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_PublicKey_descriptor;
     }
 
     @java.lang.Override
@@ -649,39 +589,38 @@ public com.google.cloud.kms.v1.PublicKey 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.kms.v1.PublicKey) {
-        return mergeFrom((com.google.cloud.kms.v1.PublicKey) other);
+        return mergeFrom((com.google.cloud.kms.v1.PublicKey)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -733,43 +672,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                pem_ = input.readStringRequireUtf8();
+            case 10: {
+              pem_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 10
-            case 16:
-              {
-                algorithm_ = input.readEnum();
+              break;
+            } // case 10
+            case 16: {
+              algorithm_ = input.readEnum();
 
-                break;
-              } // case 16
-            case 26:
-              {
-                input.readMessage(getPemCrc32CFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 16
+            case 26: {
+              input.readMessage(
+                  getPemCrc32CFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 26
-            case 34:
-              {
-                name_ = input.readStringRequireUtf8();
+              break;
+            } // case 26
+            case 34: {
+              name_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 34
-            case 40:
-              {
-                protectionLevel_ = input.readEnum();
+              break;
+            } // case 34
+            case 40: {
+              protectionLevel_ = input.readEnum();
 
-                break;
-              } // case 40
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              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) {
@@ -782,8 +717,6 @@ public Builder mergeFrom(
 
     private java.lang.Object pem_ = "";
     /**
-     *
-     *
      * 
      * The public key, encoded in PEM format. For more information, see the
      * [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for
@@ -793,13 +726,13 @@ public Builder mergeFrom(
      * 
* * string pem = 1; - * * @return The pem. */ public java.lang.String getPem() { java.lang.Object ref = pem_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pem_ = s; return s; @@ -808,8 +741,6 @@ public java.lang.String getPem() { } } /** - * - * *
      * The public key, encoded in PEM format. For more information, see the
      * [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for
@@ -819,14 +750,15 @@ public java.lang.String getPem() {
      * 
* * string pem = 1; - * * @return The bytes for pem. */ - public com.google.protobuf.ByteString getPemBytes() { + public com.google.protobuf.ByteString + getPemBytes() { java.lang.Object ref = pem_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pem_ = b; return b; } else { @@ -834,8 +766,6 @@ public com.google.protobuf.ByteString getPemBytes() { } } /** - * - * *
      * The public key, encoded in PEM format. For more information, see the
      * [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for
@@ -845,22 +775,20 @@ public com.google.protobuf.ByteString getPemBytes() {
      * 
* * string pem = 1; - * * @param value The pem to set. * @return This builder for chaining. */ - public Builder setPem(java.lang.String value) { + public Builder setPem( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pem_ = value; onChanged(); return this; } /** - * - * *
      * The public key, encoded in PEM format. For more information, see the
      * [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for
@@ -870,18 +798,15 @@ public Builder setPem(java.lang.String value) {
      * 
* * string pem = 1; - * * @return This builder for chaining. */ public Builder clearPem() { - + pem_ = getDefaultInstance().getPem(); onChanged(); return this; } /** - * - * *
      * The public key, encoded in PEM format. For more information, see the
      * [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for
@@ -891,16 +816,16 @@ public Builder clearPem() {
      * 
* * string pem = 1; - * * @param value The bytes for pem to set. * @return This builder for chaining. */ - public Builder setPemBytes(com.google.protobuf.ByteString value) { + public Builder setPemBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pem_ = value; onChanged(); return this; @@ -908,8 +833,6 @@ public Builder setPemBytes(com.google.protobuf.ByteString value) { private int algorithm_ = 0; /** - * - * *
      * The
      * [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -917,16 +840,12 @@ public Builder setPemBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2; - * * @return The enum numeric value on the wire for algorithm. */ - @java.lang.Override - public int getAlgorithmValue() { + @java.lang.Override public int getAlgorithmValue() { return algorithm_; } /** - * - * *
      * The
      * [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -934,19 +853,16 @@ public int getAlgorithmValue() {
      * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2; - * * @param value The enum numeric value on the wire for algorithm to set. * @return This builder for chaining. */ public Builder setAlgorithmValue(int value) { - + algorithm_ = value; onChanged(); return this; } /** - * - * *
      * The
      * [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -954,21 +870,15 @@ public Builder setAlgorithmValue(int value) {
      * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2; - * * @return The algorithm. */ @java.lang.Override public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm result = - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.valueOf(algorithm_); - return result == null - ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.UNRECOGNIZED - : result; + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm result = com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.valueOf(algorithm_); + return result == null ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.UNRECOGNIZED : result; } /** - * - * *
      * The
      * [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -976,23 +886,19 @@ public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlg
      * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2; - * * @param value The algorithm to set. * @return This builder for chaining. */ - public Builder setAlgorithm( - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm value) { + public Builder setAlgorithm(com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm value) { if (value == null) { throw new NullPointerException(); } - + algorithm_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The
      * [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -1000,11 +906,10 @@ public Builder setAlgorithm(
      * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2; - * * @return This builder for chaining. */ public Builder clearAlgorithm() { - + algorithm_ = 0; onChanged(); return this; @@ -1012,13 +917,8 @@ public Builder clearAlgorithm() { private com.google.protobuf.Int64Value pemCrc32C_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> - pemCrc32CBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> pemCrc32CBuilder_; /** - * - * *
      * Integrity verification field. A CRC32C checksum of the returned
      * [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem]. An integrity check of
@@ -1036,15 +936,12 @@ public Builder clearAlgorithm() {
      * 
* * .google.protobuf.Int64Value pem_crc32c = 3; - * * @return Whether the pemCrc32c field is set. */ public boolean hasPemCrc32C() { return pemCrc32CBuilder_ != null || pemCrc32C_ != null; } /** - * - * *
      * Integrity verification field. A CRC32C checksum of the returned
      * [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem]. An integrity check of
@@ -1062,21 +959,16 @@ public boolean hasPemCrc32C() {
      * 
* * .google.protobuf.Int64Value pem_crc32c = 3; - * * @return The pemCrc32c. */ public com.google.protobuf.Int64Value getPemCrc32C() { if (pemCrc32CBuilder_ == null) { - return pemCrc32C_ == null - ? com.google.protobuf.Int64Value.getDefaultInstance() - : pemCrc32C_; + return pemCrc32C_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : pemCrc32C_; } else { return pemCrc32CBuilder_.getMessage(); } } /** - * - * *
      * Integrity verification field. A CRC32C checksum of the returned
      * [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem]. An integrity check of
@@ -1109,8 +1001,6 @@ public Builder setPemCrc32C(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem]. An integrity check of
@@ -1129,7 +1019,8 @@ public Builder setPemCrc32C(com.google.protobuf.Int64Value value) {
      *
      * .google.protobuf.Int64Value pem_crc32c = 3;
      */
-    public Builder setPemCrc32C(com.google.protobuf.Int64Value.Builder builderForValue) {
+    public Builder setPemCrc32C(
+        com.google.protobuf.Int64Value.Builder builderForValue) {
       if (pemCrc32CBuilder_ == null) {
         pemCrc32C_ = builderForValue.build();
         onChanged();
@@ -1140,8 +1031,6 @@ public Builder setPemCrc32C(com.google.protobuf.Int64Value.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem]. An integrity check of
@@ -1164,7 +1053,7 @@ public Builder mergePemCrc32C(com.google.protobuf.Int64Value value) {
       if (pemCrc32CBuilder_ == null) {
         if (pemCrc32C_ != null) {
           pemCrc32C_ =
-              com.google.protobuf.Int64Value.newBuilder(pemCrc32C_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Int64Value.newBuilder(pemCrc32C_).mergeFrom(value).buildPartial();
         } else {
           pemCrc32C_ = value;
         }
@@ -1176,8 +1065,6 @@ public Builder mergePemCrc32C(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem]. An integrity check of
@@ -1208,8 +1095,6 @@ public Builder clearPemCrc32C() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem]. An integrity check of
@@ -1229,13 +1114,11 @@ public Builder clearPemCrc32C() {
      * .google.protobuf.Int64Value pem_crc32c = 3;
      */
     public com.google.protobuf.Int64Value.Builder getPemCrc32CBuilder() {
-
+      
       onChanged();
       return getPemCrc32CFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem]. An integrity check of
@@ -1258,14 +1141,11 @@ public com.google.protobuf.Int64ValueOrBuilder getPemCrc32COrBuilder() {
       if (pemCrc32CBuilder_ != null) {
         return pemCrc32CBuilder_.getMessageOrBuilder();
       } else {
-        return pemCrc32C_ == null
-            ? com.google.protobuf.Int64Value.getDefaultInstance()
-            : pemCrc32C_;
+        return pemCrc32C_ == null ?
+            com.google.protobuf.Int64Value.getDefaultInstance() : pemCrc32C_;
       }
     }
     /**
-     *
-     *
      * 
      * Integrity verification field. A CRC32C checksum of the returned
      * [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem]. An integrity check of
@@ -1285,17 +1165,14 @@ public com.google.protobuf.Int64ValueOrBuilder getPemCrc32COrBuilder() {
      * .google.protobuf.Int64Value pem_crc32c = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Int64Value,
-            com.google.protobuf.Int64Value.Builder,
-            com.google.protobuf.Int64ValueOrBuilder>
+        com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> 
         getPemCrc32CFieldBuilder() {
       if (pemCrc32CBuilder_ == null) {
-        pemCrc32CBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Int64Value,
-                com.google.protobuf.Int64Value.Builder,
-                com.google.protobuf.Int64ValueOrBuilder>(
-                getPemCrc32C(), getParentForChildren(), isClean());
+        pemCrc32CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
+                getPemCrc32C(),
+                getParentForChildren(),
+                isClean());
         pemCrc32C_ = null;
       }
       return pemCrc32CBuilder_;
@@ -1303,8 +1180,6 @@ public com.google.protobuf.Int64ValueOrBuilder getPemCrc32COrBuilder() {
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
@@ -1313,13 +1188,13 @@ public com.google.protobuf.Int64ValueOrBuilder getPemCrc32COrBuilder() {
      * 
* * string name = 4; - * * @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; @@ -1328,8 +1203,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
@@ -1338,14 +1211,15 @@ public java.lang.String getName() {
      * 
* * string name = 4; - * * @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 { @@ -1353,8 +1227,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
@@ -1363,22 +1235,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 4; - * * @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][google.cloud.kms.v1.CryptoKeyVersion.name] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
@@ -1387,18 +1257,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 4; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
@@ -1407,16 +1274,16 @@ public Builder clearName() {
      * 
* * string name = 4; - * * @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; @@ -1424,69 +1291,55 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int protectionLevel_ = 0; /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 5; - * * @return The enum numeric value on the wire for protectionLevel. */ - @java.lang.Override - public int getProtectionLevelValue() { + @java.lang.Override public int getProtectionLevelValue() { return protectionLevel_; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 5; - * * @param value The enum numeric value on the wire for protectionLevel to set. * @return This builder for chaining. */ public Builder setProtectionLevelValue(int value) { - + protectionLevel_ = value; onChanged(); return this; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 5; - * * @return The protectionLevel. */ @java.lang.Override public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.ProtectionLevel result = - com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); + com.google.cloud.kms.v1.ProtectionLevel result = com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); return result == null ? com.google.cloud.kms.v1.ProtectionLevel.UNRECOGNIZED : result; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 5; - * * @param value The protectionLevel to set. * @return This builder for chaining. */ @@ -1494,32 +1347,29 @@ public Builder setProtectionLevel(com.google.cloud.kms.v1.ProtectionLevel value) if (value == null) { throw new NullPointerException(); } - + protectionLevel_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
      * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 5; - * * @return This builder for chaining. */ public Builder clearProtectionLevel() { - + protectionLevel_ = 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); } @@ -1529,12 +1379,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.PublicKey) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.PublicKey) private static final com.google.cloud.kms.v1.PublicKey DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.PublicKey(); } @@ -1543,27 +1393,27 @@ public static com.google.cloud.kms.v1.PublicKey getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublicKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublicKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1578,4 +1428,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.PublicKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/PublicKeyOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/PublicKeyOrBuilder.java similarity index 87% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/PublicKeyOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/PublicKeyOrBuilder.java index 7512b2a27e07..333c441edde1 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/PublicKeyOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/PublicKeyOrBuilder.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/kms/v1/resources.proto package com.google.cloud.kms.v1; -public interface PublicKeyOrBuilder - extends +public interface PublicKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.PublicKey) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The public key, encoded in PEM format. For more information, see the
    * [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for
@@ -35,13 +17,10 @@ public interface PublicKeyOrBuilder
    * 
* * string pem = 1; - * * @return The pem. */ java.lang.String getPem(); /** - * - * *
    * The public key, encoded in PEM format. For more information, see the
    * [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for
@@ -51,14 +30,12 @@ public interface PublicKeyOrBuilder
    * 
* * string pem = 1; - * * @return The bytes for pem. */ - com.google.protobuf.ByteString getPemBytes(); + com.google.protobuf.ByteString + getPemBytes(); /** - * - * *
    * The
    * [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -66,13 +43,10 @@ public interface PublicKeyOrBuilder
    * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2; - * * @return The enum numeric value on the wire for algorithm. */ int getAlgorithmValue(); /** - * - * *
    * The
    * [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
@@ -80,14 +54,11 @@ public interface PublicKeyOrBuilder
    * 
* * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2; - * * @return The algorithm. */ com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm(); /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem]. An integrity check of
@@ -105,13 +76,10 @@ public interface PublicKeyOrBuilder
    * 
* * .google.protobuf.Int64Value pem_crc32c = 3; - * * @return Whether the pemCrc32c field is set. */ boolean hasPemCrc32C(); /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem]. An integrity check of
@@ -129,13 +97,10 @@ public interface PublicKeyOrBuilder
    * 
* * .google.protobuf.Int64Value pem_crc32c = 3; - * * @return The pemCrc32c. */ com.google.protobuf.Int64Value getPemCrc32C(); /** - * - * *
    * Integrity verification field. A CRC32C checksum of the returned
    * [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem]. An integrity check of
@@ -157,8 +122,6 @@ public interface PublicKeyOrBuilder
   com.google.protobuf.Int64ValueOrBuilder getPemCrc32COrBuilder();
 
   /**
-   *
-   *
    * 
    * The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
@@ -167,13 +130,10 @@ public interface PublicKeyOrBuilder
    * 
* * string name = 4; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
@@ -182,34 +142,28 @@ public interface PublicKeyOrBuilder
    * 
* * string name = 4; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 5; - * * @return The enum numeric value on the wire for protectionLevel. */ int getProtectionLevelValue(); /** - * - * *
    * The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
    * 
* * .google.cloud.kms.v1.ProtectionLevel protection_level = 5; - * * @return The protectionLevel. */ com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel(); diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RestoreCryptoKeyVersionRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RestoreCryptoKeyVersionRequest.java similarity index 61% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RestoreCryptoKeyVersionRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RestoreCryptoKeyVersionRequest.java index 8d31ee190903..16a2d6c6f6e2 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RestoreCryptoKeyVersionRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RestoreCryptoKeyVersionRequest.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for
  * [KeyManagementService.RestoreCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion].
@@ -28,61 +11,53 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.RestoreCryptoKeyVersionRequest}
  */
-public final class RestoreCryptoKeyVersionRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RestoreCryptoKeyVersionRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.RestoreCryptoKeyVersionRequest)
     RestoreCryptoKeyVersionRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RestoreCryptoKeyVersionRequest.newBuilder() to construct.
-  private RestoreCryptoKeyVersionRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private RestoreCryptoKeyVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RestoreCryptoKeyVersionRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RestoreCryptoKeyVersionRequest();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_RestoreCryptoKeyVersionRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_RestoreCryptoKeyVersionRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_RestoreCryptoKeyVersionRequest_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_RestoreCryptoKeyVersionRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest.class,
-            com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest.Builder.class);
+            com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest.class, com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to restore.
    * 
* - * - * string name = 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 +66,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to restore.
    * 
* - * - * string name = 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,7 +98,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,7 +109,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -161,15 +134,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest)) { return super.equals(obj); } - com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest other = - (com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest) obj; + com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest other = (com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -189,104 +162,96 @@ public int hashCode() { } public static com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest 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.kms.v1.RestoreCryptoKeyVersionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.RestoreCryptoKeyVersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest parseFrom( 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.kms.v1.RestoreCryptoKeyVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest parseFrom( - byte[] data, com.google.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.kms.v1.RestoreCryptoKeyVersionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.RestoreCryptoKeyVersionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.RestoreCryptoKeyVersionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.RestoreCryptoKeyVersionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.RestoreCryptoKeyVersionRequest prototype) { + public static Builder newBuilder(com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for
    * [KeyManagementService.RestoreCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion].
@@ -294,32 +259,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.RestoreCryptoKeyVersionRequest}
    */
-  public static final class Builder extends 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.kms.v1.RestoreCryptoKeyVersionRequest)
       com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_RestoreCryptoKeyVersionRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_RestoreCryptoKeyVersionRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_RestoreCryptoKeyVersionRequest_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_RestoreCryptoKeyVersionRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest.class,
-              com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest.Builder.class);
+              com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest.class, com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -329,9 +295,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_RestoreCryptoKeyVersionRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_RestoreCryptoKeyVersionRequest_descriptor;
     }
 
     @java.lang.Override
@@ -350,8 +316,7 @@ public com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest buildPartial() {
-      com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest result =
-          new com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest(this);
+      com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest result = new com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -361,39 +326,38 @@ public com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest 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.kms.v1.RestoreCryptoKeyVersionRequest) {
-        return mergeFrom((com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest) other);
+        return mergeFrom((com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -401,8 +365,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest other) {
-      if (other == com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -433,19 +396,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) {
@@ -458,23 +419,19 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to restore.
      * 
* - * - * string name = 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; @@ -483,24 +440,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to restore.
      * 
* - * - * string name = 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 { @@ -508,77 +462,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to restore.
      * 
* - * - * 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
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to restore.
      * 
* - * - * string 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
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to restore.
      * 
* - * - * 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); } @@ -588,12 +529,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.RestoreCryptoKeyVersionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.RestoreCryptoKeyVersionRequest) private static final com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest(); } @@ -602,27 +543,27 @@ public static com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RestoreCryptoKeyVersionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreCryptoKeyVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -637,4 +578,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RestoreCryptoKeyVersionRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RestoreCryptoKeyVersionRequestOrBuilder.java new file mode 100644 index 000000000000..81b4b89db637 --- /dev/null +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RestoreCryptoKeyVersionRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/service.proto + +package com.google.cloud.kms.v1; + +public interface RestoreCryptoKeyVersionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.RestoreCryptoKeyVersionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the
+   * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to restore.
+   * 
+ * + * 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
+   * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to restore.
+   * 
+ * + * 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-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyPrimaryVersionRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyPrimaryVersionRequest.java similarity index 64% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyPrimaryVersionRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyPrimaryVersionRequest.java index 77902c2d17ed..82cc31c99143 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyPrimaryVersionRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyPrimaryVersionRequest.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for
  * [KeyManagementService.UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion].
@@ -28,18 +11,15 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest}
  */
-public final class UpdateCryptoKeyPrimaryVersionRequest
-    extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UpdateCryptoKeyPrimaryVersionRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest)
     UpdateCryptoKeyPrimaryVersionRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UpdateCryptoKeyPrimaryVersionRequest.newBuilder() to construct.
-  private UpdateCryptoKeyPrimaryVersionRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private UpdateCryptoKeyPrimaryVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private UpdateCryptoKeyPrimaryVersionRequest() {
     name_ = "";
     cryptoKeyVersionId_ = "";
@@ -47,44 +27,38 @@ private UpdateCryptoKeyPrimaryVersionRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UpdateCryptoKeyPrimaryVersionRequest();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_UpdateCryptoKeyPrimaryVersionRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_UpdateCryptoKeyPrimaryVersionRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_UpdateCryptoKeyPrimaryVersionRequest_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_UpdateCryptoKeyPrimaryVersionRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest.class,
-            com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest.Builder.class);
+            com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest.class, com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name of the
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] to update.
    * 
* - * - * string name = 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 @@ -93,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. The resource name of the
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] to update.
    * 
* - * - * string name = 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 { @@ -129,15 +101,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CRYPTO_KEY_VERSION_ID_FIELD_NUMBER = 2; private volatile java.lang.Object cryptoKeyVersionId_; /** - * - * *
    * Required. The id of the child
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use as primary.
    * 
* * string crypto_key_version_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The cryptoKeyVersionId. */ @java.lang.Override @@ -146,30 +115,30 @@ public java.lang.String getCryptoKeyVersionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cryptoKeyVersionId_ = s; return s; } } /** - * - * *
    * Required. The id of the child
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use as primary.
    * 
* * string crypto_key_version_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for cryptoKeyVersionId. */ @java.lang.Override - public com.google.protobuf.ByteString getCryptoKeyVersionIdBytes() { + public com.google.protobuf.ByteString + getCryptoKeyVersionIdBytes() { java.lang.Object ref = cryptoKeyVersionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cryptoKeyVersionId_ = b; return b; } else { @@ -178,7 +147,6 @@ public com.google.protobuf.ByteString getCryptoKeyVersionIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -190,7 +158,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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 +189,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.kms.v1.UpdateCryptoKeyPrimaryVersionRequest)) { return super.equals(obj); } - com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest other = - (com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest) obj; + com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest other = (com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getCryptoKeyVersionId().equals(other.getCryptoKeyVersionId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getCryptoKeyVersionId() + .equals(other.getCryptoKeyVersionId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -251,104 +221,96 @@ public int hashCode() { } public static com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest 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.kms.v1.UpdateCryptoKeyPrimaryVersionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.UpdateCryptoKeyPrimaryVersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest parseFrom( 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.kms.v1.UpdateCryptoKeyPrimaryVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest parseFrom( - byte[] data, com.google.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.kms.v1.UpdateCryptoKeyPrimaryVersionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.UpdateCryptoKeyPrimaryVersionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.UpdateCryptoKeyPrimaryVersionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.UpdateCryptoKeyPrimaryVersionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.UpdateCryptoKeyPrimaryVersionRequest prototype) { + public static Builder newBuilder(com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for
    * [KeyManagementService.UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion].
@@ -356,32 +318,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest}
    */
-  public static final class Builder extends 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.kms.v1.UpdateCryptoKeyPrimaryVersionRequest)
       com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_UpdateCryptoKeyPrimaryVersionRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_UpdateCryptoKeyPrimaryVersionRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_UpdateCryptoKeyPrimaryVersionRequest_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_UpdateCryptoKeyPrimaryVersionRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest.class,
-              com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest.Builder.class);
+              com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest.class, com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest.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,14 +356,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_UpdateCryptoKeyPrimaryVersionRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_UpdateCryptoKeyPrimaryVersionRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest getDefaultInstanceForType() {
       return com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest.getDefaultInstance();
     }
 
@@ -415,8 +377,7 @@ public com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest buildPartial() {
-      com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest result =
-          new com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest(this);
+      com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest result = new com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest(this);
       result.name_ = name_;
       result.cryptoKeyVersionId_ = cryptoKeyVersionId_;
       onBuilt();
@@ -427,39 +388,38 @@ public com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest 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.kms.v1.UpdateCryptoKeyPrimaryVersionRequest) {
-        return mergeFrom((com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest) other);
+        return mergeFrom((com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -467,9 +427,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest other) {
-      if (other
-          == com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -504,25 +462,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 18:
-              {
-                cryptoKeyVersionId_ = 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: {
+              cryptoKeyVersionId_ = 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) {
@@ -535,23 +490,19 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to update.
      * 
* - * - * string name = 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; @@ -560,24 +511,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to update.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -585,70 +533,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to update.
      * 
* - * - * 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
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to update.
      * 
* - * - * string 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
      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to update.
      * 
* - * - * 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; @@ -656,21 +591,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object cryptoKeyVersionId_ = ""; /** - * - * *
      * Required. The id of the child
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use as primary.
      * 
* * string crypto_key_version_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The cryptoKeyVersionId. */ public java.lang.String getCryptoKeyVersionId() { java.lang.Object ref = cryptoKeyVersionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cryptoKeyVersionId_ = s; return s; @@ -679,22 +612,21 @@ public java.lang.String getCryptoKeyVersionId() { } } /** - * - * *
      * Required. The id of the child
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use as primary.
      * 
* * string crypto_key_version_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for cryptoKeyVersionId. */ - public com.google.protobuf.ByteString getCryptoKeyVersionIdBytes() { + public com.google.protobuf.ByteString + getCryptoKeyVersionIdBytes() { java.lang.Object ref = cryptoKeyVersionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cryptoKeyVersionId_ = b; return b; } else { @@ -702,71 +634,64 @@ public com.google.protobuf.ByteString getCryptoKeyVersionIdBytes() { } } /** - * - * *
      * Required. The id of the child
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use as primary.
      * 
* * string crypto_key_version_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The cryptoKeyVersionId to set. * @return This builder for chaining. */ - public Builder setCryptoKeyVersionId(java.lang.String value) { + public Builder setCryptoKeyVersionId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cryptoKeyVersionId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The id of the child
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use as primary.
      * 
* * string crypto_key_version_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearCryptoKeyVersionId() { - + cryptoKeyVersionId_ = getDefaultInstance().getCryptoKeyVersionId(); onChanged(); return this; } /** - * - * *
      * Required. The id of the child
      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use as primary.
      * 
* * string crypto_key_version_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for cryptoKeyVersionId to set. * @return This builder for chaining. */ - public Builder setCryptoKeyVersionIdBytes(com.google.protobuf.ByteString value) { + public Builder setCryptoKeyVersionIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cryptoKeyVersionId_ = 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); } @@ -776,13 +701,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest) - private static final com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest(); } @@ -791,27 +715,27 @@ public static com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCryptoKeyPrimaryVersionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCryptoKeyPrimaryVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -826,4 +750,6 @@ public com.google.protobuf.Parser getParse public com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyPrimaryVersionRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyPrimaryVersionRequestOrBuilder.java similarity index 53% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyPrimaryVersionRequestOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyPrimaryVersionRequestOrBuilder.java index deed1f1c6147..01f8e95d559e 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyPrimaryVersionRequestOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyPrimaryVersionRequestOrBuilder.java @@ -1,83 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface UpdateCryptoKeyPrimaryVersionRequestOrBuilder - extends +public interface UpdateCryptoKeyPrimaryVersionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] to update.
    * 
* - * - * string name = 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
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] to update.
    * 
* - * - * string name = 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 id of the child
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use as primary.
    * 
* * string crypto_key_version_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The cryptoKeyVersionId. */ java.lang.String getCryptoKeyVersionId(); /** - * - * *
    * Required. The id of the child
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use as primary.
    * 
* * string crypto_key_version_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for cryptoKeyVersionId. */ - com.google.protobuf.ByteString getCryptoKeyVersionIdBytes(); + com.google.protobuf.ByteString + getCryptoKeyVersionIdBytes(); } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyRequest.java similarity index 65% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyRequest.java index 4f056a9c6545..cd504485b928 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyRequest.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for
  * [KeyManagementService.UpdateCryptoKey][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKey].
@@ -28,56 +11,51 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.UpdateCryptoKeyRequest}
  */
-public final class UpdateCryptoKeyRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UpdateCryptoKeyRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.UpdateCryptoKeyRequest)
     UpdateCryptoKeyRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UpdateCryptoKeyRequest.newBuilder() to construct.
   private UpdateCryptoKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private UpdateCryptoKeyRequest() {}
+  private UpdateCryptoKeyRequest() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UpdateCryptoKeyRequest();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_UpdateCryptoKeyRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_UpdateCryptoKeyRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_UpdateCryptoKeyRequest_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_UpdateCryptoKeyRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.UpdateCryptoKeyRequest.class,
-            com.google.cloud.kms.v1.UpdateCryptoKeyRequest.Builder.class);
+            com.google.cloud.kms.v1.UpdateCryptoKeyRequest.class, com.google.cloud.kms.v1.UpdateCryptoKeyRequest.Builder.class);
   }
 
   public static final int CRYPTO_KEY_FIELD_NUMBER = 1;
   private com.google.cloud.kms.v1.CryptoKey cryptoKey_;
   /**
-   *
-   *
    * 
    * Required. [CryptoKey][google.cloud.kms.v1.CryptoKey] with updated values.
    * 
* - * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the cryptoKey field is set. */ @java.lang.Override @@ -85,15 +63,11 @@ public boolean hasCryptoKey() { return cryptoKey_ != null; } /** - * - * *
    * Required. [CryptoKey][google.cloud.kms.v1.CryptoKey] with updated values.
    * 
* - * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The cryptoKey. */ @java.lang.Override @@ -101,14 +75,11 @@ public com.google.cloud.kms.v1.CryptoKey getCryptoKey() { return cryptoKey_ == null ? com.google.cloud.kms.v1.CryptoKey.getDefaultInstance() : cryptoKey_; } /** - * - * *
    * Required. [CryptoKey][google.cloud.kms.v1.CryptoKey] with updated values.
    * 
* - * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeyOrBuilder() { @@ -118,15 +89,11 @@ public com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeyOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. List of fields to be updated in this request.
    * 
* - * .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,15 +101,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. List of fields to be updated in this request.
    * 
* - * .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 @@ -150,14 +113,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. List of fields to be updated in this request.
    * 
* - * .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() { @@ -165,7 +125,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +136,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (cryptoKey_ != null) { output.writeMessage(1, getCryptoKey()); } @@ -194,10 +154,12 @@ public int getSerializedSize() { size = 0; if (cryptoKey_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCryptoKey()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCryptoKey()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -207,21 +169,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.kms.v1.UpdateCryptoKeyRequest)) { return super.equals(obj); } - com.google.cloud.kms.v1.UpdateCryptoKeyRequest other = - (com.google.cloud.kms.v1.UpdateCryptoKeyRequest) obj; + com.google.cloud.kms.v1.UpdateCryptoKeyRequest other = (com.google.cloud.kms.v1.UpdateCryptoKeyRequest) obj; if (hasCryptoKey() != other.hasCryptoKey()) return false; if (hasCryptoKey()) { - if (!getCryptoKey().equals(other.getCryptoKey())) return false; + if (!getCryptoKey() + .equals(other.getCryptoKey())) 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; @@ -247,104 +210,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.kms.v1.UpdateCryptoKeyRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.kms.v1.UpdateCryptoKeyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.UpdateCryptoKeyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.UpdateCryptoKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.UpdateCryptoKeyRequest parseFrom( 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.kms.v1.UpdateCryptoKeyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.UpdateCryptoKeyRequest parseFrom( - byte[] data, com.google.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.kms.v1.UpdateCryptoKeyRequest parseFrom(java.io.InputStream input) 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.kms.v1.UpdateCryptoKeyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.UpdateCryptoKeyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.UpdateCryptoKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.UpdateCryptoKeyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.UpdateCryptoKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.UpdateCryptoKeyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.UpdateCryptoKeyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for
    * [KeyManagementService.UpdateCryptoKey][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKey].
@@ -352,32 +308,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.UpdateCryptoKeyRequest}
    */
-  public static final class Builder extends 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.kms.v1.UpdateCryptoKeyRequest)
       com.google.cloud.kms.v1.UpdateCryptoKeyRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_UpdateCryptoKeyRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_UpdateCryptoKeyRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_UpdateCryptoKeyRequest_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_UpdateCryptoKeyRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.UpdateCryptoKeyRequest.class,
-              com.google.cloud.kms.v1.UpdateCryptoKeyRequest.Builder.class);
+              com.google.cloud.kms.v1.UpdateCryptoKeyRequest.class, com.google.cloud.kms.v1.UpdateCryptoKeyRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.UpdateCryptoKeyRequest.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();
@@ -397,9 +354,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_UpdateCryptoKeyRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_UpdateCryptoKeyRequest_descriptor;
     }
 
     @java.lang.Override
@@ -418,8 +375,7 @@ public com.google.cloud.kms.v1.UpdateCryptoKeyRequest build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.UpdateCryptoKeyRequest buildPartial() {
-      com.google.cloud.kms.v1.UpdateCryptoKeyRequest result =
-          new com.google.cloud.kms.v1.UpdateCryptoKeyRequest(this);
+      com.google.cloud.kms.v1.UpdateCryptoKeyRequest result = new com.google.cloud.kms.v1.UpdateCryptoKeyRequest(this);
       if (cryptoKeyBuilder_ == null) {
         result.cryptoKey_ = cryptoKey_;
       } else {
@@ -438,39 +394,38 @@ public com.google.cloud.kms.v1.UpdateCryptoKeyRequest 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.kms.v1.UpdateCryptoKeyRequest) {
-        return mergeFrom((com.google.cloud.kms.v1.UpdateCryptoKeyRequest) other);
+        return mergeFrom((com.google.cloud.kms.v1.UpdateCryptoKeyRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -511,25 +466,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getCryptoKeyFieldBuilder().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(
+                  getCryptoKeyFieldBuilder().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) {
@@ -542,58 +498,39 @@ public Builder mergeFrom(
 
     private com.google.cloud.kms.v1.CryptoKey cryptoKey_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.kms.v1.CryptoKey,
-            com.google.cloud.kms.v1.CryptoKey.Builder,
-            com.google.cloud.kms.v1.CryptoKeyOrBuilder>
-        cryptoKeyBuilder_;
+        com.google.cloud.kms.v1.CryptoKey, com.google.cloud.kms.v1.CryptoKey.Builder, com.google.cloud.kms.v1.CryptoKeyOrBuilder> cryptoKeyBuilder_;
     /**
-     *
-     *
      * 
      * Required. [CryptoKey][google.cloud.kms.v1.CryptoKey] with updated values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the cryptoKey field is set. */ public boolean hasCryptoKey() { return cryptoKeyBuilder_ != null || cryptoKey_ != null; } /** - * - * *
      * Required. [CryptoKey][google.cloud.kms.v1.CryptoKey] with updated values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The cryptoKey. */ public com.google.cloud.kms.v1.CryptoKey getCryptoKey() { if (cryptoKeyBuilder_ == null) { - return cryptoKey_ == null - ? com.google.cloud.kms.v1.CryptoKey.getDefaultInstance() - : cryptoKey_; + return cryptoKey_ == null ? com.google.cloud.kms.v1.CryptoKey.getDefaultInstance() : cryptoKey_; } else { return cryptoKeyBuilder_.getMessage(); } } /** - * - * *
      * Required. [CryptoKey][google.cloud.kms.v1.CryptoKey] with updated values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCryptoKey(com.google.cloud.kms.v1.CryptoKey value) { if (cryptoKeyBuilder_ == null) { @@ -609,17 +546,14 @@ public Builder setCryptoKey(com.google.cloud.kms.v1.CryptoKey value) { return this; } /** - * - * *
      * Required. [CryptoKey][google.cloud.kms.v1.CryptoKey] with updated values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setCryptoKey(com.google.cloud.kms.v1.CryptoKey.Builder builderForValue) { + public Builder setCryptoKey( + com.google.cloud.kms.v1.CryptoKey.Builder builderForValue) { if (cryptoKeyBuilder_ == null) { cryptoKey_ = builderForValue.build(); onChanged(); @@ -630,23 +564,17 @@ public Builder setCryptoKey(com.google.cloud.kms.v1.CryptoKey.Builder builderFor return this; } /** - * - * *
      * Required. [CryptoKey][google.cloud.kms.v1.CryptoKey] with updated values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeCryptoKey(com.google.cloud.kms.v1.CryptoKey value) { if (cryptoKeyBuilder_ == null) { if (cryptoKey_ != null) { cryptoKey_ = - com.google.cloud.kms.v1.CryptoKey.newBuilder(cryptoKey_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.kms.v1.CryptoKey.newBuilder(cryptoKey_).mergeFrom(value).buildPartial(); } else { cryptoKey_ = value; } @@ -658,15 +586,11 @@ public Builder mergeCryptoKey(com.google.cloud.kms.v1.CryptoKey value) { return this; } /** - * - * *
      * Required. [CryptoKey][google.cloud.kms.v1.CryptoKey] with updated values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCryptoKey() { if (cryptoKeyBuilder_ == null) { @@ -680,64 +604,48 @@ public Builder clearCryptoKey() { return this; } /** - * - * *
      * Required. [CryptoKey][google.cloud.kms.v1.CryptoKey] with updated values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.kms.v1.CryptoKey.Builder getCryptoKeyBuilder() { - + onChanged(); return getCryptoKeyFieldBuilder().getBuilder(); } /** - * - * *
      * Required. [CryptoKey][google.cloud.kms.v1.CryptoKey] with updated values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeyOrBuilder() { if (cryptoKeyBuilder_ != null) { return cryptoKeyBuilder_.getMessageOrBuilder(); } else { - return cryptoKey_ == null - ? com.google.cloud.kms.v1.CryptoKey.getDefaultInstance() - : cryptoKey_; + return cryptoKey_ == null ? + com.google.cloud.kms.v1.CryptoKey.getDefaultInstance() : cryptoKey_; } } /** - * - * *
      * Required. [CryptoKey][google.cloud.kms.v1.CryptoKey] with updated values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.CryptoKey, - com.google.cloud.kms.v1.CryptoKey.Builder, - com.google.cloud.kms.v1.CryptoKeyOrBuilder> + com.google.cloud.kms.v1.CryptoKey, com.google.cloud.kms.v1.CryptoKey.Builder, com.google.cloud.kms.v1.CryptoKeyOrBuilder> getCryptoKeyFieldBuilder() { if (cryptoKeyBuilder_ == null) { - cryptoKeyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.CryptoKey, - com.google.cloud.kms.v1.CryptoKey.Builder, - com.google.cloud.kms.v1.CryptoKeyOrBuilder>( - getCryptoKey(), getParentForChildren(), isClean()); + cryptoKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.kms.v1.CryptoKey, com.google.cloud.kms.v1.CryptoKey.Builder, com.google.cloud.kms.v1.CryptoKeyOrBuilder>( + getCryptoKey(), + getParentForChildren(), + isClean()); cryptoKey_ = null; } return cryptoKeyBuilder_; @@ -745,55 +653,39 @@ public com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeyOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. List of fields to be updated in this request.
      * 
* - * .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. List of fields to be updated in this request.
      * 
* - * .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. List of fields to be updated in this request.
      * 
* - * .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) { @@ -809,16 +701,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. List of fields to be updated in this request.
      * 
* - * .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(); @@ -829,20 +719,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. List of fields to be updated in this request.
      * 
* - * .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; } @@ -854,14 +741,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. List of fields to be updated in this request.
      * 
* - * .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) { @@ -875,68 +759,55 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. List of fields to be updated in this request.
      * 
* - * .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. List of fields to be updated in this request.
      * 
* - * .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. List of fields to be updated in this request.
      * 
* - * .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); } @@ -946,12 +817,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.UpdateCryptoKeyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.UpdateCryptoKeyRequest) private static final com.google.cloud.kms.v1.UpdateCryptoKeyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.UpdateCryptoKeyRequest(); } @@ -960,27 +831,27 @@ public static com.google.cloud.kms.v1.UpdateCryptoKeyRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCryptoKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCryptoKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -995,4 +866,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.kms.v1.UpdateCryptoKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyRequestOrBuilder.java similarity index 63% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyRequestOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyRequestOrBuilder.java index 577cec8fe478..1c6d321d91bf 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyRequestOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyRequestOrBuilder.java @@ -1,101 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface UpdateCryptoKeyRequestOrBuilder - extends +public interface UpdateCryptoKeyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.UpdateCryptoKeyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. [CryptoKey][google.cloud.kms.v1.CryptoKey] with updated values.
    * 
* - * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the cryptoKey field is set. */ boolean hasCryptoKey(); /** - * - * *
    * Required. [CryptoKey][google.cloud.kms.v1.CryptoKey] with updated values.
    * 
* - * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The cryptoKey. */ com.google.cloud.kms.v1.CryptoKey getCryptoKey(); /** - * - * *
    * Required. [CryptoKey][google.cloud.kms.v1.CryptoKey] with updated values.
    * 
* - * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.kms.v1.CryptoKeyOrBuilder getCryptoKeyOrBuilder(); /** - * - * *
    * Required. List of fields to be updated in this request.
    * 
* - * .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. List of fields to be updated in this request.
    * 
* - * .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. List of fields to be updated in this request.
    * 
* - * .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-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyVersionRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyVersionRequest.java similarity index 64% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyVersionRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyVersionRequest.java index d90fbd0a6c0b..f4d13e70a34c 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyVersionRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyVersionRequest.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/kms/v1/service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for
  * [KeyManagementService.UpdateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyVersion].
@@ -28,58 +11,52 @@
  *
  * Protobuf type {@code google.cloud.kms.v1.UpdateCryptoKeyVersionRequest}
  */
-public final class UpdateCryptoKeyVersionRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UpdateCryptoKeyVersionRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.UpdateCryptoKeyVersionRequest)
     UpdateCryptoKeyVersionRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UpdateCryptoKeyVersionRequest.newBuilder() to construct.
   private UpdateCryptoKeyVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private UpdateCryptoKeyVersionRequest() {}
+  private UpdateCryptoKeyVersionRequest() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UpdateCryptoKeyVersionRequest();
   }
 
   @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.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_UpdateCryptoKeyVersionRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_UpdateCryptoKeyVersionRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.kms.v1.KmsProto
-        .internal_static_google_cloud_kms_v1_UpdateCryptoKeyVersionRequest_fieldAccessorTable
+    return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_UpdateCryptoKeyVersionRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest.class,
-            com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest.Builder.class);
+            com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest.class, com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest.Builder.class);
   }
 
   public static final int CRYPTO_KEY_VERSION_FIELD_NUMBER = 1;
   private com.google.cloud.kms.v1.CryptoKeyVersion cryptoKeyVersion_;
   /**
-   *
-   *
    * 
    * Required. [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
    * updated values.
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the cryptoKeyVersion field is set. */ @java.lang.Override @@ -87,36 +64,25 @@ public boolean hasCryptoKeyVersion() { return cryptoKeyVersion_ != null; } /** - * - * *
    * Required. [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
    * updated values.
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The cryptoKeyVersion. */ @java.lang.Override public com.google.cloud.kms.v1.CryptoKeyVersion getCryptoKeyVersion() { - return cryptoKeyVersion_ == null - ? com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance() - : cryptoKeyVersion_; + return cryptoKeyVersion_ == null ? com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance() : cryptoKeyVersion_; } /** - * - * *
    * Required. [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
    * updated values.
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder getCryptoKeyVersionOrBuilder() { @@ -126,15 +92,11 @@ public com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder getCryptoKeyVersionOrBu public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. List of fields to be updated in this request.
    * 
* - * .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 @@ -142,15 +104,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. List of fields to be updated in this request.
    * 
* - * .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 @@ -158,14 +116,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. List of fields to be updated in this request.
    * 
* - * .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() { @@ -173,7 +128,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,7 +139,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (cryptoKeyVersion_ != null) { output.writeMessage(1, getCryptoKeyVersion()); } @@ -202,10 +157,12 @@ public int getSerializedSize() { size = 0; if (cryptoKeyVersion_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCryptoKeyVersion()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCryptoKeyVersion()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -215,21 +172,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.kms.v1.UpdateCryptoKeyVersionRequest)) { return super.equals(obj); } - com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest other = - (com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest) obj; + com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest other = (com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest) obj; if (hasCryptoKeyVersion() != other.hasCryptoKeyVersion()) return false; if (hasCryptoKeyVersion()) { - if (!getCryptoKeyVersion().equals(other.getCryptoKeyVersion())) return false; + if (!getCryptoKeyVersion() + .equals(other.getCryptoKeyVersion())) 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; @@ -256,104 +214,96 @@ public int hashCode() { } public static com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest 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.kms.v1.UpdateCryptoKeyVersionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.UpdateCryptoKeyVersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest parseFrom( 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.kms.v1.UpdateCryptoKeyVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest parseFrom( - byte[] data, com.google.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.kms.v1.UpdateCryptoKeyVersionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.UpdateCryptoKeyVersionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.UpdateCryptoKeyVersionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.UpdateCryptoKeyVersionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.UpdateCryptoKeyVersionRequest prototype) { + public static Builder newBuilder(com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for
    * [KeyManagementService.UpdateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyVersion].
@@ -361,32 +311,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.kms.v1.UpdateCryptoKeyVersionRequest}
    */
-  public static final class Builder extends 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.kms.v1.UpdateCryptoKeyVersionRequest)
       com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_UpdateCryptoKeyVersionRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_UpdateCryptoKeyVersionRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_UpdateCryptoKeyVersionRequest_fieldAccessorTable
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_UpdateCryptoKeyVersionRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest.class,
-              com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest.Builder.class);
+              com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest.class, com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest.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 +357,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.kms.v1.KmsProto
-          .internal_static_google_cloud_kms_v1_UpdateCryptoKeyVersionRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_UpdateCryptoKeyVersionRequest_descriptor;
     }
 
     @java.lang.Override
@@ -427,8 +378,7 @@ public com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest build() {
 
     @java.lang.Override
     public com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest buildPartial() {
-      com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest result =
-          new com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest(this);
+      com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest result = new com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest(this);
       if (cryptoKeyVersionBuilder_ == null) {
         result.cryptoKeyVersion_ = cryptoKeyVersion_;
       } else {
@@ -447,39 +397,38 @@ public com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest 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.kms.v1.UpdateCryptoKeyVersionRequest) {
-        return mergeFrom((com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest) other);
+        return mergeFrom((com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -487,8 +436,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest other) {
-      if (other == com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest.getDefaultInstance()) return this;
       if (other.hasCryptoKeyVersion()) {
         mergeCryptoKeyVersion(other.getCryptoKeyVersion());
       }
@@ -521,26 +469,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(
-                    getCryptoKeyVersionFieldBuilder().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(
+                  getCryptoKeyVersionFieldBuilder().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) {
@@ -553,61 +501,42 @@ public Builder mergeFrom(
 
     private com.google.cloud.kms.v1.CryptoKeyVersion cryptoKeyVersion_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.kms.v1.CryptoKeyVersion,
-            com.google.cloud.kms.v1.CryptoKeyVersion.Builder,
-            com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder>
-        cryptoKeyVersionBuilder_;
+        com.google.cloud.kms.v1.CryptoKeyVersion, com.google.cloud.kms.v1.CryptoKeyVersion.Builder, com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder> cryptoKeyVersionBuilder_;
     /**
-     *
-     *
      * 
      * Required. [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
      * updated values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the cryptoKeyVersion field is set. */ public boolean hasCryptoKeyVersion() { return cryptoKeyVersionBuilder_ != null || cryptoKeyVersion_ != null; } /** - * - * *
      * Required. [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
      * updated values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The cryptoKeyVersion. */ public com.google.cloud.kms.v1.CryptoKeyVersion getCryptoKeyVersion() { if (cryptoKeyVersionBuilder_ == null) { - return cryptoKeyVersion_ == null - ? com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance() - : cryptoKeyVersion_; + return cryptoKeyVersion_ == null ? com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance() : cryptoKeyVersion_; } else { return cryptoKeyVersionBuilder_.getMessage(); } } /** - * - * *
      * Required. [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
      * updated values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCryptoKeyVersion(com.google.cloud.kms.v1.CryptoKeyVersion value) { if (cryptoKeyVersionBuilder_ == null) { @@ -623,16 +552,12 @@ public Builder setCryptoKeyVersion(com.google.cloud.kms.v1.CryptoKeyVersion valu return this; } /** - * - * *
      * Required. [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
      * updated values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCryptoKeyVersion( com.google.cloud.kms.v1.CryptoKeyVersion.Builder builderForValue) { @@ -646,24 +571,18 @@ public Builder setCryptoKeyVersion( return this; } /** - * - * *
      * Required. [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
      * updated values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeCryptoKeyVersion(com.google.cloud.kms.v1.CryptoKeyVersion value) { if (cryptoKeyVersionBuilder_ == null) { if (cryptoKeyVersion_ != null) { cryptoKeyVersion_ = - com.google.cloud.kms.v1.CryptoKeyVersion.newBuilder(cryptoKeyVersion_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.kms.v1.CryptoKeyVersion.newBuilder(cryptoKeyVersion_).mergeFrom(value).buildPartial(); } else { cryptoKeyVersion_ = value; } @@ -675,16 +594,12 @@ public Builder mergeCryptoKeyVersion(com.google.cloud.kms.v1.CryptoKeyVersion va return this; } /** - * - * *
      * Required. [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
      * updated values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCryptoKeyVersion() { if (cryptoKeyVersionBuilder_ == null) { @@ -698,67 +613,51 @@ public Builder clearCryptoKeyVersion() { return this; } /** - * - * *
      * Required. [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
      * updated values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.kms.v1.CryptoKeyVersion.Builder getCryptoKeyVersionBuilder() { - + onChanged(); return getCryptoKeyVersionFieldBuilder().getBuilder(); } /** - * - * *
      * Required. [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
      * updated values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder getCryptoKeyVersionOrBuilder() { if (cryptoKeyVersionBuilder_ != null) { return cryptoKeyVersionBuilder_.getMessageOrBuilder(); } else { - return cryptoKeyVersion_ == null - ? com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance() - : cryptoKeyVersion_; + return cryptoKeyVersion_ == null ? + com.google.cloud.kms.v1.CryptoKeyVersion.getDefaultInstance() : cryptoKeyVersion_; } } /** - * - * *
      * Required. [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
      * updated values.
      * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.CryptoKeyVersion, - com.google.cloud.kms.v1.CryptoKeyVersion.Builder, - com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder> + com.google.cloud.kms.v1.CryptoKeyVersion, com.google.cloud.kms.v1.CryptoKeyVersion.Builder, com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder> getCryptoKeyVersionFieldBuilder() { if (cryptoKeyVersionBuilder_ == null) { - cryptoKeyVersionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.CryptoKeyVersion, - com.google.cloud.kms.v1.CryptoKeyVersion.Builder, - com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder>( - getCryptoKeyVersion(), getParentForChildren(), isClean()); + cryptoKeyVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.kms.v1.CryptoKeyVersion, com.google.cloud.kms.v1.CryptoKeyVersion.Builder, com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder>( + getCryptoKeyVersion(), + getParentForChildren(), + isClean()); cryptoKeyVersion_ = null; } return cryptoKeyVersionBuilder_; @@ -766,55 +665,39 @@ public com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder getCryptoKeyVersionOrBu private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. List of fields to be updated in this request.
      * 
* - * .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. List of fields to be updated in this request.
      * 
* - * .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. List of fields to be updated in this request.
      * 
* - * .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) { @@ -830,16 +713,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. List of fields to be updated in this request.
      * 
* - * .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(); @@ -850,20 +731,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. List of fields to be updated in this request.
      * 
* - * .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; } @@ -875,14 +753,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. List of fields to be updated in this request.
      * 
* - * .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) { @@ -896,68 +771,55 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. List of fields to be updated in this request.
      * 
* - * .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. List of fields to be updated in this request.
      * 
* - * .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. List of fields to be updated in this request.
      * 
* - * .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); } @@ -967,12 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.UpdateCryptoKeyVersionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.UpdateCryptoKeyVersionRequest) private static final com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest(); } @@ -981,27 +843,27 @@ public static com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCryptoKeyVersionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCryptoKeyVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1016,4 +878,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyVersionRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyVersionRequestOrBuilder.java similarity index 56% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyVersionRequestOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyVersionRequestOrBuilder.java index 892fc36abf8e..7ff6b1400254 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyVersionRequestOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateCryptoKeyVersionRequestOrBuilder.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/kms/v1/service.proto package com.google.cloud.kms.v1; -public interface UpdateCryptoKeyVersionRequestOrBuilder - extends +public interface UpdateCryptoKeyVersionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.UpdateCryptoKeyVersionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
    * updated values.
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the cryptoKeyVersion field is set. */ boolean hasCryptoKeyVersion(); /** - * - * *
    * Required. [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
    * updated values.
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The cryptoKeyVersion. */ com.google.cloud.kms.v1.CryptoKeyVersion getCryptoKeyVersion(); /** - * - * *
    * Required. [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
    * updated values.
    * 
* - * - * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder getCryptoKeyVersionOrBuilder(); /** - * - * *
    * Required. List of fields to be updated in this request.
    * 
* - * .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. List of fields to be updated in this request.
    * 
* - * .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. List of fields to be updated in this request.
    * 
* - * .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-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateEkmConnectionRequest.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateEkmConnectionRequest.java similarity index 64% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateEkmConnectionRequest.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateEkmConnectionRequest.java index 19b98627a9da..f3f6cef18a6b 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateEkmConnectionRequest.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateEkmConnectionRequest.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/kms/v1/ekm_service.proto package com.google.cloud.kms.v1; /** - * - * *
  * Request message for [KeyManagementService.UpdateEkmConnection][].
  * 
* * Protobuf type {@code google.cloud.kms.v1.UpdateEkmConnectionRequest} */ -public final class UpdateEkmConnectionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateEkmConnectionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.UpdateEkmConnectionRequest) UpdateEkmConnectionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateEkmConnectionRequest.newBuilder() to construct. private UpdateEkmConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateEkmConnectionRequest() {} + private UpdateEkmConnectionRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateEkmConnectionRequest(); } @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.kms.v1.EkmServiceProto - .internal_static_google_cloud_kms_v1_UpdateEkmConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_UpdateEkmConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.v1.EkmServiceProto - .internal_static_google_cloud_kms_v1_UpdateEkmConnectionRequest_fieldAccessorTable + return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_UpdateEkmConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.v1.UpdateEkmConnectionRequest.class, - com.google.cloud.kms.v1.UpdateEkmConnectionRequest.Builder.class); + com.google.cloud.kms.v1.UpdateEkmConnectionRequest.class, com.google.cloud.kms.v1.UpdateEkmConnectionRequest.Builder.class); } public static final int EKM_CONNECTION_FIELD_NUMBER = 1; private com.google.cloud.kms.v1.EkmConnection ekmConnection_; /** - * - * *
    * Required. [EkmConnection][google.cloud.kms.v1.EkmConnection] with updated
    * values.
    * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the ekmConnection field is set. */ @java.lang.Override @@ -86,36 +63,25 @@ public boolean hasEkmConnection() { return ekmConnection_ != null; } /** - * - * *
    * Required. [EkmConnection][google.cloud.kms.v1.EkmConnection] with updated
    * values.
    * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The ekmConnection. */ @java.lang.Override public com.google.cloud.kms.v1.EkmConnection getEkmConnection() { - return ekmConnection_ == null - ? com.google.cloud.kms.v1.EkmConnection.getDefaultInstance() - : ekmConnection_; + return ekmConnection_ == null ? com.google.cloud.kms.v1.EkmConnection.getDefaultInstance() : ekmConnection_; } /** - * - * *
    * Required. [EkmConnection][google.cloud.kms.v1.EkmConnection] with updated
    * values.
    * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.kms.v1.EkmConnectionOrBuilder getEkmConnectionOrBuilder() { @@ -125,15 +91,11 @@ public com.google.cloud.kms.v1.EkmConnectionOrBuilder getEkmConnectionOrBuilder( public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. List of fields to be updated in this request.
    * 
* - * .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 @@ -141,15 +103,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. List of fields to be updated in this request.
    * 
* - * .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 @@ -157,14 +115,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. List of fields to be updated in this request.
    * 
* - * .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 (ekmConnection_ != null) { output.writeMessage(1, getEkmConnection()); } @@ -201,10 +156,12 @@ public int getSerializedSize() { size = 0; if (ekmConnection_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEkmConnection()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getEkmConnection()); } 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.kms.v1.UpdateEkmConnectionRequest)) { return super.equals(obj); } - com.google.cloud.kms.v1.UpdateEkmConnectionRequest other = - (com.google.cloud.kms.v1.UpdateEkmConnectionRequest) obj; + com.google.cloud.kms.v1.UpdateEkmConnectionRequest other = (com.google.cloud.kms.v1.UpdateEkmConnectionRequest) obj; if (hasEkmConnection() != other.hasEkmConnection()) return false; if (hasEkmConnection()) { - if (!getEkmConnection().equals(other.getEkmConnection())) return false; + if (!getEkmConnection() + .equals(other.getEkmConnection())) 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,135 +213,129 @@ public int hashCode() { } public static com.google.cloud.kms.v1.UpdateEkmConnectionRequest 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.kms.v1.UpdateEkmConnectionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite 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.kms.v1.UpdateEkmConnectionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.UpdateEkmConnectionRequest parseFrom( 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.kms.v1.UpdateEkmConnectionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.kms.v1.UpdateEkmConnectionRequest parseFrom( - byte[] data, com.google.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.kms.v1.UpdateEkmConnectionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.UpdateEkmConnectionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.UpdateEkmConnectionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.UpdateEkmConnectionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.kms.v1.UpdateEkmConnectionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.kms.v1.UpdateEkmConnectionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.kms.v1.UpdateEkmConnectionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.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.kms.v1.UpdateEkmConnectionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - 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.kms.v1.UpdateEkmConnectionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [KeyManagementService.UpdateEkmConnection][].
    * 
* * Protobuf type {@code google.cloud.kms.v1.UpdateEkmConnectionRequest} */ - public static final class Builder extends 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.kms.v1.UpdateEkmConnectionRequest) com.google.cloud.kms.v1.UpdateEkmConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.kms.v1.EkmServiceProto - .internal_static_google_cloud_kms_v1_UpdateEkmConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_UpdateEkmConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.kms.v1.EkmServiceProto - .internal_static_google_cloud_kms_v1_UpdateEkmConnectionRequest_fieldAccessorTable + return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_UpdateEkmConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.kms.v1.UpdateEkmConnectionRequest.class, - com.google.cloud.kms.v1.UpdateEkmConnectionRequest.Builder.class); + com.google.cloud.kms.v1.UpdateEkmConnectionRequest.class, com.google.cloud.kms.v1.UpdateEkmConnectionRequest.Builder.class); } // Construct using com.google.cloud.kms.v1.UpdateEkmConnectionRequest.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(); @@ -403,9 +355,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.kms.v1.EkmServiceProto - .internal_static_google_cloud_kms_v1_UpdateEkmConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.kms.v1.EkmServiceProto.internal_static_google_cloud_kms_v1_UpdateEkmConnectionRequest_descriptor; } @java.lang.Override @@ -424,8 +376,7 @@ public com.google.cloud.kms.v1.UpdateEkmConnectionRequest build() { @java.lang.Override public com.google.cloud.kms.v1.UpdateEkmConnectionRequest buildPartial() { - com.google.cloud.kms.v1.UpdateEkmConnectionRequest result = - new com.google.cloud.kms.v1.UpdateEkmConnectionRequest(this); + com.google.cloud.kms.v1.UpdateEkmConnectionRequest result = new com.google.cloud.kms.v1.UpdateEkmConnectionRequest(this); if (ekmConnectionBuilder_ == null) { result.ekmConnection_ = ekmConnection_; } else { @@ -444,39 +395,38 @@ public com.google.cloud.kms.v1.UpdateEkmConnectionRequest 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.kms.v1.UpdateEkmConnectionRequest) { - return mergeFrom((com.google.cloud.kms.v1.UpdateEkmConnectionRequest) other); + return mergeFrom((com.google.cloud.kms.v1.UpdateEkmConnectionRequest)other); } else { super.mergeFrom(other); return this; @@ -484,8 +434,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.kms.v1.UpdateEkmConnectionRequest other) { - if (other == com.google.cloud.kms.v1.UpdateEkmConnectionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.kms.v1.UpdateEkmConnectionRequest.getDefaultInstance()) return this; if (other.hasEkmConnection()) { mergeEkmConnection(other.getEkmConnection()); } @@ -518,25 +467,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getEkmConnectionFieldBuilder().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( + getEkmConnectionFieldBuilder().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) { @@ -549,61 +499,42 @@ public Builder mergeFrom( private com.google.cloud.kms.v1.EkmConnection ekmConnection_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.EkmConnection, - com.google.cloud.kms.v1.EkmConnection.Builder, - com.google.cloud.kms.v1.EkmConnectionOrBuilder> - ekmConnectionBuilder_; + com.google.cloud.kms.v1.EkmConnection, com.google.cloud.kms.v1.EkmConnection.Builder, com.google.cloud.kms.v1.EkmConnectionOrBuilder> ekmConnectionBuilder_; /** - * - * *
      * Required. [EkmConnection][google.cloud.kms.v1.EkmConnection] with updated
      * values.
      * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the ekmConnection field is set. */ public boolean hasEkmConnection() { return ekmConnectionBuilder_ != null || ekmConnection_ != null; } /** - * - * *
      * Required. [EkmConnection][google.cloud.kms.v1.EkmConnection] with updated
      * values.
      * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The ekmConnection. */ public com.google.cloud.kms.v1.EkmConnection getEkmConnection() { if (ekmConnectionBuilder_ == null) { - return ekmConnection_ == null - ? com.google.cloud.kms.v1.EkmConnection.getDefaultInstance() - : ekmConnection_; + return ekmConnection_ == null ? com.google.cloud.kms.v1.EkmConnection.getDefaultInstance() : ekmConnection_; } else { return ekmConnectionBuilder_.getMessage(); } } /** - * - * *
      * Required. [EkmConnection][google.cloud.kms.v1.EkmConnection] with updated
      * values.
      * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setEkmConnection(com.google.cloud.kms.v1.EkmConnection value) { if (ekmConnectionBuilder_ == null) { @@ -619,18 +550,15 @@ public Builder setEkmConnection(com.google.cloud.kms.v1.EkmConnection value) { return this; } /** - * - * *
      * Required. [EkmConnection][google.cloud.kms.v1.EkmConnection] with updated
      * values.
      * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setEkmConnection(com.google.cloud.kms.v1.EkmConnection.Builder builderForValue) { + public Builder setEkmConnection( + com.google.cloud.kms.v1.EkmConnection.Builder builderForValue) { if (ekmConnectionBuilder_ == null) { ekmConnection_ = builderForValue.build(); onChanged(); @@ -641,24 +569,18 @@ public Builder setEkmConnection(com.google.cloud.kms.v1.EkmConnection.Builder bu return this; } /** - * - * *
      * Required. [EkmConnection][google.cloud.kms.v1.EkmConnection] with updated
      * values.
      * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeEkmConnection(com.google.cloud.kms.v1.EkmConnection value) { if (ekmConnectionBuilder_ == null) { if (ekmConnection_ != null) { ekmConnection_ = - com.google.cloud.kms.v1.EkmConnection.newBuilder(ekmConnection_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.kms.v1.EkmConnection.newBuilder(ekmConnection_).mergeFrom(value).buildPartial(); } else { ekmConnection_ = value; } @@ -670,16 +592,12 @@ public Builder mergeEkmConnection(com.google.cloud.kms.v1.EkmConnection value) { return this; } /** - * - * *
      * Required. [EkmConnection][google.cloud.kms.v1.EkmConnection] with updated
      * values.
      * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearEkmConnection() { if (ekmConnectionBuilder_ == null) { @@ -693,67 +611,51 @@ public Builder clearEkmConnection() { return this; } /** - * - * *
      * Required. [EkmConnection][google.cloud.kms.v1.EkmConnection] with updated
      * values.
      * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.kms.v1.EkmConnection.Builder getEkmConnectionBuilder() { - + onChanged(); return getEkmConnectionFieldBuilder().getBuilder(); } /** - * - * *
      * Required. [EkmConnection][google.cloud.kms.v1.EkmConnection] with updated
      * values.
      * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.kms.v1.EkmConnectionOrBuilder getEkmConnectionOrBuilder() { if (ekmConnectionBuilder_ != null) { return ekmConnectionBuilder_.getMessageOrBuilder(); } else { - return ekmConnection_ == null - ? com.google.cloud.kms.v1.EkmConnection.getDefaultInstance() - : ekmConnection_; + return ekmConnection_ == null ? + com.google.cloud.kms.v1.EkmConnection.getDefaultInstance() : ekmConnection_; } } /** - * - * *
      * Required. [EkmConnection][google.cloud.kms.v1.EkmConnection] with updated
      * values.
      * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.EkmConnection, - com.google.cloud.kms.v1.EkmConnection.Builder, - com.google.cloud.kms.v1.EkmConnectionOrBuilder> + com.google.cloud.kms.v1.EkmConnection, com.google.cloud.kms.v1.EkmConnection.Builder, com.google.cloud.kms.v1.EkmConnectionOrBuilder> getEkmConnectionFieldBuilder() { if (ekmConnectionBuilder_ == null) { - ekmConnectionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.kms.v1.EkmConnection, - com.google.cloud.kms.v1.EkmConnection.Builder, - com.google.cloud.kms.v1.EkmConnectionOrBuilder>( - getEkmConnection(), getParentForChildren(), isClean()); + ekmConnectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.kms.v1.EkmConnection, com.google.cloud.kms.v1.EkmConnection.Builder, com.google.cloud.kms.v1.EkmConnectionOrBuilder>( + getEkmConnection(), + getParentForChildren(), + isClean()); ekmConnection_ = null; } return ekmConnectionBuilder_; @@ -761,55 +663,39 @@ public com.google.cloud.kms.v1.EkmConnectionOrBuilder getEkmConnectionOrBuilder( private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. List of fields to be updated in this request.
      * 
* - * .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. List of fields to be updated in this request.
      * 
* - * .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. List of fields to be updated in this request.
      * 
* - * .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) { @@ -825,16 +711,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. List of fields to be updated in this request.
      * 
* - * .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(); @@ -845,20 +729,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. List of fields to be updated in this request.
      * 
* - * .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; } @@ -870,14 +751,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. List of fields to be updated in this request.
      * 
* - * .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) { @@ -891,68 +769,55 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. List of fields to be updated in this request.
      * 
* - * .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. List of fields to be updated in this request.
      * 
* - * .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. List of fields to be updated in this request.
      * 
* - * .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); } @@ -962,12 +827,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.UpdateEkmConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.UpdateEkmConnectionRequest) private static final com.google.cloud.kms.v1.UpdateEkmConnectionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.kms.v1.UpdateEkmConnectionRequest(); } @@ -976,27 +841,27 @@ public static com.google.cloud.kms.v1.UpdateEkmConnectionRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateEkmConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateEkmConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1011,4 +876,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.kms.v1.UpdateEkmConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateEkmConnectionRequestOrBuilder.java b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateEkmConnectionRequestOrBuilder.java similarity index 56% rename from java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateEkmConnectionRequestOrBuilder.java rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateEkmConnectionRequestOrBuilder.java index 3e911b442bc0..b36e67411793 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateEkmConnectionRequestOrBuilder.java +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UpdateEkmConnectionRequestOrBuilder.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/kms/v1/ekm_service.proto package com.google.cloud.kms.v1; -public interface UpdateEkmConnectionRequestOrBuilder - extends +public interface UpdateEkmConnectionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.UpdateEkmConnectionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. [EkmConnection][google.cloud.kms.v1.EkmConnection] with updated
    * values.
    * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the ekmConnection field is set. */ boolean hasEkmConnection(); /** - * - * *
    * Required. [EkmConnection][google.cloud.kms.v1.EkmConnection] with updated
    * values.
    * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The ekmConnection. */ com.google.cloud.kms.v1.EkmConnection getEkmConnection(); /** - * - * *
    * Required. [EkmConnection][google.cloud.kms.v1.EkmConnection] with updated
    * values.
    * 
* - * - * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.kms.v1.EkmConnection ekm_connection = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.kms.v1.EkmConnectionOrBuilder getEkmConnectionOrBuilder(); /** - * - * *
    * Required. List of fields to be updated in this request.
    * 
* - * .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. List of fields to be updated in this request.
    * 
* - * .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. List of fields to be updated in this request.
    * 
* - * .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-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/ekm_service.proto b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/ekm_service.proto similarity index 100% rename from java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/ekm_service.proto rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/ekm_service.proto diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/resources.proto b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/resources.proto similarity index 99% rename from java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/resources.proto rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/resources.proto index 5029f3e03489..b32d85464575 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/resources.proto +++ b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/resources.proto @@ -403,6 +403,18 @@ message CryptoKeyVersion { // HMAC-SHA256 signing with a 256 bit key. HMAC_SHA256 = 32; + // HMAC-SHA1 signing with a 160 bit key. + HMAC_SHA1 = 33; + + // HMAC-SHA384 signing with a 384 bit key. + HMAC_SHA384 = 34; + + // HMAC-SHA512 signing with a 512 bit key. + HMAC_SHA512 = 35; + + // HMAC-SHA224 signing with a 224 bit key. + HMAC_SHA224 = 36; + // Algorithm representing symmetric encryption by an external key manager. EXTERNAL_SYMMETRIC_ENCRYPTION = 18; } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/service.proto b/owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/service.proto similarity index 100% rename from java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/service.proto rename to owl-bot-staging/java-kms/v1/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/service.proto diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/create/SyncCreateSetEndpoint.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/createekmconnection/AsyncCreateEkmConnection.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/createekmconnection/AsyncCreateEkmConnection.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/createekmconnection/AsyncCreateEkmConnection.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/createekmconnection/AsyncCreateEkmConnection.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/createekmconnection/SyncCreateEkmConnection.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/createekmconnection/SyncCreateEkmConnection.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/createekmconnection/SyncCreateEkmConnection.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/createekmconnection/SyncCreateEkmConnection.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/createekmconnection/SyncCreateEkmConnectionLocationnameStringEkmconnection.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/createekmconnection/SyncCreateEkmConnectionLocationnameStringEkmconnection.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/createekmconnection/SyncCreateEkmConnectionLocationnameStringEkmconnection.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/createekmconnection/SyncCreateEkmConnectionLocationnameStringEkmconnection.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/createekmconnection/SyncCreateEkmConnectionStringStringEkmconnection.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/createekmconnection/SyncCreateEkmConnectionStringStringEkmconnection.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/createekmconnection/SyncCreateEkmConnectionStringStringEkmconnection.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/createekmconnection/SyncCreateEkmConnectionStringStringEkmconnection.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getekmconnection/AsyncGetEkmConnection.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getekmconnection/AsyncGetEkmConnection.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getekmconnection/AsyncGetEkmConnection.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getekmconnection/AsyncGetEkmConnection.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getekmconnection/SyncGetEkmConnection.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getekmconnection/SyncGetEkmConnection.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getekmconnection/SyncGetEkmConnection.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getekmconnection/SyncGetEkmConnection.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getekmconnection/SyncGetEkmConnectionEkmconnectionname.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getekmconnection/SyncGetEkmConnectionEkmconnectionname.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getekmconnection/SyncGetEkmConnectionEkmconnectionname.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getekmconnection/SyncGetEkmConnectionEkmconnectionname.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getekmconnection/SyncGetEkmConnectionString.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getekmconnection/SyncGetEkmConnectionString.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getekmconnection/SyncGetEkmConnectionString.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getekmconnection/SyncGetEkmConnectionString.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getiampolicy/AsyncGetIamPolicy.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getiampolicy/AsyncGetIamPolicy.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getiampolicy/AsyncGetIamPolicy.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getiampolicy/AsyncGetIamPolicy.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getiampolicy/SyncGetIamPolicy.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getiampolicy/SyncGetIamPolicy.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getiampolicy/SyncGetIamPolicy.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getiampolicy/SyncGetIamPolicy.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getlocation/AsyncGetLocation.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getlocation/AsyncGetLocation.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getlocation/AsyncGetLocation.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getlocation/AsyncGetLocation.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getlocation/SyncGetLocation.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getlocation/SyncGetLocation.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getlocation/SyncGetLocation.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/getlocation/SyncGetLocation.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listekmconnections/AsyncListEkmConnections.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listekmconnections/AsyncListEkmConnections.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listekmconnections/AsyncListEkmConnections.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listekmconnections/AsyncListEkmConnections.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listekmconnections/AsyncListEkmConnectionsPaged.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listekmconnections/AsyncListEkmConnectionsPaged.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listekmconnections/AsyncListEkmConnectionsPaged.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listekmconnections/AsyncListEkmConnectionsPaged.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listekmconnections/SyncListEkmConnections.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listekmconnections/SyncListEkmConnections.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listekmconnections/SyncListEkmConnections.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listekmconnections/SyncListEkmConnections.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listekmconnections/SyncListEkmConnectionsLocationname.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listekmconnections/SyncListEkmConnectionsLocationname.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listekmconnections/SyncListEkmConnectionsLocationname.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listekmconnections/SyncListEkmConnectionsLocationname.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listekmconnections/SyncListEkmConnectionsString.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listekmconnections/SyncListEkmConnectionsString.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listekmconnections/SyncListEkmConnectionsString.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listekmconnections/SyncListEkmConnectionsString.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listlocations/AsyncListLocations.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listlocations/AsyncListLocations.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listlocations/AsyncListLocations.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listlocations/AsyncListLocations.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listlocations/AsyncListLocationsPaged.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listlocations/AsyncListLocationsPaged.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listlocations/AsyncListLocationsPaged.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listlocations/SyncListLocations.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listlocations/SyncListLocations.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listlocations/SyncListLocations.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/listlocations/SyncListLocations.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/setiampolicy/AsyncSetIamPolicy.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/setiampolicy/AsyncSetIamPolicy.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/setiampolicy/AsyncSetIamPolicy.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/setiampolicy/AsyncSetIamPolicy.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/setiampolicy/SyncSetIamPolicy.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/setiampolicy/SyncSetIamPolicy.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/setiampolicy/SyncSetIamPolicy.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/setiampolicy/SyncSetIamPolicy.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/testiampermissions/AsyncTestIamPermissions.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/testiampermissions/AsyncTestIamPermissions.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/testiampermissions/AsyncTestIamPermissions.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/testiampermissions/AsyncTestIamPermissions.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/testiampermissions/SyncTestIamPermissions.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/testiampermissions/SyncTestIamPermissions.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/testiampermissions/SyncTestIamPermissions.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/testiampermissions/SyncTestIamPermissions.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/updateekmconnection/AsyncUpdateEkmConnection.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/updateekmconnection/AsyncUpdateEkmConnection.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/updateekmconnection/AsyncUpdateEkmConnection.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/updateekmconnection/AsyncUpdateEkmConnection.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/updateekmconnection/SyncUpdateEkmConnection.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/updateekmconnection/SyncUpdateEkmConnection.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/updateekmconnection/SyncUpdateEkmConnection.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/updateekmconnection/SyncUpdateEkmConnection.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/updateekmconnection/SyncUpdateEkmConnectionEkmconnectionFieldmask.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/updateekmconnection/SyncUpdateEkmConnectionEkmconnectionFieldmask.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/updateekmconnection/SyncUpdateEkmConnectionEkmconnectionFieldmask.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservice/updateekmconnection/SyncUpdateEkmConnectionEkmconnectionFieldmask.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservicesettings/getekmconnection/SyncGetEkmConnection.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservicesettings/getekmconnection/SyncGetEkmConnection.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/ekmservicesettings/getekmconnection/SyncGetEkmConnection.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/ekmservicesettings/getekmconnection/SyncGetEkmConnection.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/AsyncAsymmetricDecrypt.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/AsyncAsymmetricDecrypt.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/AsyncAsymmetricDecrypt.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/AsyncAsymmetricDecrypt.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/SyncAsymmetricDecrypt.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/SyncAsymmetricDecrypt.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/SyncAsymmetricDecrypt.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/SyncAsymmetricDecrypt.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/SyncAsymmetricDecryptCryptokeyversionnameBytestring.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/SyncAsymmetricDecryptCryptokeyversionnameBytestring.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/SyncAsymmetricDecryptCryptokeyversionnameBytestring.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/SyncAsymmetricDecryptCryptokeyversionnameBytestring.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/SyncAsymmetricDecryptStringBytestring.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/SyncAsymmetricDecryptStringBytestring.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/SyncAsymmetricDecryptStringBytestring.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/SyncAsymmetricDecryptStringBytestring.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/AsyncAsymmetricSign.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/AsyncAsymmetricSign.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/AsyncAsymmetricSign.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/AsyncAsymmetricSign.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/SyncAsymmetricSign.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/SyncAsymmetricSign.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/SyncAsymmetricSign.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/SyncAsymmetricSign.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/SyncAsymmetricSignCryptokeyversionnameDigest.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/SyncAsymmetricSignCryptokeyversionnameDigest.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/SyncAsymmetricSignCryptokeyversionnameDigest.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/SyncAsymmetricSignCryptokeyversionnameDigest.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/SyncAsymmetricSignStringDigest.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/SyncAsymmetricSignStringDigest.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/SyncAsymmetricSignStringDigest.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/SyncAsymmetricSignStringDigest.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateSetEndpoint.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/AsyncCreateCryptoKey.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/AsyncCreateCryptoKey.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/AsyncCreateCryptoKey.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/AsyncCreateCryptoKey.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/SyncCreateCryptoKey.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/SyncCreateCryptoKey.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/SyncCreateCryptoKey.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/SyncCreateCryptoKey.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/SyncCreateCryptoKeyKeyringnameStringCryptokey.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/SyncCreateCryptoKeyKeyringnameStringCryptokey.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/SyncCreateCryptoKeyKeyringnameStringCryptokey.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/SyncCreateCryptoKeyKeyringnameStringCryptokey.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/SyncCreateCryptoKeyStringStringCryptokey.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/SyncCreateCryptoKeyStringStringCryptokey.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/SyncCreateCryptoKeyStringStringCryptokey.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/SyncCreateCryptoKeyStringStringCryptokey.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/AsyncCreateCryptoKeyVersion.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/AsyncCreateCryptoKeyVersion.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/AsyncCreateCryptoKeyVersion.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/AsyncCreateCryptoKeyVersion.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/SyncCreateCryptoKeyVersion.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/SyncCreateCryptoKeyVersion.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/SyncCreateCryptoKeyVersion.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/SyncCreateCryptoKeyVersion.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/SyncCreateCryptoKeyVersionCryptokeynameCryptokeyversion.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/SyncCreateCryptoKeyVersionCryptokeynameCryptokeyversion.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/SyncCreateCryptoKeyVersionCryptokeynameCryptokeyversion.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/SyncCreateCryptoKeyVersionCryptokeynameCryptokeyversion.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/SyncCreateCryptoKeyVersionStringCryptokeyversion.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/SyncCreateCryptoKeyVersionStringCryptokeyversion.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/SyncCreateCryptoKeyVersionStringCryptokeyversion.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/SyncCreateCryptoKeyVersionStringCryptokeyversion.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createimportjob/AsyncCreateImportJob.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createimportjob/AsyncCreateImportJob.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createimportjob/AsyncCreateImportJob.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createimportjob/AsyncCreateImportJob.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createimportjob/SyncCreateImportJob.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createimportjob/SyncCreateImportJob.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createimportjob/SyncCreateImportJob.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createimportjob/SyncCreateImportJob.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createimportjob/SyncCreateImportJobKeyringnameStringImportjob.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createimportjob/SyncCreateImportJobKeyringnameStringImportjob.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createimportjob/SyncCreateImportJobKeyringnameStringImportjob.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createimportjob/SyncCreateImportJobKeyringnameStringImportjob.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createimportjob/SyncCreateImportJobStringStringImportjob.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createimportjob/SyncCreateImportJobStringStringImportjob.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createimportjob/SyncCreateImportJobStringStringImportjob.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createimportjob/SyncCreateImportJobStringStringImportjob.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createkeyring/AsyncCreateKeyRing.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createkeyring/AsyncCreateKeyRing.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createkeyring/AsyncCreateKeyRing.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createkeyring/AsyncCreateKeyRing.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createkeyring/SyncCreateKeyRing.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createkeyring/SyncCreateKeyRing.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createkeyring/SyncCreateKeyRing.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createkeyring/SyncCreateKeyRing.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createkeyring/SyncCreateKeyRingLocationnameStringKeyring.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createkeyring/SyncCreateKeyRingLocationnameStringKeyring.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createkeyring/SyncCreateKeyRingLocationnameStringKeyring.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createkeyring/SyncCreateKeyRingLocationnameStringKeyring.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createkeyring/SyncCreateKeyRingStringStringKeyring.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createkeyring/SyncCreateKeyRingStringStringKeyring.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createkeyring/SyncCreateKeyRingStringStringKeyring.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/createkeyring/SyncCreateKeyRingStringStringKeyring.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/decrypt/AsyncDecrypt.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/decrypt/AsyncDecrypt.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/decrypt/AsyncDecrypt.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/decrypt/AsyncDecrypt.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/decrypt/SyncDecrypt.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/decrypt/SyncDecrypt.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/decrypt/SyncDecrypt.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/decrypt/SyncDecrypt.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/decrypt/SyncDecryptCryptokeynameBytestring.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/decrypt/SyncDecryptCryptokeynameBytestring.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/decrypt/SyncDecryptCryptokeynameBytestring.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/decrypt/SyncDecryptCryptokeynameBytestring.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/decrypt/SyncDecryptStringBytestring.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/decrypt/SyncDecryptStringBytestring.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/decrypt/SyncDecryptStringBytestring.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/decrypt/SyncDecryptStringBytestring.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/AsyncDestroyCryptoKeyVersion.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/AsyncDestroyCryptoKeyVersion.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/AsyncDestroyCryptoKeyVersion.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/AsyncDestroyCryptoKeyVersion.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/SyncDestroyCryptoKeyVersion.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/SyncDestroyCryptoKeyVersion.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/SyncDestroyCryptoKeyVersion.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/SyncDestroyCryptoKeyVersion.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/SyncDestroyCryptoKeyVersionCryptokeyversionname.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/SyncDestroyCryptoKeyVersionCryptokeyversionname.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/SyncDestroyCryptoKeyVersionCryptokeyversionname.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/SyncDestroyCryptoKeyVersionCryptokeyversionname.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/SyncDestroyCryptoKeyVersionString.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/SyncDestroyCryptoKeyVersionString.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/SyncDestroyCryptoKeyVersionString.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/SyncDestroyCryptoKeyVersionString.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/encrypt/AsyncEncrypt.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/encrypt/AsyncEncrypt.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/encrypt/AsyncEncrypt.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/encrypt/AsyncEncrypt.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/encrypt/SyncEncrypt.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/encrypt/SyncEncrypt.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/encrypt/SyncEncrypt.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/encrypt/SyncEncrypt.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/encrypt/SyncEncryptResourcenameBytestring.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/encrypt/SyncEncryptResourcenameBytestring.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/encrypt/SyncEncryptResourcenameBytestring.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/encrypt/SyncEncryptResourcenameBytestring.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/encrypt/SyncEncryptStringBytestring.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/encrypt/SyncEncryptStringBytestring.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/encrypt/SyncEncryptStringBytestring.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/encrypt/SyncEncryptStringBytestring.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/generaterandombytes/AsyncGenerateRandomBytes.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/generaterandombytes/AsyncGenerateRandomBytes.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/generaterandombytes/AsyncGenerateRandomBytes.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/generaterandombytes/AsyncGenerateRandomBytes.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/generaterandombytes/SyncGenerateRandomBytes.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/generaterandombytes/SyncGenerateRandomBytes.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/generaterandombytes/SyncGenerateRandomBytes.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/generaterandombytes/SyncGenerateRandomBytes.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/generaterandombytes/SyncGenerateRandomBytesStringIntProtectionlevel.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/generaterandombytes/SyncGenerateRandomBytesStringIntProtectionlevel.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/generaterandombytes/SyncGenerateRandomBytesStringIntProtectionlevel.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/generaterandombytes/SyncGenerateRandomBytesStringIntProtectionlevel.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/AsyncGetCryptoKey.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/AsyncGetCryptoKey.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/AsyncGetCryptoKey.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/AsyncGetCryptoKey.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/SyncGetCryptoKey.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/SyncGetCryptoKey.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/SyncGetCryptoKey.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/SyncGetCryptoKey.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/SyncGetCryptoKeyCryptokeyname.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/SyncGetCryptoKeyCryptokeyname.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/SyncGetCryptoKeyCryptokeyname.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/SyncGetCryptoKeyCryptokeyname.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/SyncGetCryptoKeyString.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/SyncGetCryptoKeyString.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/SyncGetCryptoKeyString.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/SyncGetCryptoKeyString.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/AsyncGetCryptoKeyVersion.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/AsyncGetCryptoKeyVersion.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/AsyncGetCryptoKeyVersion.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/AsyncGetCryptoKeyVersion.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/SyncGetCryptoKeyVersion.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/SyncGetCryptoKeyVersion.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/SyncGetCryptoKeyVersion.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/SyncGetCryptoKeyVersion.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/SyncGetCryptoKeyVersionCryptokeyversionname.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/SyncGetCryptoKeyVersionCryptokeyversionname.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/SyncGetCryptoKeyVersionCryptokeyversionname.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/SyncGetCryptoKeyVersionCryptokeyversionname.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/SyncGetCryptoKeyVersionString.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/SyncGetCryptoKeyVersionString.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/SyncGetCryptoKeyVersionString.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/SyncGetCryptoKeyVersionString.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getiampolicy/AsyncGetIamPolicy.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getiampolicy/AsyncGetIamPolicy.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getiampolicy/AsyncGetIamPolicy.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getiampolicy/AsyncGetIamPolicy.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getiampolicy/SyncGetIamPolicy.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getiampolicy/SyncGetIamPolicy.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getiampolicy/SyncGetIamPolicy.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getiampolicy/SyncGetIamPolicy.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getimportjob/AsyncGetImportJob.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getimportjob/AsyncGetImportJob.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getimportjob/AsyncGetImportJob.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getimportjob/AsyncGetImportJob.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getimportjob/SyncGetImportJob.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getimportjob/SyncGetImportJob.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getimportjob/SyncGetImportJob.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getimportjob/SyncGetImportJob.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getimportjob/SyncGetImportJobImportjobname.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getimportjob/SyncGetImportJobImportjobname.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getimportjob/SyncGetImportJobImportjobname.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getimportjob/SyncGetImportJobImportjobname.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getimportjob/SyncGetImportJobString.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getimportjob/SyncGetImportJobString.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getimportjob/SyncGetImportJobString.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getimportjob/SyncGetImportJobString.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getkeyring/AsyncGetKeyRing.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getkeyring/AsyncGetKeyRing.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getkeyring/AsyncGetKeyRing.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getkeyring/AsyncGetKeyRing.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getkeyring/SyncGetKeyRing.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getkeyring/SyncGetKeyRing.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getkeyring/SyncGetKeyRing.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getkeyring/SyncGetKeyRing.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getkeyring/SyncGetKeyRingKeyringname.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getkeyring/SyncGetKeyRingKeyringname.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getkeyring/SyncGetKeyRingKeyringname.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getkeyring/SyncGetKeyRingKeyringname.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getkeyring/SyncGetKeyRingString.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getkeyring/SyncGetKeyRingString.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getkeyring/SyncGetKeyRingString.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getkeyring/SyncGetKeyRingString.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getlocation/AsyncGetLocation.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getlocation/AsyncGetLocation.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getlocation/AsyncGetLocation.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getlocation/AsyncGetLocation.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getlocation/SyncGetLocation.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getlocation/SyncGetLocation.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getlocation/SyncGetLocation.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getlocation/SyncGetLocation.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getpublickey/AsyncGetPublicKey.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getpublickey/AsyncGetPublicKey.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getpublickey/AsyncGetPublicKey.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getpublickey/AsyncGetPublicKey.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getpublickey/SyncGetPublicKey.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getpublickey/SyncGetPublicKey.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getpublickey/SyncGetPublicKey.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getpublickey/SyncGetPublicKey.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getpublickey/SyncGetPublicKeyCryptokeyversionname.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getpublickey/SyncGetPublicKeyCryptokeyversionname.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getpublickey/SyncGetPublicKeyCryptokeyversionname.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getpublickey/SyncGetPublicKeyCryptokeyversionname.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getpublickey/SyncGetPublicKeyString.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getpublickey/SyncGetPublicKeyString.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getpublickey/SyncGetPublicKeyString.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getpublickey/SyncGetPublicKeyString.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/importcryptokeyversion/AsyncImportCryptoKeyVersion.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/importcryptokeyversion/AsyncImportCryptoKeyVersion.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/importcryptokeyversion/AsyncImportCryptoKeyVersion.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/importcryptokeyversion/AsyncImportCryptoKeyVersion.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/importcryptokeyversion/SyncImportCryptoKeyVersion.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/importcryptokeyversion/SyncImportCryptoKeyVersion.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/importcryptokeyversion/SyncImportCryptoKeyVersion.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/importcryptokeyversion/SyncImportCryptoKeyVersion.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/AsyncListCryptoKeys.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/AsyncListCryptoKeys.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/AsyncListCryptoKeys.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/AsyncListCryptoKeys.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/AsyncListCryptoKeysPaged.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/AsyncListCryptoKeysPaged.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/AsyncListCryptoKeysPaged.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/AsyncListCryptoKeysPaged.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/SyncListCryptoKeys.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/SyncListCryptoKeys.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/SyncListCryptoKeys.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/SyncListCryptoKeys.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/SyncListCryptoKeysKeyringname.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/SyncListCryptoKeysKeyringname.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/SyncListCryptoKeysKeyringname.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/SyncListCryptoKeysKeyringname.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/SyncListCryptoKeysString.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/SyncListCryptoKeysString.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/SyncListCryptoKeysString.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/SyncListCryptoKeysString.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/AsyncListCryptoKeyVersions.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/AsyncListCryptoKeyVersions.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/AsyncListCryptoKeyVersions.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/AsyncListCryptoKeyVersions.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/AsyncListCryptoKeyVersionsPaged.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/AsyncListCryptoKeyVersionsPaged.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/AsyncListCryptoKeyVersionsPaged.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/AsyncListCryptoKeyVersionsPaged.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/SyncListCryptoKeyVersions.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/SyncListCryptoKeyVersions.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/SyncListCryptoKeyVersions.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/SyncListCryptoKeyVersions.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/SyncListCryptoKeyVersionsCryptokeyname.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/SyncListCryptoKeyVersionsCryptokeyname.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/SyncListCryptoKeyVersionsCryptokeyname.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/SyncListCryptoKeyVersionsCryptokeyname.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/SyncListCryptoKeyVersionsString.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/SyncListCryptoKeyVersionsString.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/SyncListCryptoKeyVersionsString.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/SyncListCryptoKeyVersionsString.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/AsyncListImportJobs.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/AsyncListImportJobs.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/AsyncListImportJobs.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/AsyncListImportJobs.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/AsyncListImportJobsPaged.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/AsyncListImportJobsPaged.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/AsyncListImportJobsPaged.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/AsyncListImportJobsPaged.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/SyncListImportJobs.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/SyncListImportJobs.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/SyncListImportJobs.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/SyncListImportJobs.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/SyncListImportJobsKeyringname.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/SyncListImportJobsKeyringname.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/SyncListImportJobsKeyringname.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/SyncListImportJobsKeyringname.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/SyncListImportJobsString.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/SyncListImportJobsString.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/SyncListImportJobsString.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/SyncListImportJobsString.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/AsyncListKeyRings.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/AsyncListKeyRings.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/AsyncListKeyRings.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/AsyncListKeyRings.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/AsyncListKeyRingsPaged.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/AsyncListKeyRingsPaged.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/AsyncListKeyRingsPaged.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/AsyncListKeyRingsPaged.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/SyncListKeyRings.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/SyncListKeyRings.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/SyncListKeyRings.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/SyncListKeyRings.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/SyncListKeyRingsLocationname.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/SyncListKeyRingsLocationname.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/SyncListKeyRingsLocationname.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/SyncListKeyRingsLocationname.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/SyncListKeyRingsString.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/SyncListKeyRingsString.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/SyncListKeyRingsString.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/SyncListKeyRingsString.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listlocations/AsyncListLocations.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listlocations/AsyncListLocations.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listlocations/AsyncListLocations.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listlocations/AsyncListLocations.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listlocations/AsyncListLocationsPaged.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listlocations/AsyncListLocationsPaged.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listlocations/AsyncListLocationsPaged.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listlocations/SyncListLocations.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listlocations/SyncListLocations.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listlocations/SyncListLocations.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listlocations/SyncListLocations.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macsign/AsyncMacSign.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macsign/AsyncMacSign.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macsign/AsyncMacSign.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macsign/AsyncMacSign.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macsign/SyncMacSign.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macsign/SyncMacSign.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macsign/SyncMacSign.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macsign/SyncMacSign.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macsign/SyncMacSignCryptokeyversionnameBytestring.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macsign/SyncMacSignCryptokeyversionnameBytestring.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macsign/SyncMacSignCryptokeyversionnameBytestring.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macsign/SyncMacSignCryptokeyversionnameBytestring.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macsign/SyncMacSignStringBytestring.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macsign/SyncMacSignStringBytestring.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macsign/SyncMacSignStringBytestring.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macsign/SyncMacSignStringBytestring.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macverify/AsyncMacVerify.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macverify/AsyncMacVerify.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macverify/AsyncMacVerify.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macverify/AsyncMacVerify.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macverify/SyncMacVerify.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macverify/SyncMacVerify.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macverify/SyncMacVerify.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macverify/SyncMacVerify.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macverify/SyncMacVerifyCryptokeyversionnameBytestringBytestring.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macverify/SyncMacVerifyCryptokeyversionnameBytestringBytestring.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macverify/SyncMacVerifyCryptokeyversionnameBytestringBytestring.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macverify/SyncMacVerifyCryptokeyversionnameBytestringBytestring.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macverify/SyncMacVerifyStringBytestringBytestring.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macverify/SyncMacVerifyStringBytestringBytestring.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macverify/SyncMacVerifyStringBytestringBytestring.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/macverify/SyncMacVerifyStringBytestringBytestring.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/AsyncRestoreCryptoKeyVersion.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/AsyncRestoreCryptoKeyVersion.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/AsyncRestoreCryptoKeyVersion.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/AsyncRestoreCryptoKeyVersion.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/SyncRestoreCryptoKeyVersion.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/SyncRestoreCryptoKeyVersion.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/SyncRestoreCryptoKeyVersion.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/SyncRestoreCryptoKeyVersion.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/SyncRestoreCryptoKeyVersionCryptokeyversionname.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/SyncRestoreCryptoKeyVersionCryptokeyversionname.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/SyncRestoreCryptoKeyVersionCryptokeyversionname.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/SyncRestoreCryptoKeyVersionCryptokeyversionname.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/SyncRestoreCryptoKeyVersionString.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/SyncRestoreCryptoKeyVersionString.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/SyncRestoreCryptoKeyVersionString.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/SyncRestoreCryptoKeyVersionString.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/setiampolicy/AsyncSetIamPolicy.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/setiampolicy/AsyncSetIamPolicy.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/setiampolicy/AsyncSetIamPolicy.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/setiampolicy/AsyncSetIamPolicy.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/setiampolicy/SyncSetIamPolicy.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/setiampolicy/SyncSetIamPolicy.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/setiampolicy/SyncSetIamPolicy.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/setiampolicy/SyncSetIamPolicy.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/testiampermissions/AsyncTestIamPermissions.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/testiampermissions/AsyncTestIamPermissions.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/testiampermissions/AsyncTestIamPermissions.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/testiampermissions/AsyncTestIamPermissions.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/testiampermissions/SyncTestIamPermissions.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/testiampermissions/SyncTestIamPermissions.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/testiampermissions/SyncTestIamPermissions.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/testiampermissions/SyncTestIamPermissions.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokey/AsyncUpdateCryptoKey.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokey/AsyncUpdateCryptoKey.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokey/AsyncUpdateCryptoKey.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokey/AsyncUpdateCryptoKey.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokey/SyncUpdateCryptoKey.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokey/SyncUpdateCryptoKey.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokey/SyncUpdateCryptoKey.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokey/SyncUpdateCryptoKey.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokey/SyncUpdateCryptoKeyCryptokeyFieldmask.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokey/SyncUpdateCryptoKeyCryptokeyFieldmask.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokey/SyncUpdateCryptoKeyCryptokeyFieldmask.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokey/SyncUpdateCryptoKeyCryptokeyFieldmask.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/AsyncUpdateCryptoKeyPrimaryVersion.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/AsyncUpdateCryptoKeyPrimaryVersion.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/AsyncUpdateCryptoKeyPrimaryVersion.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/AsyncUpdateCryptoKeyPrimaryVersion.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersion.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersion.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersion.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersion.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersionCryptokeynameString.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersionCryptokeynameString.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersionCryptokeynameString.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersionCryptokeynameString.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersionStringString.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersionStringString.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersionStringString.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersionStringString.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyversion/AsyncUpdateCryptoKeyVersion.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyversion/AsyncUpdateCryptoKeyVersion.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyversion/AsyncUpdateCryptoKeyVersion.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyversion/AsyncUpdateCryptoKeyVersion.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyversion/SyncUpdateCryptoKeyVersion.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyversion/SyncUpdateCryptoKeyVersion.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyversion/SyncUpdateCryptoKeyVersion.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyversion/SyncUpdateCryptoKeyVersion.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyversion/SyncUpdateCryptoKeyVersionCryptokeyversionFieldmask.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyversion/SyncUpdateCryptoKeyVersionCryptokeyversionFieldmask.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyversion/SyncUpdateCryptoKeyVersionCryptokeyversionFieldmask.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyversion/SyncUpdateCryptoKeyVersionCryptokeyversionFieldmask.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservicesettings/getkeyring/SyncGetKeyRing.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservicesettings/getkeyring/SyncGetKeyRing.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservicesettings/getkeyring/SyncGetKeyRing.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservicesettings/getkeyring/SyncGetKeyRing.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/stub/ekmservicestubsettings/getekmconnection/SyncGetEkmConnection.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/stub/ekmservicestubsettings/getekmconnection/SyncGetEkmConnection.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/stub/ekmservicestubsettings/getekmconnection/SyncGetEkmConnection.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/stub/ekmservicestubsettings/getekmconnection/SyncGetEkmConnection.java diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/getkeyring/SyncGetKeyRing.java b/owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/getkeyring/SyncGetKeyRing.java similarity index 100% rename from java-kms/samples/snippets/generated/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/getkeyring/SyncGetKeyRing.java rename to owl-bot-staging/java-kms/v1/samples/snippets/generated/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/getkeyring/SyncGetKeyRing.java